• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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
781
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