Modifier questions

Discussion of and support for D&D 4e.

Moderators: dorpond, Azhrei

Post Reply
neofax
Great Wyrm
Posts: 1694
Joined: Tue May 26, 2009 8:51 pm
Location: Philadelphia, PA
Contact:

Modifier questions

Post by neofax »

Where can I find a list of all of the 'applies' settings? I am trying to add the race modifier for Half-Orcs, "Half-Orc Resilience", where they get 5 temporary hit points when they are bloodied. I can figure out how to set the applies to root.hp.isBloodied, but where do I set the hpTemp(guess)?

EDIT: OK, figured it out (probably should have RTFT on Adoptors). So, my assumption is the correct one would be root.hp.temporary.
Image
Time-Zone information UTC -5

User avatar
jay
RPTools Team
Posts: 1767
Joined: Tue Feb 07, 2006 1:07 am
Location: Austin, Tx

Re: Modifier questions

Post by jay »

What you are looking for is hp.temporary. The file where all of the properties on a combatant are defined is property/propertyDescriptorSet.xml.

But you can't add a modifier to hp.temporary since it is just a flat out number that is modified by the underlying code. There is a script you can call to update the temporary hitpoints, but I've not implemented any type of game related events other than property changes. Maybe it is time that I do a framework for that.

neofax
Great Wyrm
Posts: 1694
Joined: Tue May 26, 2009 8:51 pm
Location: Philadelphia, PA
Contact:

Re: Modifier questions

Post by neofax »

Here is another one:

Code: Select all

<modifier>
    <name>class.barbarian.4</name>
    <appliedTo>powers</appliedTo>
    <applies>and(eq(getIfExists("root.class.class.name", ""), source), gt(root.level, 5))</applies>
    <type>class</type>
    <modifierSetName>class.barbarian</modifierSetName>
    <source>Barbarian</source>
    <bonus>'Rage Strike'</bonus>
    <stack>true</stack>
  </modifier>
Since 'Rage Strike' only applies after 5th level, is the above correct?
Image
Time-Zone information UTC -5

User avatar
jay
RPTools Team
Posts: 1767
Joined: Tue Feb 07, 2006 1:07 am
Location: Austin, Tx

Re: Modifier questions

Post by jay »

Looks correct.

Post Reply

Return to “Support: D&D 4e”