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

Help with player commands

Status
Not open for further replies.
Level 2
Joined
Aug 27, 2007
Messages
9
I want to make it so the following happens with the most effective GUI triggers possible. I know i should be using JASS, but I am nub, and therefore am not.

Player types a message exactly matching "-admin"
->If players name = LeDesir (or) Slovic
-->Turn on admin trigger
->Else, Do Nothing

right now i can't figure out how to make it so it effects all players without making a separate trigger for each one

"Player 1 (red) types "-admin"
etc.

Any suggestions anyone?
 
Level 24
Joined
Jun 14, 2005
Messages
2,506
You can have multiple events in a trigger, so you add an event for each player, from player 1-12.

  • Example
    • Events
      • Player - Player 1 (Red) types a chat message containing -admin as An exact match
      • Player - Player 2 (Blue) types a chat message containing -admin as An exact match
      • Player - Player 3 (Teal) types a chat message containing -admin as An exact match
    • Conditions
    • Actions
 
Level 2
Joined
Aug 27, 2007
Messages
9
You can have multiple events in a trigger, so you add an event for each player, from player 1-12.

  • Example
    • Events
      • Player - Player 1 (Red) types a chat message containing -admin as An exact match
      • Player - Player 2 (Blue) types a chat message containing -admin as An exact match
      • Player - Player 3 (Teal) types a chat message containing -admin as An exact match
    • Conditions
    • Actions

Awesome, didnt know that :D
thank you!
 
Status
Not open for further replies.
Top