I'm attempting to append / change the summary text of the vampires blood drain ability.
I've successfully managed to alter the description contained in the main text body utilising this code.
I'm using this code after investigating the ability fields and spotting that the summary is identified with the ID abSumm.
The following script compiles and appears to work correctly, However I'm unable to alter / change the ability summary text, I keep getting this error.
I've tried altering the phase / Priority to Render 10000.
Also tried #appendsumm just in case there was a macro to change the summary text. and tried amendthing[summary to no avail.
??
I've successfully managed to alter the description contained in the main text body utilising this code.
Code:
First 1000
~ change the Vampire Blood Drain text to our other benefit
perform state.thing[xVamBlood].amendthing[description, replace(state.thing[xVamBlood].field[descript].text,"A vampire can suck blood from a grappled opponent; if the vampire establishes or maintains a pin, it drains blood, dealing 1d4 points of Constitution damage. The vampire heals 5 hit points or gains 5 temporary hit points for 1 hour (up to a maximum number of temporary hit points equal to its full normal hit points) each round it drains blood.","A vampire can suck blood from a grappled opponent; if the vampire establishes or maintains a pin, it drains blood, dealing 1d6 Constitution damage The vampire heals 10 hit points or gains 10 temporary hit points for 1 hour (up to a maximum number of temporary hit points equal to its full normal hit points) each round it drains blood.",0)]
The following script compiles and appears to work correctly, However I'm unable to alter / change the ability summary text, I keep getting this error.
HTML:
Cannot amend thing 'xVamBlood' with an empty name or description.
Code:
First 1000
~ change the Vampire Blood Drain summary to our new improved summary
perform state.thing[xVamBlood].amendthing[description, replace(state.thing[xVamBlood].field[abSumm].text,"Suck blood for 1d4 CON dam and gain 5 Hp when pin foe","Suck blood for 1d6 CON dam and gain 10 Hp when pin foe",0)]
Also tried #appendsumm just in case there was a macro to change the summary text. and tried amendthing[summary to no avail.

Last edited: