DeathSheep
Well-known member
This should be easier than I'm making it. I'm trying to create a special ability that requires proficiency (or expertise) in a skill (in this case, Stealth). What do I put in the pre-requisites script to check for that?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var SkillSt as number
if (hero.tagis[ProfSkill.skStealth] <> 0)
then SkillSt += 1
endif
if (hero.tagis[ProfDouble.skStealth] <> 0)
then SkillSt += 1
endif
SkillSt > 0
<evalrule phase="Final" priority="100000" message="You must be proficient in Stealth."><![CDATA[
var SkillSt as number
SkillSt = 0
if (hero.tagis[ProfSkill.skStealth] <> 0)
then SkillSt += 1
endif
if (hero.tagis[ProfDouble.skStealth] <> 0)
then SkillSt += 1
endif
if (SkillSt > 0) then
@valid = 1
if (@valid = 0) then
@message = "You must be proficient in Stealth."
endif
]]></evalrule>