• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Modifying / Appending to a spell description

bodrin

Well-known member
Hi,

As the title suggest I'm attempting to Modify / Append the Ice Storm spell description.

All at Render 10000

The #appenddesc macro here

Code:
~ Lets add to our modified Ice Storm spell information for reference

   #appenddesc[spIceSto3], "Three times per  day, the wearer of the crown can call down a storm of razor sharp bone  shards. Similar to {i}ice storm{/i} with the following differences.

These  shards deal 5d6 points of slashing damage to all creatures in a  10-foot-radius burst and each creature bleeds on its turn for an  additional 1d6 points of damage (this bleed can be healed or stopped as  normal). 

Creatures in the area can attempt a DC 16 Reflex save to halve the damage and negate the bleed."]

throws an error message and the script below also throws an error message.

Code:
~ Lets add to our modified Ice Storm spell information for reference

    perform state.thing[spIceSto3].amendthing[description,"Three times per day, the wearer of the crown can call down a storm of razor sharp bone shards. Similar to {i}ice storm{/i} with the following differences.

These shards deal 5d6 points of slashing damage to all creatures in a 10-foot-radius burst and each creature bleeds on its turn for an additional 1d6 points of damage (this bleed can be healed or stopped as normal). 

Creatures in the area can attempt a DC 16 Reflex save to halve the damage and negate the bleed."]

Any ideas on achieving this?
 
Nope, but worth trying.

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'ioB0MFSCBo' (Eval Script '#1') on line 3
-> Invalid macro reference encountered in script

also tried

Code:
~ Lets add to our modified Ice Storm spell information for reference     

perform state.thing[spIceSto3.amendthing[description,"Three times per day, the wearer of the crown can call down a storm of razor sharp bone shards. Similar to {i}ice storm{/i} with the following differences.  These shards deal 5d6 points of slashing damage to all creatures in a 10-foot-radius burst and each creature bleeds on its turn for an additional 1d6 points of damage (this bleed can be healed or stopped as normal).   Creatures in the area can attempt a DC 16 Reflex save to halve the damage and negate the bleed."]
which resulted in

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'ioB0MFSCBo' (Eval Script '#1') on line 3
-> Invalid thing transition syntax used
 
Last edited:
Code:
~ Lets add to our modified Ice Storm spell information for reference     

perform state.thing[spIceSto3.amendthing[description,"Three times per day, the wearer of the crown can call down a storm of razor sharp bone shards. Similar to {i}ice storm{/i} with the following differences.  These shards deal 5d6 points of slashing damage to all creatures in a 10-foot-radius burst and each creature bleeds on its turn for an additional 1d6 points of damage (this bleed can be healed or stopped as normal).   Creatures in the area can attempt a DC 16 Reflex save to halve the damage and negate the bleed."]
This script is not formatted correctly as your missing ].
Code:
~ Lets add to our modified Ice Storm spell information for reference     

perform state.thing[spIceSto3[B]][/B].amendthing[description,"Three times per day, the wearer of the crown can call down a storm of razor sharp bone shards. Similar to {i}ice storm{/i} with the following differences.  These shards deal 5d6 points of slashing damage to all creatures in a 10-foot-radius burst and each creature bleeds on its turn for an additional 1d6 points of damage (this bleed can be healed or stopped as normal).   Creatures in the area can attempt a DC 16 Reflex save to halve the damage and negate the bleed."]

Note: if your not using the "macro" version you are going to replace the whole spell description instead of appending to it.
 
Another note is that BaseSpell component has a field called "DescAppend" that will append any text placed into it on to the spell description. This is very nice if you are placing a note onto "many" spells as its less overhead then affecting Things using amendthing.

Just an FYI as I have such a thing setup in my houserules file. Here is an example in use:
Timing: Final/50000
Code:
      ~ Finished if not a Arcane or Divine caster
      doneif (hero.tagis[Hero.Caster] <> 1)    
      
      ~ Give damage CL text on to all spells on character
      foreach pick in hero from BaseSpell
        eachpick.field[DescAppend].text &= "{b}Shadow d20:{/b} If this spell does hit point damage it gains a bonus equal to your caster level (" & signed(eachpick.field[sCL].value) & ")."  
      nexteach
 
If you have line breaks in your #appenddesc[] I think you have code the line breaks with \n
Just a note {BR} also works so you will see that in some of LW scripts. Honestly they both seem to work but when I asked for d20 stuff Colen said the current standard is to use {BR} instead of \n.
 
Well what do you know this works!!:D

Code:
~ Lets add to our modified Ice Storm spell information for reference

   #appenddesc[spIceSto3, "{b}Three times per day{/b}, the wearer of the crown can call down a storm of razor sharp bone  shards.Similar to {i}ice storm{/i} with the following differences.{BR}These shards deal 5d6 points of slashing damage to all creatures in a 10-foot-radius burst and each creature bleeds on its turn for an additional 1d6 points of damage (this bleed can be healed or stopped as normal).{BR}Creatures in the area can attempt a DC 16 Reflex save to halve the damage and negate the bleed."]

Thanks for the help guys.

I'm slowly making a coding comeback, it's been 2 years since I last uploaded anything to the community, but I've always been here!:cool:
 
Back
Top