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

Hero Tavern

Status
Not open for further replies.
Level 3
Joined
Sep 29, 2012
Messages
37
More than 1

When I repick, it spawn 6 lost soul but it suppose to spawn 1. How do i fix this?
  • Tavern Hero Repick
    • Events
      • Player - Player 1 (Red) types a chat message containing -repick as An exact match
      • Player - Player 2 (Blue) types a chat message containing -repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -repick as An exact match
      • Player - Player 7 (Green) types a chat message containing -repick as An exact match
      • Player - Player 8 (Pink) types a chat message containing -repick as An exact match
      • Player - Player 9 (Gray) types a chat message containing -repick as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -repick as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -repick as An exact match
      • Player - Player 12 (Brown) types a chat message containing -repick as An exact match
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Triggering player) Food used) Equal to 1
          • Herochosenbyplayer[(Player number of (Triggering player))] Equal to True
    • Actions
      • Set TempUnitGroup = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
        • Loop - Actions
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Player - Make (Unit-type of (Picked unit)) Available for training/construction by (Picked player)
              • Unit - Create 1 Lost Soul for (Triggering player) at (Random point in Tarven <gen>) facing Default building facing degrees
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_TempUnitGroup)
      • Game - Display to (All players) the text: ((Name of (Triggering player)) + has repicked a hero!)
      • Set Herochosenbyplayer[(Player number of (Triggering player))] = False
      • Selection - Clear selection for (Triggering player)
      • Selection - Add Tavern 0018 <gen> to selection for (Triggering player)
      • Camera - Pan camera for (Triggering player) to (Center of Tarven <gen>) over 0.00 seconds
      • Set PlayerRepicked[(Player number of (Triggering player))] = False
 
Status
Not open for further replies.
Top