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

[Solved] Do event-response variables carry over to the next trigger?

Status
Not open for further replies.
Level 3
Joined
Jul 3, 2011
Messages
13
If you "Run another trigger while ignoring conditions", will the next trigger inherit the variables from the first one?

For example,

Trigger 1:
Event - Player 1 types "Hello"
Action - Run Trigger 2 while Ignoring Conditions

Trigger 2:
Action - Display text to all players: ( Name of Triggering Player + " has typed hello" )

--

Will the output be "Player 1 has typed hello." ?
 
Level 3
Joined
Jul 3, 2011
Messages
13
If you "Run another trigger while ignoring conditions", will the next trigger inherit the variables from the first one?

For example,

Trigger 1:
Event - Player 1 types "Hello"
Action - Run Trigger 2 while Ignoring Conditions

Trigger 2:
Action - Display text to all players: ( Name of Triggering Player + " has typed hello" )

--

Will the output be "Player 1 has typed hello." ?
I just created this trigger and ran it.

* TRIGGER 1
Event
- Player 1 types "kill"
Action
- Pick every unit in entire map matching unit selected by player 1 and kill the unit
- Run Trigger 2 while Ignoring Conditions

- TRIGGER 2
Action
- Display Text: ( Name of Triggering Player + " has killed something )

---
The output was: "WorldEdit has killed something" displayed as text in the game.

My initial understanding was that the use of this type of variable "Triggering Player" can only work on the Trigger it is at. Then I got an output out of the two triggers I made above. I'm confused.
 
Status
Not open for further replies.
Top