• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Help with player commands

Status
Not open for further replies.

lotta65

L

lotta65

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?
 
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
 
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.
Back
Top