• 🏆 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!

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