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

[Trigger] Some Triggering Questions

Status
Not open for further replies.
Level 2
Joined
Jan 15, 2010
Messages
20
A. "If all conditions are true then do (then action) else do (else action)"
I think this is how it goes. Anyway, what does it mean?

B. I've been trying to make units get killed/exploded/removed/etc in a reigon but I don't know how. Can someone please tell me which events, conditions, and actions to use? In addition to that, I would highly appreciate if you could tell me what does each event, condition, and action does in your answer.

C. Same question as "B"'s, but I want the unit to "slide" on "ice".
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
A : If "Triggering unit" is A footman THEN order him to walk to this region ELSE (If he is not a footman" then "kill" triggering unit.

B :
Event : A unit enters YourRegion (To do this, go to the regions tap, and create a region where you want it to be)

Conditions : "Triggering unit" is a YourUnit (Pherhaps a demon hunter if you are creating a escape map ;))

Actions : Unit - Kill "Triggering Unit"
This will kill the entering unit IF it is a YourUnit!

I don't know the answer to C...
 
Level 2
Joined
Jan 15, 2010
Messages
20
Thanks for the answers! :grin:
About B, I also want to know... let's say a unit enters a teleporting reigon, and he teleports to a different reigon, in which starts a new event. What I want to do with this is that if another unit enters the teleporting reigon, I don't want the 2nd event to start all over.

*adding reputation thingy*
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
First of all "343-Guilty Spark" (The oracle) seems like somebody have played Halo 1 and 2 :p
Second : I don't really understand?
You could do like this : (If i understand it right)
  • Trigger1
  • Event : A unit enters YourRegion
  • Conditions : Triggering unit is a DemonHunter equal to true
  • Actions :
  • Create a special effect at position of triggering unit using Human Archmage Mass teleport.
  • HERE IS A VARIABLE! You will need to create a variable named "SpecielEffect" of type Special Effect.
  • Set SpecielEffect = (Last created Special effect)
  • Move triggering unit (instantly) to YourRegion2
  • Wait 2 seconds.
  • Remove SpecialEffect
  • Trigger 2
  • Event : A unit enters YourRegion2
  • Conditions : Triggering unit is a DemonHunter equal to true
  • Actions :
  • Do all that stuff you want to
  • And end the trigger with "Trigger - Turn off (This trigger)"
That will stop it from happening over and over again.
 
[•] http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/basic-triggering-5885/
[•] http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/basics-triggers-32113/
[•] http://www.hiveworkshop.com/forums/...als-279/complete-concise-gui-tutorial-111863/

This is what you need, baby ;)

And of course the main section: http://www.hiveworkshop.com/forums/tutorials/

We obviously can't tell you what each Event-Condition-Action does, they are too many. Experience yourself, grab some tutorials and you'll be fine. Tutorials will actually enhance your knowledge over the editor by 66%.
 
Last edited:
Level 13
Joined
Feb 18, 2009
Messages
1,381
OFF TOPIC :
Haha, i just played The Silent Catagropher in Halo 1 :)

ON TOPIC :
Did it help?
 
Level 2
Joined
Jan 15, 2010
Messages
20
OFF TOPIC:
Have you ever played Halo 3, Halo Wars, or Halo 3: ODST?

ON TOPIC:
Yes, this is what I need, thanks!
...but I have another question! :hohum: I want to damage a specific unit by clicking on it. How do I do that? :ugly:
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
OFF TOPIC:
Have you ever played Halo 3, Halo Wars, or Halo 3: ODST?

ON TOPIC:
Yes, this is what I need, thanks!
...but I have another question! :hohum: I want to damage a specific unit by clicking on it. How do I do that? :ugly:

OFF : I have only player Halo Wars. 20 Years before Halo : Combat Evolved

ON :
I am not completly sure what the EVENT name is...
  • Unit - A unit is beign targeted
  • Conditions : Triggering unit is a YourUnit
  • Actions : Set life of triggering unit to (Current life of (triggering unit) minus YourDamage))
I am not completly sure if it is this.. :hohum:
 
  • Trigger1
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Trigger - Add to Trigger 2 <gen> the event (Player - Player(IntegerA) selects a unit)
  • Trigger2
  • Events
  • Conditions
    • ((Triggering unit) belongs to an enemy of (Triggering Player)) Equal to True //Boolean Comparison
  • Actions
    • Unit - Cause (Triggering unit) to damage (Triggering unit) dealing 100.00 damage of Attack type Spells and Damage type Normal
 
Level 7
Joined
Apr 12, 2009
Messages
188
But what does Integar A mean?

Integer A, as Pharaoh_ has used it in his trigger, refers to the current iteration of the 'For Loop'.

Pharaoh_'s for loop is iterating 'Integer A' from 1 to 12, one by one (like this: 1, 2, 3, ... 12), so that the actions taken within the loop are executed 12 times (in his trigger, once for each player). The 'Integer A' is an integer field in the GUI, used to convert the current iteration of the for loop into a Player reference, using the 'Convert Player Index to Player' action.

As Pharaoh_ also said:

We obviously can't tell you what each Event-Condition-Action does, they are too many. Experience yourself, grab some tutorials and you'll be fine. Tutorials will actually enhance your knowledge over the editor by 66%.

66% exactly btw. :ugly:
 
Status
Not open for further replies.
Top