Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 5th, 2009, 08:05 PM
I am doing a class special that sets unarmed strike damage to be 1d8 at 1st and 2nd level, and 1d10 at 3rd level. If the character already has damage equal to that, the damage dice is bumped up one level. I looked at the monk example and decided to do this with 2 separate eval scripts. There is no error on compile, but the damage is not changing. Here they are:

Post Levels (Users) 5000
~ Calculate our total level
var level as number
level = field[xTotalLev].value

~ Get our unarmed strike pick, delete the damage tag from it, and assign a new damage tag.
var result as number
var dice as string
if (level < 3) then
if (hero.child[wUnarmed].tagis[wMain.1d3_3] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.1d8_6]
dice = "1d8"
elseif (hero.child[wUnarmed].tagis[wMain.1d6_5] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.1d8_6]
dice = "1d8"
done
elseif (hero.child[wUnarmed].tagis[wMain.1d8_6] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.1d10_304]
dice = "1d10"
done
elseif (hero.child[wUnarmed].tagis[wMain.1d10_304] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.2d6_104]
dice = "2d6"
done
elseif (hero.child[wUnarmed].tagis[wMain.2d6_104] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.2d8_204]
dice = "2d8"
done
elseif (hero.child[wUnarmed].tagis[wMain.2d8_204] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.2d10_205]
dice = "2d10"
done
endif
endif

field[livename].text = "Unarmed Strike (" & dice & ")"

Post Levels (Users) 5100

~ Calculate our total level
var level as number
level = field[xTotalLev].value

~ At level 3+, increase our damage to d10 if it is lower than that, and increase by one step if it is equal to or higher than that.
var result as number
var dice as string
if (level >= 3) then
if (hero.child[wUnarmed].tagis[wMain.1d6_5] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.1d10_304]
dice = "1d10"
elseif (hero.child[wUnarmed].tagis[wMain.1d8_6] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.1d10_304]
dice = "1d10"
elseif (hero.child[wUnarmed].tagis[wMain.1d10_304] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.2d6_104]
dice = "2d6"
elseif (hero.child[wUnarmed].tagis[wMain.2d6_104] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.2d8_204]
dice = "2d8"
elseif (hero.child[wUnarmed].tagis[wMain.2d8_204] = 1) then
result = hero.child[wUnarmed].delete[wMain.?]
result = hero.child[wUnarmed].assign[wMain.2d10_205]
dice = "2d10"
endif
endif

field[livename].text = "Unarmed Strike (" & dice & ")"


Could you give me a hint mghel?
Lawful_g is offline   #1 Reply With Quote
 


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 03:58 PM.


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