Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
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
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old September 5th, 2009, 09:50 PM
I'll check into the details Tuesday.

And please, my name is Mathias Gehl or mgehl, NOT M-G-Hell
Mathias is offline   #2 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 6th, 2009, 12:11 AM
Holy crepe! You're the second person in as many days that has pointed out I remembered their name wrong. I'm terrible with names, sorry about that.

Thanks again mgehl.
Lawful_g is offline   #3 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 23rd, 2009, 06:02 PM
Bump!
Lawful_g is offline   #4 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old September 30th, 2009, 06:57 PM
Fixed, it was a timing issue.
Lawful_g is offline   #5 Reply With Quote
Reply

Thread Tools
Display Modes

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 07:15 AM.


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