• 🏆 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!

How to do a Same Hero mode -sh

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
This aint working. How i do this can some one help me out here pls.

Now i have those triggers.

  • Same Hero Mode
    • Events
      • Player - Player 2 (Blue) types a chat message containing -sh as A substring
      • Player - Player 2 (Blue) types a chat message containing -same as A substring
      • Player - Player 2 (Blue) types a chat message containing -same hero as A substring
    • Conditions
    • Actions
      • Game - Display to (All players) for 5.00 seconds the text: Same Hero Mode Enab...
      • Trigger - Turn off Same Hero Enabled <gen>
  • Same Hero Enabled
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Limit Heroes to 1 per Hero-type (for all players)
So how do i do this stuff?
 
Level 16
Joined
Jun 24, 2009
Messages
1,409
lol since it's a "map initialization" trigger it's no matter if you turn it off...
don't tell me that it's not working.... I tested it and it's just perfect....
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Hero[1] = Archmage
      • Set Hero[2] = Blood Mage
      • Set Hero[3] = Paladin
      • Set Hero[4] = Mountain King
  • Same Hero
    • Events
      • Player - Player 1 (Red) types a chat message containing -sh as A substring
    • Conditions
    • Actions
      • Trigger - Run Same Hero Spawn <gen> (checking conditions)
  • Same Hero Spawn (turned off)
    • Events
    • Conditions
    • Actions
      • Set Random = (Random integer number between 1 and 4)
      • Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Hero[Random] for (Picked player) at (Center of (Playable map area)) facing Default building facing degrees
 
Level 9
Joined
Dec 26, 2010
Messages
475
lol since it's a "map initialization" trigger it's no matter if you turn it off...
don't tell me that it's not working.... I tested it and it's just perfect....
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Hero[1] = Archmage
      • Set Hero[2] = Blood Mage
      • Set Hero[3] = Paladin
      • Set Hero[4] = Mountain King
  • Same Hero
    • Events
      • Player - Player 1 (Red) types a chat message containing -sh as A substring
    • Conditions
    • Actions
      • Trigger - Run Same Hero Spawn <gen> (checking conditions)
  • Same Hero Spawn (turned off)
    • Events
    • Conditions
    • Actions
      • Set Random = (Random integer number between 1 and 4)
      • Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Hero[Random] for (Picked player) at (Center of (Playable map area)) facing Default building facing degrees
LOL! =.= he said "SAME HERO" not "ALL RANDOM"
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
You disable hero selection for all other players. This is a good start.
Then you simply listen for player 1 making a selection (by this, I mean respond to the him making a selection). The actions are self explanitory (for all players but red, make a unit of the same type as the one red choose in response to the event).
 
Status
Not open for further replies.
Top