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

Chat commands

Status
Not open for further replies.
Level 2
Joined
Dec 29, 2008
Messages
10
Okay, so i'm trying to make a chat command where if you type -fix camera it changes your camera to default and then the height offset to 1200. This all works fine for Player 1 (Red) because the event is for Player 1 (Red). I was wondering do i have to make an event for every player? Or is there a different event that does it for all the players?
 
Level 11
Joined
May 11, 2008
Messages
830
Okay, so i'm trying to make a chat command where if you type -fix camera it changes your camera to default and then the height offset to 1200. This all works fine for Player 1 (Red) because the event is for Player 1 (Red). I was wondering do i have to make an event for every player? Or is there a different event that does it for all the players?

You need to create a events for every player there isn't a ''any player'' option so:
Player 1 types in...
Player 2 types in...
Player 3 types in... etc...
but you don't need to create a new trigger for each player.
 
Level 4
Joined
Sep 2, 2006
Messages
99
Shouldn't this be in the trigger forum?

I think this is exactly what you need?


  • Ally
    • Events
      • Player - Player 1 (Red) types a chat message containing - as A substring
      • Player - Player 2 (Blue) types a chat message containing - as A substring
      • Player - Player 3 (Teal) types a chat message containing - as A substring
      • Player - Player 4 (Purple) types a chat message containing - as A substring
      • Player - Player 5 (Yellow) types a chat message containing - as A substring
      • Player - Player 6 (Orange) types a chat message containing - as A substring
      • Player - Player 7 (Green) types a chat message containing - as A substring
      • Player - Player 8 (Pink) types a chat message containing - as A substring
      • Player - Player 9 (Gray) types a chat message containing - as A substring
      • Player - Player 10 (Light Blue) types a chat message containing - as A substring
      • Player - Player 11 (Dark Green) types a chat message containing - as A substring
      • Player - Player 12 (Brown) types a chat message containing - as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to -fix
        • Then - Actions
          • Camera - Reset camera for (Triggering player) to standard game-view over 0.00 seconds
        • Else - Actions
          • Do nothing
Basic trigger idea from 'Object'
 
Level 9
Joined
Apr 3, 2008
Messages
700
  • Trigger
    • Events
      • Player - Player 1 (Red) types a chat message containing -fix as An exact match
      • Player - Player 2 (Blue) types a chat message containing -fix as An exact match
      • Player - Player 3 (Teal) types a chat message containing -fix as An exact match
      • Player - Player 4 (Purple) types a chat message containing -fix as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -fix as An exact match
      • Player - Player 6 (Orange) types a chat message containing -fix as An exact match
      • Player - Player 7 (Green) types a chat message containing -fix as An exact match
      • Player - Player 8 (Pink) types a chat message containing -fix as An exact match
      • Player - Player 9 (Gray) types a chat message containing -fix as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -fix as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -fix as An exact match
      • Player - Player 12 (Brown) types a chat message containing -fix as An exact match
    • Conditions
    • Actions
      • Camera - Reset camera for (Triggering player) to standard game-view over 0.00 seconds
 
Status
Not open for further replies.
Top