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

Turn on trigger for triggering player only?

Status
Not open for further replies.
Level 5
Joined
May 10, 2009
Messages
88
Here's what I have, but this turns on the trigger for everyone. How do I make it so that the turned on trigger is only turned on for the person who types the message, and not everyone?


  • Activator
    • Events
      • Player - Player 1 (Red) types a chat message containing trigger as An exact match
      • Player - Player 2 (Blue) types a chat message containing trigger as An exact match
      • Player - Player 3 (Teal) types a chat message containing trigger as An exact match
      • Player - Player 4 (Purple) types a chat message containing trigger as An exact match
      • Player - Player 5 (Yellow) types a chat message containing trigger as An exact match
      • Player - Player 6 (Orange) types a chat message containing trigger as An exact match
      • Player - Player 7 (Green) types a chat message containing trigger as An exact match
      • Player - Player 8 (Pink) types a chat message containing trigger An exact match
      • Player - Player 9 (Gray) types a chat message containing trigger as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing trigger as An exact match
    • Conditions
    • Actions
      • Trigger - Turn on Gold <gen>
 
Last edited:
Level 6
Joined
Jan 31, 2009
Messages
166
It would help if you told us what "Gold" was supposed to do, it sounds as if its suposed to give gold to a player in wich case you could just use a global variable set in this trigger. then have your gold trigger only work for that player

  • Activator
  • Events
  • Player - Player 1 (Red) types a chat message containing trigger as An exact match
  • Player - Player 2 (Blue) types a chat message containing trigger as An exact match
  • Player - Player 3 (Teal) types a chat message containing trigger as An exact match
  • Player - Player 4 (Purple) types a chat message containing trigger as An exact match
  • Player - Player 5 (Yellow) types a chat message containing trigger as An exact match
  • Player - Player 6 (Orange) types a chat message containing trigger as An exact match
  • Player - Player 7 (Green) types a chat message containing trigger as An exact match
  • Player - Player 8 (Pink) types a chat message containing trigger An exact match
  • Player - Player 9 (Gray) types a chat message containing trigger as An exact match
  • Player - Player 10 (Light Blue) types a chat message containing trigger as An exact match
  • Conditions
  • Actions
  • Set GoldPlayer = (Triggering player)
    • Trigger - Turn on Gold <gen>
And add this to your Gold trigger

  • Gold
    • Events
    • Conditions
      • (Triggering player) Equal to GoldPlayer
    • Actions
The trigger is still as you say "turned on for everyone" but It will only work for the player set to gold player note that if sommone else types in the message after they will be set to the goldplayer you can stop t hat by adding

  • Trigger - Turn off (This trigger)
to the end of your activator trigger

Hope that helps
 
Status
Not open for further replies.
Top