• 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.

Problem with Charm-Ability

Status
Not open for further replies.

Fin

Fin

Level 1
Joined
Apr 28, 2004
Messages
2
Hello.
Actually im creating a new map and i want to use a hero charm-ability which has 3 ability-levels. The first level shall only be able to aim on units that are level 1, the second on units that are level 3 or less and the third level on units that are level 5 or less. Ive made it with the ability creator, but the ability works on level 1 already on units of level 2 or higher. Could someone help me find out whats wrong?
 
Level 13
Joined
Jan 9, 2004
Messages
1,037
You would have to do it with triggers.

First make a trigger that records the level of the ability in an integer variable. Then make a trigger that uses the If/Then/Else command so that if hero is level 1 (integer variable = 1) it can't attack the other guy who would be at level x and so on for the different levels.
 
Status
Not open for further replies.
Top