I am trying to code a template which grants different abilities depending on what the base creature is.
For instance if the base creature is a Cloud Giant, the template grants sonic 10 resistance.
In the template I have the following code to assign a custom tag:
First/100
if (hero.tagcount[IsRace.rClouGiant] <> 0) then
perform hero.assign[Custom.CloudGiant]
endif
and the sonic resistance has the condition
First/450
Custom.CloudGiant
However, for some reason the script is not assigning the Custom.CloudGiant tag to the hero when I try to apply it to a cloud giant. Ideas?
For instance if the base creature is a Cloud Giant, the template grants sonic 10 resistance.
In the template I have the following code to assign a custom tag:
First/100
if (hero.tagcount[IsRace.rClouGiant] <> 0) then
perform hero.assign[Custom.CloudGiant]
endif
and the sonic resistance has the condition
First/450
Custom.CloudGiant
However, for some reason the script is not assigning the Custom.CloudGiant tag to the hero when I try to apply it to a cloud giant. Ideas?