View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old August 9th, 2010, 05:37 AM
I've reduced the eval scripts to one script, but unfortunately, I can't figure out why the first part doesn't work. It seems to be the same as the monk's belt, but it isn't getting used. Anyone have any idea?

Quote:
var level as number
level = herofield[tLevel].value
var result as number
result = hero.child[wUnarmed].delete[wMain.?]
var dice as string

if (hero.tagis[Classes.Monk] <> 0) then
hero.child[cMnkUnarm].field[xExtraLev].value = hero.child[cMnkUnarm].field[xExtraLev].value + 4
else
if (level < 4) then
result = hero.child[wUnarmed].assign[wMain.1d4_4]
dice = "1d4"
elseif (level < 8) then
result = hero.child[wUnarmed].assign[wMain.1d6_5]
dice = "1d6"
elseif (level < 12) then
result = hero.child[wUnarmed].assign[wMain.1d8_6]
dice = "1d8"
elseif (level < 16) then
result = hero.child[wUnarmed].assign[wMain.1d10_304]
dice = "1d10"
else
result = hero.child[wUnarmed].assign[wMain.2d6_104]
dice = "2d6"
endif
field[livename].text = field[name].text & " (" & dice & ")"
endif

Last edited by Sendric; August 9th, 2010 at 10:32 AM.
Sendric is offline   #7 Reply With Quote