Quote:
Originally Posted by Bloodwolf
One last thing (I hope).
Let me set the scenario for you. I have Darkness that I bootstrap into [Insert Race Spell-Like Ability]. How do I add the following script into [Insert Race Spell-Like Ability] but make it control Darkness?
I want Darkness to remain as generic as possible and do my race specific changes in [Insert Race Spell-Like Ability].
HTML Code:
var agecat as number
agecat = hero.child[xAgeCat].field[Value].value
var radius as number
radius = hero.child[xAgeCat].field[Value].value * 10
if (agecat >= 10) then
field[xSumm].text = "3/day, {i}darkness{/i} (" & radius & " ft rad)."
elseif (agecat >= 8) then
field[xSumm].text = "3/day, {i}darkness{/i} (" & radius & " ft rad)."
elseif (agecat >= 4) then
field[xSumm].text = "3/day, {i}darkness{/i} (" & radius & " ft rad)."
else
perform delete[Helper.ShowSpec]
endif
|
just add "hero.childfound[darkness.thingid]. in front of "field[xSumm].text". Obviously change darkness.thingid to the actual thingid.