• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger]Need help for player-based global command

Status
Not open for further replies.
Level 1
Joined
Oct 24, 2008
Messages
5
Need help for a couple of triggers

  • Victory Commands
    • Events
      • Player - Player 1 (Red) types a chat message containing -victory as An exact match
    • Conditions
    • Actions
      • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
Is there a way to make this command to work for all players w/o placing this trigger for every single player. I mean that everyone who wants to leave game with Victory just write the command.

Help:cry:
 
Last edited:
Level 16
Joined
Feb 22, 2006
Messages
960
easy done :)
simply write this one
  • Victory Commands
    • Events
      • Player - Player 1 types a chat message containing -victory as An exact match
      • Player - Player 2 types a chat message containing -victory as An exact match
      • Player - Player 3 types a chat message containing -victory as An exact match
      • Player - Player 4 types a chat message containing -victory as An exact match
      • Player - Player 5 types a chat message containing -victory as An exact match
      • Player - Player 6 types a chat message containing -victory as An exact match
      • Player - Player 7 types a chat message containing -victory as An exact match
      • Player - Player 8 types a chat message containing -victory as An exact match
      • Player - Player 9 types a chat message containing -victory as An exact match
      • Player - Player 10 types a chat message containing -victory as An exact match
      • Player - Player 11 types a chat message containing -victory as An exact match
      • Player - Player 12 types a chat message containing -victory as An exact match
    • Conditions
    • Actions
      • Game - Victory Triggering Player (Show dialogs, Show scores)
 
Level 1
Joined
Oct 24, 2008
Messages
5
That was fast:thumbs_up:

Another problems... Anybody knows how to check movespeed of player's hero with chat command and how to set per-player victory after -timer X minutes?

I used an already created for that triggers w/o result, movespeed returned value is 0.000 and time command didn't work - just timer expires and that's all ... game continues :emote_confused:

Also leaderboard don't work correctly - first kill for every player is not calculated.

  • Map Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Trigger - Add to Victory Command <gen> the event (Player - (Player((Integer A))) types a chat message containing -victory as An exact match)
          • Trigger - Add to Help Command <gen> the event (Player - (Player((Integer A))) types a chat message containing -help as An exact match)
          • Trigger - Add to Author Command <gen> the event (Player - (Player((Integer A))) types a chat message containing -author as An exact match)
          • Trigger - Add to Move Speed Command <gen> the event (Player - (Player((Integer A))) types a chat message containing -ms as An exact match)
      • Player - Change color of Player 1 (Red) to Red, Changing color of existing units
      • Player - Change color of Player 2 (Blue) to Blue, Changing color of existing units
      • Player - Change color of Player 3 (Teal) to Teal, Changing color of existing units
      • Player - Change color of Player 4 (Purple) to Purple, Changing color of existing units
      • Player - Change color of Player 5 (Yellow) to Yellow, Changing color of existing units
      • Player - Change color of Player 6 (Orange) to Orange, Changing color of existing units
      • Player - Change color of Player 7 (Green) to Green, Changing color of existing units
      • Player - Change color of Player 8 (Pink) to Pink, Changing color of existing units
      • Player - Change color of Player 9 (Gray) to Gray, Changing color of existing units
      • Player - Change color of Player 10 (Light Blue) to Light Blue, Changing color of existing units
      • Player - Change color of Player 11 (Dark Green) to Dark Green, Changing color of existing units
      • Player - Change color of Player 12 (Brown) to Brown, Changing color of existing units
      • Player - Set name of Player 1 (Red) to PillowMaster
      • Player - Set name of Player 2 (Blue) to Sleepin' worm
      • Player - Set name of Player 3 (Teal) to DreamCatcher
      • Player - Set name of Player 4 (Purple) to I watch horrors bef...
      • Player - Set name of Player 5 (Yellow) to Midnight Urinator
      • Player - Set name of Player 6 (Orange) to Where's my blanket?
      • Player - Set name of Player 7 (Green) to Smoke Weed and Go t...
      • Player - Set name of Player 8 (Pink) to DreamMaker
      • Player - Set name of Player 9 (Gray) to Keyboard is not a p...
      • Player - Set name of Player 10 (Light Blue) to Too tired to Play
      • Player - Set name of Player 11 (Dark Green) to Wake Me at t3h Noon
      • Player - Set name of Player 12 (Brown) to The usual leaver
      • Game - Set game speed to Fastest
      • Game - Lock the game speed
      • Game - Set the time of day to 12.00
      • Game - Turn the day/night cycle Off
      • Game - Display to (All players) for 15.00 seconds the text: To check available ...
      • Visibility - Disable black mask
      • Visibility - Disable fog of war
      • Player Group - Pick every player in (All players) and do (Unit - Create 1 Mountain King for (Picked player) at ((Picked player) start location) facing (Center of (Playable map area)))
  • Leaderboard
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled -= K I L L S =-
      • Leaderboard - Show (Last created leaderboard)
      • Leaderboard - Sort (Last created leaderboard) by Value in Ascending order
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
  • Level and Skills of Heroes
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Hero - Set (Triggering unit) Hero-level to 10, Hide level-up graphics
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Avatar
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Bash
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Bash
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Bash
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Storm Bolt
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Storm Bolt
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Storm Bolt
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Thunder Clap
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Thunder Clap
      • Hero - Learn skill for (Triggering unit): Human Mountain King - Thunder Clap
  • Hero revival and kills counting
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to LB[(Player number of (Owner of (Killing unit)))]
      • Set LB[(Player number of (Owner of (Killing unit)))] = (LB[(Player number of (Owner of (Killing unit)))] + 1)
      • Wait 5.00 seconds
      • Hero - Instantly revive (Triggering unit) at ((Owner of (Triggering unit)) start location), Hide revival graphics
  • Timer
    • Events
      • Player - Player 1 (Red) types a chat message containing -timer as An exact match
    • Conditions
    • Actions
      • Countdown Timer - Create a timer window for Timer with title Time remaining:
      • Countdown Timer - Start Timer as a One-shot timer that will expire in 10.00 seconds
  • Timer expired
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • Countdown Timer - Destroy (Last created timer window)
      • Game - Victory (Triggering player) (Show dialogs, Show scores)
  • Move Speed Command
    • Events
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) for 5.00 seconds the text: (String((Current movement speed of (Triggering unit))))
  • Victory Command
    • Events
    • Conditions
    • Actions
      • Game - Victory (Triggering player) (Show dialogs, Show scores)
  • Help Command
    • Events
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: -victory gives inst...
  • Author Command
    • Events
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: unknown
I'm woozy after >2 days of diff tries to fix them :cry:
Help? :confused:
 
Last edited:
Status
Not open for further replies.
Top