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

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