Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
In each of your examples, the "If you use your touch attack" line is separate from the original. Is that the way it looks in your code, or is the extra line an artifact of how you copied the code?
If it isn't an artifact, get it all on one line. |
#11 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Quote:
Thank you for the assistance everyone. Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
Last edited by bodrin; July 4th, 2013 at 08:56 AM. |
|
#12 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Script(s) posted for future reference
Render 10000 Code:
~ Change our Touch attack summary to the withering touch benefit. hero.childfound[xLichTouch].field[abSumm].text = "2d8+" & field[abValue].value & " damage, plus Fort save or be paralyzed." hero.childfound[xLichTouch].field[livename].text = "Negative Energy Touch Attack 2d8+" & field[abValue].value field[abValue].value += round(herofield[tHitDice].value/1,0,-1) perform state.thing[xLichTouch].amendthing[description,"{b} Withering Touch {/b}: Your touch attack deals 2d8 points of negative energy damage +1 point of damage per Hit Dice of the lich. If you use your touch attack to heal any undead (includng yourself) the undead heals at this improved rate."] Code:
~ Ensure our Withering Touch title contains our Damage and DC info field[abValue].value += round(herofield[tHitDice].value/1,0,-1) field[livename].text = field[name].text & " 2d8+" & field[abValue].value field[abSumm].text = "2d8+" & field[abValue].value & " damage, plus Fort save or be paralyzed." Code:
~lets get our total hit dice divided by 2 because we want to ~add half again Var Bonus as number Bonus = round(herofield[tHitDice].value/2,0,-1) ~Now lets add it to our Negative energy Touch attack #value[xLichTouch] += Bonus #appenddesc macro. Render 10000 Code:
~ Change our Touch attack summary to the withering touch benefit. field[abValue].value += round(herofield[tHitDice].value/1,0,-1) hero.childfound[xLichTouch].field[abSumm].text = "2d8+" & field[abValue].value & " damage, plus Fort save or be paralyzed." hero.childfound[xLichTouch].field[livename].text = "Negative Energy Touch Attack 2d8+" & field[abValue].value #appenddesc[xLichTouch,"{b} Withering Touch {/b}: Your touch attack deals 2d8 points of negative energy damage +1 point of damage per Hit Dice of the lich. If you use your touch attack to heal any undead (includng yourself) the undead heals at this improved rate."] Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
#13 |
|
|