Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old July 4th, 2013, 08:04 AM
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.
Mathias is offline   #11 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 4th, 2013, 08:51 AM
Quote:
Originally Posted by Mathias View Post
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.
It was on a seperate line, deleting the extra space worked. Not an obvious problem, **Happy Dance**.

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.
bodrin is offline   #12 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 4th, 2013, 09:30 AM
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."]
Post-levels 10000

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."
Post-levels 5000

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
See attached screenshot for the effects including one using the
#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
bodrin is offline   #13 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:57 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.