• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Skill Requirement for obtaining other Skills.

Status
Not open for further replies.
Level 2
Joined
Jun 25, 2008
Messages
14
I'm selling Hero Skills through Neutral Shops. The skills are divided into Tier-1 and Tier-2. For simplicity's sake, lets assume all skills only has 1 Level. Lets also assume that there is 15 Tier-1 Skills, and the Hero must have ATLEAST 3 Tier-1 skills before purchasing Tier-2 Skills.

Is there a function which allows me to detect the NUMBER of Skills a Hero has?
Would it be any different if I were to add additional Levels to the skills?
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
well, you are right, integer variable would be much easier :p

but, since he is using books that a person buys to get spells, he is probably using triggers for that, so he could just add another level to the spell from there :p
 
Level 25
Joined
May 11, 2007
Messages
4,650
Ye, or you buy the same spell twice.

''If unit has ability BLÖH (lvl1), then remove ability BLÖH (lvl1) and add ability BLÖH (lvl2)
Else add ability BLÖH (lvl1)

Edit: Sorry, forgot that blizzard doesn't have a condition for ''Unit has ability''. Why doesn't it?!
 
Status
Not open for further replies.
Top