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

I need some help with triggers

Status
Not open for further replies.
Level 4
Joined
Feb 9, 2009
Messages
64
I'm stuck here, because I'm new to the triggers thing. But how do I make a trigger with this description:
If Ranger 1 picks up 2 Greater Arcane Charges, Player 1 is victorious.
So far, after spending ten minutes looking through the Events, Conditions, and Actions, I cannot find a trigger that fits that description.

Right now, I have this in the trigger

Events
Unit - Ranger acquires an item
Conditions
Greater Arcane Charge Equal to Greater Arcane Charge
Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)

I want to make it that the Ranger needs to pick up TWO Arcane Charges in order to trigger victory.

Plz help
 
  • Trigger1
  • Events
    • Unit - A unit acquires an item
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Ranger //Unit-type comparison
  • Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Count) Less than 2 //Integer Comparison
      • Then - Actions
        • Set Count = (Count + 1)
      • Else - Actions
        • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
Count is an Integer Variable.

Fore more about variables:
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/variables-5896/
 
Status
Not open for further replies.
Top