Can multiple casts of True Polymorph stack?

Heavily related to this question, I want to know if multiple castings of True Polymorph would stack if made permanent.

Picture this scenario: (Assume a willing target.) Any given character is TP’d into a T-Rex, whoever cast the spell maintains concentration long enough for the spell to become permanent. Either they or another character then cast the spell again targeting the T-Rex, TP’ing it into another creature, such as a giant ape. The second cast is also made permanent.

In the given scenario are there multiple layers now? If you were to dispel the TP on the giant ape would it then turn into a T-Rex or back into its original form? If it turns back into a T-Rex would this mean you could theoretically stack layers of TP ad infinitum?

This question is distinct from the linked question as that one seems to be asking about non-permanent instances of the spell.

How Do “Random Attack” Effects Work Against Characters With Multiple Attacks?

I have a party of 13th level characters, one of which happens to be a fighter who loves to swing her dual hammers at anything within reach. Recently I’ve been experimenting with some custom monsters and they are going to encounter a Gibbering Mouther/Minotaur hybrid, but before they get there I want to clear up a question I had. Gibbering Mouthers have an ability called gibbering, which reads as follows:

The mouther babbles incoherently while it can see any creature and isn’t incapacitated. Each creature that starts its turn within 20 feet of the mouther and can hear the gibbering must succeed on a DC 15 Wisdom saving throw. On a failure, the creature can’t take reactions until the start of its next turn and rolls a d8 to determine what it does its turn. On a 1 to 4, the creature does nothing. On a 5 or 6, the creature takes no action or bonus action and uses all its movement to move in a randomly determined direction. On a 7 or 8, the creature makes a melee attack against a randomly determined creature within its reach or does nothing if it can’t make such an attack.

The part I was particularly interested in was the last part, where a creature who rolls a 7 or 8 makes a melee attack against a random creature within range. Given that the fighter has 3-4 attacks normally, not including her action surge which can effectively double that, how many attacks should she be randomly making? Is she effectively using the full extent of her attack action to swing wildly, or would she only make the 1 attack and call it quits?

Deleting multiple items in a shopping cart efficiently

My boss is insistent we need to build functionality to allow users to delete multiple items out of their shopping cart at once (e.g., checkboxes, with a “Select All” button/link, and “Delete” at the top and bottom of pages).

Currently we have the far more typical “Delete” option at the item/product level.

I’ve researched dozens of competitor carts and not one offers delete-multiple-items-at-once functionality. Edit: AmazonSupply does this, but at the expense of line-item delete.

I’d love to be able to push back on this and prove it’s a bad user experience – but honestly the requestor is so adamant about it it’s probably an unwinnable discussion.

Anyway does anyone have examples of good implementations of this functionality? It seems like it’s going to add a lot of clutter and visual noise and overall is an atypical implementation. Our site has some “Save for Later” functionality multi-select might be beneficial for, but overall I’m concerned about implementing it as it doesn’t seem widely done.

Anyway if anyone has good examples of multi-select delete/save in Shopping Carts — or compelling articles why that functionality shouldn’t be used for me to try to beat the requirement back with any help would be appreciated — thanks!

Can Dvati bards/war chanters sing multiple songs at once?

So I just found a fascinating race called Dvati, where each member is a single soul sharing two bodies. Each one shares the same build, they split their hitpoints between them, and they have several restrictions related to spellcasting and concentration… but none for bardic music. The fact that their favored class is bard leads me to believe that this isn’t an oversight, and each Dvati is intended to be able to sing a separate song. Throw in the War Chanter prestige class and you can have one character providing the benefits of four bardic musics at once, and if you throw in Dragonsong Lyrist you (possibly/probably) get up to fourteen music effects at once (though admittedly many of the Greater Dragonsongs do not stack on the same targets).

It also looks like the concentration limitations are solely for spellcasting, and each body can not only act while the other is concentrating but concentrate on something else if they want to.

In short, the question is: am I reading this correctly?


Related: This simple question ended up becoming a full on trilogy on how Dvati work. Here’re the links to Dvati and ToB maneuvers and to Dvati and Incarnum.

SQL User Query by Multiple Roles using PHP

I can successfully get all my WordPress users using the following code:

global $  wpdb; $  sql = 'SELECT * FROM ' . $  wpdb->users; $  users = $  wpdb->get_results( $  sql, 'ARRAY_A' ); 

However, I need to filter the users with multiple roles (only get “role1” and “role2”). I have tried various methods including the following which does not work:

global $  wpdb; $  sql = '     SELECT ID, display_name FROM wp_users      INNER JOIN wp_usermeta ON ( wp_users.ID = wp_usermeta.user_id )       INNER JOIN wp_usermeta AS mt1 ON ( wp_users.ID = mt1.user_id )      WHERE 1=1      AND (        (          (            ( mt1.meta_key = 'wp_capabilities' AND mt1.meta_value LIKE '%role1%' )         )          AND          (            (              ( mt1.meta_key = 'wp_capabilities' AND mt1.meta_value LIKE '%role2%' )           )         )       )     )      ORDER BY user_login ASC     '; $  users = $  wpdb->get_results( $  sql, 'ARRAY_A' ); 

What happens when multiple Heat Metal spells are cast on the same object?

Suppose that the mages Mary and Merry both cast Heat Metal on the metal armor of an enemy fighter, Fred. Both mages use their bonus action on subsequent turns to continue dealing damage to Fred. How much damage does Fred take each round, and when does he take it? What additional effects does Fred suffer, and how long do they last? For the sake of argument, let’s say that the initiative order each round is Mary, Merry, then Fred.

Displaying multiple parts of an expression in a single output

I have the following code:

names = {"Gly", "Ala", "Ser", "Pro",  "Val", "Thr", "Cys", "Leu/Ile",     "Asn", "Asp/isoAsp", "Gln", "Lys", "Glu", "Met", "His", "Phe",     "Arg", "Tyr", "Trp", "4-hydroxyPro", "5-hydroxyLys",     "6-N-methylLys", "\[Gamma]-carboxyGlu", "selenoCys", "phosphoSer",     "phosphoThr", "phosphoTyr", "\[Sigma]-N-methylArg",     "6-N-acetylLys", "Glu \[Gamma]-methyl ester", "Ornithine",     "Citrulline", "3-methylHis", "N,N,N-trimethylLys", "N-acetylAla",     "3-sulfinoAla", "N-acetylCys", "pyroGlu", "N-acetylGly",     "Met sulfoxide", "Met sulfone", "N-acetylSer", "N-acetylThr",     "Kynurenine", "Tyr O-sulfate"}; list = {57.0215, 71.0371, 87.0320, 97.0528, 99.0684, 101.0477,     103.0092, 113.0841, 114.0429, 115.0269, 128.0586, 128.0950,     129.0426, 131.0405, 137.0589, 147.0684, 156.1011, 163.0633,     186.0793, 113.048, 144.089, 142.110, 173.032, 150.954, 166.998,     181.014, 243.029, 170.116, 170.105, 143.058, 114.079, 157.085,     151.074, 170.141, 113.047, 134.999, 145.019, 111.032, 99.032,     147.035, 163.030, 129.042, 143.058, 190.047, 243.020}; subsets =   DeleteDuplicates@   Select[Subsets[list, {3}], 344.160 <= Total[#] <= 344.163 &] 

which produces the expression:

{{71.0371, 103.009, 170.116}}

To display the parts of this expression as their names, I’m using:

seqNam = names[[Position[list, subsets[[1]][[1]]] [[1]][[1]]]] seqNam = names[[Position[list, subsets[[1]][[2]]] [[1]][[1]]]]  seqNam = names[[Position[list, subsets[[1]][[3]]] [[1]][[1]]]] 

but I would like do display all parts as one line of output, and I don’t know how. Any help would be appreciated!

Search – multiple search terms

I’m working on a mobile app that allows users to search for events around the UK. The issue I’m having is that the system allows a user to search for events in multiple locations. On the search page, the user can click on the locations text field, which then opens a locations drawer. The user can then search for locations, with the aid of autocomplete, and add as many as they like.

Once they have selected the locations, they return to the main page to run the search.

enter image description here enter image description here enter image description here enter image description here

I’m worried that this way of handling multiple locations isn’t very clear and the users might be confused when they see the 4th screen.

Any guidance would be greatly appreciated

Can the manual and tome magic items that increase stats be used multiple times by bypassing the century wait time via the spell Sequester?

Assume we have a Wizard who is at least level 13 and can reliably cast Sequester many times (either through acquired spell scrolls, or has acquired enough material components for it to be a non-issue), has a safe place (through the spell Demiplane) to be under the influence of Sequester for many centuries, and has access to the Manual of Bodily Health, Manual of Gainful Exercise, Manual of Quickness of Action, Tome of Clear Thought, Tome of Leadership and Influence, and Tome of Understanding.

Per the item descriptions in the DMG:

…your [STAT] score increases by 2, as does your maximum for that score. The manual then loses its magic, but regains it in a century.

Now, normally this would be a once-in-a-lifetime use, or maybe twice (due to the lifespan of the races), but if a wizard used Sequester on themself, many years can pass without growing older:

…[willing target creature] falls into a state of suspended animation. Time ceases to flow for it, and it doesn’t grow older. You can set a condition for the spell to end [before the spell is dispelled by the caster].

So, assuming that time continues to flow for the magic items, but not for the sequestered wizard, can they study these books and take the necessary long rests, Sequester for a hundred years, “wake” from the Sequester, and then repeat an arbitrary-but-finite number of times for an arbitrarily high (but finite) improvement to their stats?

To end the cycle and escape the demiplane, the wizard would simply Plane Shift out:

…You can specify a target destination in general terms … and you appear in or near that destination.

How to sort by multiple values in a nested WP_Query

I am displaying courses, enrollment, along with rooms whose capacities are greater than or equal to the enrollment. This query works, except the ‘order’ => ‘DESC’ for courses, and ‘orderby’ => ‘meta_value_num’.

Currently, the courses are listed by title, but ascending. And, the rooms are not ordered at all. Can anyone tell me what I’m doing wrong?

$  courses = new WP_Query( array( 'post_type' => 'courses', 'posts_per_page' => '-1', 'orderby' => 'title' , 'order' => 'DESC' ) );   if ( $  courses->have_posts() ) {   while ( $  courses->have_posts() ) {     $  courses->the_post();           $  enr = get_post_meta(get_the_ID(), 'course_enrolled' , true);          $  cname = get_the_title();           $  rooms = new WP_Query(                   array(                   'posts_per_page' => -1,                   'post_type' => 'rooms',                   'meta_query' => array(                         array(                         'key' => 'room_capacity',                         'posts_per_page' => '-1',                         'type' => 'NUMERIC',                         'value' => $  enr,                         'compare' => '>=',                         //the below ordering part doesn't function as expected                         'order' => 'DESC',                         'orderby' => 'meta_value_num'                          )                       )                     )           );           if ( $  rooms->have_posts() ) {             while ( $  rooms->have_posts() ) {                 $  rooms->the_post();                   $  rname = get_the_title();                 $  cap = get_post_meta(get_the_ID(), 'room_capacity' , true);                  echo 'cname: ' . $  cname . ' ' . 'enrolled: ' . $  enr . 'rname: ' . $  rname.  'capacity: ' . $  cap . '<br/>';                }             }       } } else {     echo "Loop not working";   }     wp_reset_postdata();