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

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: 55
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