View Single Post
Bloodwolf
Senior Member
 
Join Date: Dec 2013
Posts: 166

Old November 5th, 2020, 04:35 PM
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
Bloodwolf is offline   #1067 Reply With Quote