• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[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