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

Mode -Same Hero

Status
Not open for further replies.
Level 3
Joined
May 30, 2012
Messages
29
Hi, i want create it mode:

sh - (Same Hero.) All players will be given the hero that Blue has.

my game is a 5x5, like dota. with 24 heros.

if need more information, say me.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Just like DotA, when -sh mode is activated, other players cannot pick their Heroes, right ?
Only the host can pick it - in this case, Player 1 (Red).

But since you want it Player 2 (Blue) to take the lead, only Player 2 can pick the mode, right ?

In this test map, you will 'act' like you're Player 2 (but you're Player 1 - because AI cannot be forced to type a message chat).

Here's a test map.
 

Attachments

  • Same Hero.w3x
    13.6 KB · Views: 54
Level 3
Joined
May 30, 2012
Messages
29
ey man i think it is all fine, i do it, and all players have same hero :D. but say me if someone is bad, i dont want bugs ^^

  • SameHero
    • Events
      • Player - Player 1 (Red) types a chat message containing -sh as A substring
    • Conditions
    • Actions
      • Trigger - Turn off Time15 <gen>
      • Trigger - Turn off Time45 <gen>
      • For each (Integer A) from 2 to 5, do (Actions)
        • Loop - Actions
          • Player - Limit training of Heroes to 0 for (Player((Integer A)))
      • Wait 2.00 seconds
      • For each (Integer B) from 7 to 11, do (Actions)
        • Loop - Actions
          • Player - Limit training of Heroes to 0 for (Player((Integer B)))


  • Samehero
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • For each (Integer A) from 2 to 5, do (Actions)
        • Loop - Actions
          • Unit - Create 1 (Unit-type of (Sold unit)) for (Player((Integer A))) at (Center of StartPointL <gen>) facing Default building facing degrees
      • For each (Integer B) from 7 to 11, do (Actions)
        • Loop - Actions
          • Unit - Create 1 (Unit-type of (Sold unit)) for (Player((Integer B))) at (Center of StartPointR <gen>) facing Default building facing degrees
 
Level 3
Joined
May 30, 2012
Messages
29
Now is finished:

  • SameHero
    • Events
      • Player - Player 1 (Red) types a chat message containing -sh as A substring
    • Conditions
    • Actions
      • Trigger - Turn off Time15 <gen>
      • Trigger - Turn off Time45 <gen>
      • For each (Integer A) from 2 to 5, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Player - Limit training of Heroes to 0 for (Player((Integer A)))
            • Else - Actions
      • Wait 2.00 seconds
      • For each (Integer B) from 7 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer B))) slot status) Equal to Is playing
            • Then - Actions
              • Player - Limit training of Heroes to 0 for (Player((Integer B)))
            • Else - Actions


  • Samehero
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • For each (Integer A) from 2 to 5, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Unit - Create 1 (Unit-type of (Sold unit)) for (Player((Integer A))) at (Center of StartPointL <gen>) facing Default building facing degrees
            • Else - Actions
      • For each (Integer B) from 7 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer B))) slot status) Equal to Is playing
            • Then - Actions
              • Unit - Create 1 (Unit-type of (Sold unit)) for (Player((Integer B))) at (Center of StartPointR <gen>) facing Default building facing degrees
            • Else - Actions
 
Level 3
Joined
May 30, 2012
Messages
29
  • SameHero
    • Events
      • Player - Player 1 (Red) types a chat message containing -sh as A substring
    • Conditions
    • Actions
      • Trigger - Turn off Time15 <gen>
      • Trigger - Turn off Time45 <gen>
      • Trigger - Turn on Sellsamehero <gen>
      • For each (Integer A) from 2 to 5, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Player - Limit training of Heroes to 0 for (Player((Integer A)))
            • Else - Actions
      • Wait 2.00 seconds
      • For each (Integer B) from 7 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer B))) slot status) Equal to Is playing
            • Then - Actions
              • Player - Limit training of Heroes to 0 for (Player((Integer B)))
            • Else - Actions
      • Trigger - Turn off (This trigger)


  • Sellsamehero
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Unit - Create 1 (Unit-type of (Sold unit)) for (Player((Integer A))) at (Center of StartPointL <gen>) facing Default building facing degrees
            • Else - Actions
      • Set HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] = True
      • Unit - Remove (Sold unit) from the game
      • Camera - Pan camera for (Owner of (Sold unit)) to (Center of StartPointL <gen>) over 1.00 seconds
      • For each (Integer B) from 7 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer B))) slot status) Equal to Is playing
            • Then - Actions
              • Unit - Create 1 (Unit-type of (Sold unit)) for (Player((Integer B))) at (Center of StartPointR <gen>) facing Default building facing degrees
            • Else - Actions
      • Trigger - Turn off (This trigger)
 
Status
Not open for further replies.
Top