• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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