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

[Solved] Help Trigger

Status
Not open for further replies.
Level 3
Joined
Aug 6, 2011
Messages
39
I don't know how to do 2 commands by trigger.
-name "xx" You change your name for what is written after "-name", which in this case is "xx"
-time Displays a message showing the time spent playing.
 
Last edited:
Level 12
Joined
Jan 30, 2009
Messages
1,067
I do not believe that this is possible because the event that is required for the chat commands to work requires the message within the event itself.

So you have to do a trigger for each chat command separately.

Player - Chat Message I think is the event name.

Then you run your conditions/actions as needed.

Repeat for each command you wish to have.
 
Level 11
Joined
Nov 15, 2007
Messages
800
For the first,

  • namechange
    • Events
      • Player - Player 1 (Red) types a chat message containing -name as A substring
      • Player - Player 2 (Blue) types a chat message containing -name as A substring
      • Player - Player 3 (Teal) types a chat message containing -name as A substring
      • ...etc. for every player
    • Conditions
    • Actions
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, (Length of (Entered chat string))))
For the second you need 2


  • gametime
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set seconds = (seconds + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • seconds Equal to 60
        • Then - Actions
          • Set minutes = (minutes + 1)
          • Set seconds = 0
        • Else - Actions

  • time
    • Events
      • Player - Player 1 (Red) types a chat message containing -time as A substring
      • Player - Player 2 (Blue) types a chat message containing -time as A substring
      • Player - Player 3 (Teal) types a chat message containing -time as A substring
      • ...etc. for every player
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) the text: ((String(minutes)) + (: + (String(seconds))))
Minutes and seconds are integer variables if you couldn't tell.
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
If you mean why can you not set it to solved:

They don't use that anymore, lol.
 
Status
Not open for further replies.
Top