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

[Trigger] Voting system fixing

Status
Not open for further replies.
Level 9
Joined
May 30, 2008
Messages
430
how to make this trigger work for the triggered player only, how to make it becouse i try everything but can't do it becouse when 1 player type it this text is typed for all players not olny to trigering player

  • Player Help
    • Events
      • Player - Player 2 (Blue) types a chat message containing help as An exact match
      • Player - Player 3 (Teal) types a chat message containing help as An exact match
      • Player - Player 4 (Purple) types a chat message containing help as An exact match
      • Player - Player 5 (Yellow) types a chat message containing help as An exact match
      • Player - Player 7 (Green) types a chat message containing help as An exact match
      • Player - Player 8 (Pink) types a chat message containing help as An exact match
      • Player - Player 9 (Gray) types a chat message containing help as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing help as An exact match
    • Conditions
    • Actions
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdasdas
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdsadasdsad
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdasdasdasd
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdsadasdsad
 
Last edited:
Level 18
Joined
Aug 23, 2008
Messages
2,319
The trigger seems fine to me (just not leakless)

For that last trigger you placed: I'm not entirely sure if you can change the Player X to 'A player' or something like that and if there's a condition that recognises the triggering player. If so: use that just like you make a ability trigger.
If not: I think you need to make a trigger for each player.
  • Player Help
    • Events
      • Player - Player 2 (Blue) types a chat message containing help as An exact match
    • Conditions
    • Actions
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdasdas
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdsadasdsad
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdasdasdasd
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdsadasdsad
  • Player Help
    • Events
      • Player - Player 3 (Teal) types a chat message containing help as An exact match
    • Conditions
    • Actions
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdasdas
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdsadasdsad
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdasdasdasd
      • Game - Display to (All players matching ((Triggering player) Equal to (Triggering player))) for 120.00 seconds the text: asdasdsadasdsad
etc.
You can simply make 1 trigger, copy/paste it for 9 players, and change the player. Done in a minute :wink:
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
The last trigger can be done this way:
  • Player Help
    • Events
      • Player - Player 2 (Blue) types a chat message containing help as An exact match
      • Player - Player 3 (Teal) types a chat message containing help as An exact match
      • Player - Player 4 (Purple) types a chat message containing help as An exact match
      • Player - Player 5 (Yellow) types a chat message containing help as An exact match
      • Player - Player 7 (Green) types a chat message containing help as An exact match
      • Player - Player 8 (Pink) types a chat message containing help as An exact match
      • Player - Player 9 (Gray) types a chat message containing help as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing help as An exact match
    • Conditions
    • Actions
      • Game - Display to (All players matching ((Matching player) Equal to (Triggering player))) the text: asdasdasdas
      • Game - Display to (All players matching ((Matching player) Equal to (Triggering player))) the text: asdasdasdasdasd
      • Game - Display to (All players matching ((Matching player) Equal to (Triggering player))) the text: asdasdasdasdasd
      • Game - Display to (All players matching ((Matching player) Equal to (Triggering player))) the text: asdasdasdasdasd
or this way:
  • Player Help
    • Events
      • Player - Player 2 (Blue) types a chat message containing help as An exact match
      • Player - Player 3 (Teal) types a chat message containing help as An exact match
      • Player - Player 4 (Purple) types a chat message containing help as An exact match
      • Player - Player 5 (Yellow) types a chat message containing help as An exact match
      • Player - Player 7 (Green) types a chat message containing help as An exact match
      • Player - Player 8 (Pink) types a chat message containing help as An exact match
      • Player - Player 9 (Gray) types a chat message containing help as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing help as An exact match
    • Conditions
    • Actions
      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
      • Game - Display to (All players) the text: asdasdasdas
      • Game - Display to (All players) the text: asdasdasdasdasd
      • Game - Display to (All players) the text: asdasdasdasdasd
      • Game - Display to (All players) the text: asdasdasdasdasd
      • Custom script: endif
 
Level 6
Joined
Aug 13, 2008
Messages
197
wtf?? display to triggering player of type triggering player? well i am not sure it would work and even if it did it a useless condition.
use the if condition instead.
eg. action - if triggering player equal to player 1 (red)
than - display to player 1 (red) for 120 sec the text : blah

p.s multiple lines can be made by holding ctrl+enter
 
Status
Not open for further replies.
Top