• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Check whether unit has ability

Status
Not open for further replies.
Level 16
Joined
May 1, 2008
Messages
1,605
Moin moin =)

Hmm you mean something like that? ( I don't understand it as well but just a try ^^ ) :

  • Conditions:
    • (Level of <Ability> for (<Unit>)) Greater than or equal to 1
Edit: You said something about a spellbook. I didn't understand this part ( sorry ) but you can use this way too ( because I don't know if my trigger works for a spell inside a spellbook ):
  • TestTrigger2305
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Acid Bomb
    • Actions
      • Set Integer[(Player number of (Owner of (Triggering unit)))] = (Integer[(Player number of (Owner of (Triggering unit)))] + 1)
  • TestTrigger2306
    • Events
      • Unit - A unit Dies
    • Conditions
      • Integer[(Player number of (Owner of (Triggering unit)))] Equal to 1
    • Actions
      • <Actions>
Integer is an integer variable with array.

1) Make a new condition > Integer Comparison

2) Click on: (Number of units in (Unit in (Playable Map area))). In the new window choose the variable and press ok

3) Behind the variable you see [Index] <-- click on it and a new window comes up.

4) In this window you scroll in the function list down to "Player - Player Number". You see (Trigging Player) and click on it.

5) Now again in the function list scroll down to "Owner of Unit" and press enter/ok twice.

6 Now you click to the 0 and in the new window scroll in the function list to "Arithmetic". Now you click on value and make 1 - 5 again)



Greetings
~ The Bomb King > Dr. Boom
 
Status
Not open for further replies.
Top