HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

hero has skill?

04-07-2004, 07:10 AM#1
311
Ive looked and looked and can not find this trigger no matter what and it would help SO much.
as a condition
Hero has skill = to stormbolt
or hero has stormbolt spell = to true

i cant find this trigger got a feeling it dont exist, but hopefully 1 of you might know. Just to let you know this is for my battlefields map, so no hero has skills at the start you buy them all, so I cant use specific units because any unit can have stormbolt or whatever
04-07-2004, 11:33 AM#2
johnfn
Im pretty sure your right; there is no way. No direct way, that is. My best idea would be something like this

Actions:
A hero learns a skill
Events:
set amtofskills = amtofskills + 1
set skillslearnt(amtofskills) = (last learnt skill)



Then later on you can look through the skillslearnt variable in the array elements to see if the hero learnt the skill you want.

If you dont understand about arrays, i can help.
04-07-2004, 11:56 AM#3
Bloodlust
i guess you gotta do it like "hero learn skill, set variable X to true" and for the condition X equal to true.
04-07-2004, 12:01 PM#4
311
i didnt wanna do it that way, WAY to much trouble, I have over 50skills so thats 50variables, then also you need to do it for every player, so guess I cant do what I wanted :(. Dont matter to much I coulda added a nice feature to my map tho, buts still really fun as it is, ill post it soon
04-07-2004, 01:03 PM#5
weaaddar
Or just one array.
50*16==800
one tenth of the limit.
Also there is the Integer comparison-Ability Level which if its greater then 0 means he has the skill.
04-07-2004, 03:08 PM#6
Bloodlust
yes absolutly no trouble using arrays
04-07-2004, 03:12 PM#7
weaaddar
By the way if you didn't notice I already told you of a way to check if he has a skill by using the ability level comparision.