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

[Trigger] Need Advanced GUI'ers help

Status
Not open for further replies.
Level 9
Joined
Jun 25, 2009
Messages
427
Hello people, the title is not what it seems, if you know stuff, i'm sure you could help.

The problem is -switch command, i created this command, it works well. Ofc it works perfectly well only one time. The second time, multiboard names/kills and circle of heroes control sharing streaks. If somebody advanced in GUI would like to help. Post it here, i'll talk with you :)

Regards,
Tiche3:grin:
 
Level 9
Joined
Jun 25, 2009
Messages
427
Post triggers. Otherwise we cannot find your error(s). That's what I think.

Okay, i'll post them :) But i don't think you'll find so much errors because i use lots of arrays. :)

  • Switch Action
    • Events
    • Conditions
      • Switch_On Equal to True
    • Actions
      • Game - Display to (All players) the text: The Switch was comp...
      • Player - Change color of Switcher[Switcher_Number] to Player_Color[Switched], Changing color of existing units
      • Player - Change color of (Player(Switched)) to Player_Color[Switcher_Number], Changing color of existing units
      • Set Hardened_Skin_Group = (Units in (Playable map area) owned by Switcher[Switcher_Number])
      • Set Player_Row[(Player number of Switcher[Switcher_Number])] = (Switched + 1)
      • Set Player_Row[(Player number of (Player(Switched)))] = (Switcher_Number + 1)
      • Multiboard - Set the text for Multiboard item in column 2, row Player_Row[Switcher_Number] to (String(Player_Kills[Switcher_Number]))
      • Multiboard - Set the text for Multiboard item in column 2, row Player_Row[Switched] to (String(Player_Kills[Switched]))
      • Multiboard - Set the text for Multiboard item in column 3, row Player_Row[Switcher_Number] to (String(Player_Deaths[Switcher_Number]))
      • Multiboard - Set the text for Multiboard item in column 3, row Player_Row[Switched] to (String(Player_Deaths[Switched]))
      • Multiboard - Set the text for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to Player_Colored_Names[(Player number of Switcher[Switcher_Number])]
      • Multiboard - Set the text for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to Player_Colored_Names[(Player number of (Player(Switched)))]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Switcher[Switcher_Number] is an ally of Player 1 (Red)) Equal to True
        • Then - Actions
          • Set Revive[(Player number of Switcher[Switcher_Number])] = (Position of Circle Of Heroes 0051 <gen>)
          • Set Revive[Switched] = (Position of Circle Of Heroes 0000 <gen>)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Switcher[Switcher_Number] is an ally of Player 12 (Brown)) Equal to True
            • Then - Actions
              • Set Revive[(Player number of Switcher[Switcher_Number])] = (Position of Circle Of Heroes 0000 <gen>)
              • Set Revive[Switched] = (Position of Circle Of Heroes 0051 <gen>)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Switcher[Switcher_Number] is an ally of Player 1 (Red)) Equal to True
        • Then - Actions
          • Player Group - Make (All allies of Player 1 (Red)) treat (Player group(Switcher[Switcher_Number])) as an Enemy
          • Player Group - Make (Player group(Player 1 (Red))) treat (Player group(Switcher[Switcher_Number])) as an Enemy
          • Player Group - Make (Player group(Switcher[Switcher_Number])) treat (Player group(Player 1 (Red))) as an Enemy
          • Player Group - Make (Player group(Switcher[Switcher_Number])) treat (All allies of Player 1 (Red)) as an Enemy
          • Player Group - Make (All allies of Player 1 (Red)) treat (Player group((Player(Switched)))) as an Ally with shared vision
          • Player Group - Make (Player group((Player(Switched)))) treat (All allies of Player 1 (Red)) as an Ally with shared vision
          • Player Group - Make (Player group(Player 1 (Red))) treat (Player group((Player(Switched)))) as an Ally with shared vision
          • Player Group - Make (Player group((Player(Switched)))) treat (Player group(Player 1 (Red))) as an Ally with shared vision
          • Player Group - Make (Player group(Switcher[Switcher_Number])) treat (All allies of Player 12 (Brown)) as an Ally with shared vision
          • Player Group - Make (All allies of Player 12 (Brown)) treat (Player group(Switcher[Switcher_Number])) as an Ally with shared vision
          • Player Group - Make (Player group(Switcher[Switcher_Number])) treat (Player group(Player 12 (Brown))) as an Ally with shared vision
          • Player Group - Make (Player group(Player 12 (Brown))) treat (Player group(Switcher[Switcher_Number])) as an Ally with shared vision
          • Player Group - Make (All allies of Player 12 (Brown)) treat (Player group((Player(Switched)))) as an Enemy
          • Player Group - Make (Player group(Player 12 (Brown))) treat (Player group((Player(Switched)))) as an Enemy
          • Player Group - Make (Player group((Player(Switched)))) treat (Player group(Player 12 (Brown))) as an Enemy
          • Player Group - Make (Player group((Player(Switched)))) treat (All allies of Player 12 (Brown)) as an Enemy
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Switcher[Switcher_Number] is an ally of Player 12 (Brown)) Equal to True
            • Then - Actions
              • Player Group - Make (All allies of Player 1 (Red)) treat (Player group(Switcher[Switcher_Number])) as an Ally with shared vision
              • Player Group - Make (Player group(Switcher[Switcher_Number])) treat (All allies of Player 1 (Red)) as an Ally with shared vision
              • Player Group - Make (Player group(Player 1 (Red))) treat (Player group(Switcher[Switcher_Number])) as an Ally with shared vision
              • Player Group - Make (Player group(Switcher[Switcher_Number])) treat (Player group(Player 1 (Red))) as an Ally with shared vision
              • Player Group - Make (All allies of Player 1 (Red)) treat (Player group((Player(Switched)))) as an Enemy
              • Player Group - Make (Player group((Player(Switched)))) treat (All allies of Player 1 (Red)) as an Enemy
              • Player Group - Make (Player group(Player 1 (Red))) treat (Player group((Player(Switched)))) as an Enemy
              • Player Group - Make (Player group((Player(Switched)))) treat (Player group(Player 1 (Red))) as an Enemy
              • Player Group - Make (Player group(Switcher[Switcher_Number])) treat (All allies of Player 12 (Brown)) as an Enemy
              • Player Group - Make (All allies of Player 12 (Brown)) treat (Player group(Switcher[Switcher_Number])) as an Enemy
              • Player Group - Make (Player group(Switcher[Switcher_Number])) treat (Player group(Player 12 (Brown))) as an Enemy
              • Player Group - Make (Player group(Player 12 (Brown))) treat (Player group(Switcher[Switcher_Number])) as an Enemy
              • Player Group - Make (All allies of Player 12 (Brown)) treat (Player group((Player(Switched)))) as an Ally with shared vision
              • Player Group - Make (Player group(Player 12 (Brown))) treat (Player group((Player(Switched)))) as an Ally with shared vision
              • Player Group - Make (Player group((Player(Switched)))) treat (Player group(Player 12 (Brown))) as an Ally with shared vision
              • Player Group - Make (Player group((Player(Switched)))) treat (All allies of Player 12 (Brown)) as an Ally with shared vision
            • Else - Actions
      • Unit Group - Pick every unit in Hardened_Skin_Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
              • (Switcher[Switcher_Number] is an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Unit - Move (Picked unit) instantly to Revive[(Player number of Switcher[Switcher_Number])]
              • Camera - Pan camera for Switcher[Switcher_Number] to Revive[(Player number of Switcher[Switcher_Number])] over 0.00 seconds
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) is A Hero) Equal to True
                  • (Switcher[Switcher_Number] is an ally of Player 12 (Brown)) Equal to True
                • Then - Actions
                  • Unit - Move (Picked unit) instantly to Revive[(Player number of Switcher[Switcher_Number])]
                  • Camera - Pan camera for Switcher[Switcher_Number] to Revive[(Player number of Switcher[Switcher_Number])] over 0.00 seconds
                • Else - Actions
      • Unit Group - Pick every unit in Hardened_Skin_Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of (Picked unit)) Equal to Flame Lord
                • Then - Actions
                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNHeroAvatarOfFlame.blp
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Unit-type of (Picked unit)) Equal to Mineral Water
                    • Then - Actions
                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNSeaElemental.blp
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Unit-type of (Picked unit)) Equal to Skeleton Archer
                        • Then - Actions
                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNSkeletonArcher.blp
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Unit-type of (Picked unit)) Equal to Typhoon
                            • Then - Actions
                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNTornado.blp
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Unit-type of (Picked unit)) Equal to Adapter
                                • Then - Actions
                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNAncientOfWonders.blp
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Unit-type of (Picked unit)) Equal to Energiser
                                    • Then - Actions
                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNHeroDemonHunter.blp
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Unit-type of (Picked unit)) Equal to Necromancer
                                        • Then - Actions
                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNNecromancer.blp
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Unit-type of (Picked unit)) Equal to Phantasm
                                            • Then - Actions
                                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNUnbroken.blp
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • (Unit-type of (Picked unit)) Equal to Time Walker
                                                • Then - Actions
                                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNWendigo.blp
                                                • Else - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • (Unit-type of (Picked unit)) Equal to Zealot
                                                    • Then - Actions
                                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNAcolyte.blp
                                                    • Else - Actions
                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                        • If - Conditions
                                                          • (Unit-type of (Picked unit)) Equal to Ghost Hunter
                                                        • Then - Actions
                                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNHuntress.blp
                                                        • Else - Actions
                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                            • If - Conditions
                                                              • (Unit-type of (Picked unit)) Equal to Berserker
                                                            • Then - Actions
                                                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNChaosWolfRider.blp
                                                            • Else - Actions
                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                • If - Conditions
                                                                  • (Unit-type of (Picked unit)) Equal to Dota Devil
                                                                • Then - Actions
                                                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNArchimonde.blp
                                                                • Else - Actions
                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                    • If - Conditions
                                                                      • (Unit-type of (Picked unit)) Equal to Nature's Fury
                                                                    • Then - Actions
                                                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNCorruptedAncientOfWar.blp
                                                                    • Else - Actions
                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                        • If - Conditions
                                                                          • (Unit-type of (Picked unit)) Equal to Parasite
                                                                        • Then - Actions
                                                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNGhoul.blp
                                                                        • Else - Actions
                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                            • If - Conditions
                                                                              • (Unit-type of (Picked unit)) Equal to Scrap Parts Golem
                                                                            • Then - Actions
                                                                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNMountainGiant.blp
                                                                            • Else - Actions
                                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                • If - Conditions
                                                                                  • (Unit-type of (Picked unit)) Equal to Royal Mecha
                                                                                • Then - Actions
                                                                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNJunkGolem.blp
                                                                                • Else - Actions
                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                    • If - Conditions
                                                                                      • (Unit-type of (Picked unit)) Equal to Sneaky Ranger
                                                                                    • Then - Actions
                                                                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNBansheeRanger.blp
                                                                                    • Else - Actions
                                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                        • If - Conditions
                                                                                          • (Unit-type of (Picked unit)) Equal to Spiritbear
                                                                                        • Then - Actions
                                                                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNGrizzlyBear.blp
                                                                                        • Else - Actions
                                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                            • If - Conditions
                                                                                              • (Unit-type of (Picked unit)) Equal to Spiritual Mistress
                                                                                            • Then - Actions
                                                                                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNJaina.blp
                                                                                            • Else - Actions
                                                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                • If - Conditions
                                                                                                  • (Unit-type of (Picked unit)) Equal to Ethereal Archer
                                                                                                • Then - Actions
                                                                                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNShandris.blp
                                                                                                • Else - Actions
                                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                    • If - Conditions
                                                                                                      • (Unit-type of (Picked unit)) Equal to Gnoll Assasin
                                                                                                    • Then - Actions
                                                                                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNGnollArcher.blp
                                                                                                    • Else - Actions
                                                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                        • If - Conditions
                                                                                                          • (Unit-type of (Picked unit)) Equal to Mortar Team
                                                                                                        • Then - Actions
                                                                                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of Switcher[Switcher_Number])] to ReplaceableTextures\CommandButtons\BTNMortarTeam.blp
                                                                                                        • Else - Actions
            • Else - Actions
      • Custom script: call DestroyGroup(udg_Hardened_Skin_Group)
      • Set Hardened_Skin_Group = (Units in (Playable map area) owned by (Player(Switched)))
      • Unit Group - Pick every unit in Hardened_Skin_Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
              • ((Player(Switched)) is an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Unit - Move (Picked unit) instantly to Revive[(Player number of (Player(Switched)))]
              • Camera - Pan camera for (Player(Switched)) to Revive[(Player number of (Player(Switched)))] over 0.00 seconds
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) is A Hero) Equal to True
                  • ((Player(Switched)) is an ally of Player 12 (Brown)) Equal to True
                • Then - Actions
                  • Unit - Move (Picked unit) instantly to Revive[(Player number of (Player(Switched)))]
                  • Camera - Pan camera for (Player(Switched)) to Revive[(Player number of (Player(Switched)))] over 0.00 seconds
                • Else - Actions
      • Unit Group - Pick every unit in Hardened_Skin_Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of (Picked unit)) Equal to Flame Lord
                • Then - Actions
                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNHeroAvatarOfFlame.blp
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Unit-type of (Picked unit)) Equal to Mineral Water
                    • Then - Actions
                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNSeaElemental.blp
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Unit-type of (Picked unit)) Equal to Skeleton Archer
                        • Then - Actions
                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNSkeletonArcher.blp
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Unit-type of (Picked unit)) Equal to Typhoon
                            • Then - Actions
                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNTornado.blp
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Unit-type of (Picked unit)) Equal to Adapter
                                • Then - Actions
                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNAncientOfWonders.blp
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Unit-type of (Picked unit)) Equal to Energiser
                                    • Then - Actions
                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNHeroDemonHunter.blp
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Unit-type of (Picked unit)) Equal to Necromancer
                                        • Then - Actions
                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNNecromancer.blp
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Unit-type of (Picked unit)) Equal to Phantasm
                                            • Then - Actions
                                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNUnbroken.blp
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • (Unit-type of (Picked unit)) Equal to Time Walker
                                                • Then - Actions
                                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNWendigo.blp
                                                • Else - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • (Unit-type of (Picked unit)) Equal to Zealot
                                                    • Then - Actions
                                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNAcolyte.blp
                                                    • Else - Actions
                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                        • If - Conditions
                                                          • (Unit-type of (Picked unit)) Equal to Ghost Hunter
                                                        • Then - Actions
                                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNHuntress.blp
                                                        • Else - Actions
                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                            • If - Conditions
                                                              • (Unit-type of (Picked unit)) Equal to Berserker
                                                            • Then - Actions
                                                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNChaosWolfRider.blp
                                                            • Else - Actions
                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                • If - Conditions
                                                                  • (Unit-type of (Picked unit)) Equal to Dota Devil
                                                                • Then - Actions
                                                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNArchimonde.blp
                                                                • Else - Actions
                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                    • If - Conditions
                                                                      • (Unit-type of (Picked unit)) Equal to Nature's Fury
                                                                    • Then - Actions
                                                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNCorruptedAncientOfWar.blp
                                                                    • Else - Actions
                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                        • If - Conditions
                                                                          • (Unit-type of (Picked unit)) Equal to Parasite
                                                                        • Then - Actions
                                                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNGhoul.blp
                                                                        • Else - Actions
                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                            • If - Conditions
                                                                              • (Unit-type of (Picked unit)) Equal to Scrap Parts Golem
                                                                            • Then - Actions
                                                                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNMountainGiant.blp
                                                                            • Else - Actions
                                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                • If - Conditions
                                                                                  • (Unit-type of (Picked unit)) Equal to Royal Mecha
                                                                                • Then - Actions
                                                                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNJunkGolem.blp
                                                                                • Else - Actions
                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                    • If - Conditions
                                                                                      • (Unit-type of (Picked unit)) Equal to Sneaky Ranger
                                                                                    • Then - Actions
                                                                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNBansheeRanger.blp
                                                                                    • Else - Actions
                                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                        • If - Conditions
                                                                                          • (Unit-type of (Picked unit)) Equal to Spiritbear
                                                                                        • Then - Actions
                                                                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNGrizzlyBear.blp
                                                                                        • Else - Actions
                                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                            • If - Conditions
                                                                                              • (Unit-type of (Picked unit)) Equal to Spiritual Mistress
                                                                                            • Then - Actions
                                                                                              • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNJaina.blp
                                                                                            • Else - Actions
                                                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                • If - Conditions
                                                                                                  • (Unit-type of (Picked unit)) Equal to Ethereal Archer
                                                                                                • Then - Actions
                                                                                                  • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNShandris.blp
                                                                                                • Else - Actions
                                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                    • If - Conditions
                                                                                                      • (Unit-type of (Picked unit)) Equal to Gnoll Assasin
                                                                                                    • Then - Actions
                                                                                                      • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNGnollArcher.blp
                                                                                                    • Else - Actions
                                                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                        • If - Conditions
                                                                                                          • (Unit-type of (Picked unit)) Equal to Mortar Team
                                                                                                        • Then - Actions
                                                                                                          • Multiboard - Set the icon for Multiboard item in column 1, row Player_Row[(Player number of (Player(Switched)))] to ReplaceableTextures\CommandButtons\BTNMortarTeam.blp
                                                                                                        • Else - Actions
            • Else - Actions
      • Unit - Change ownership of Circles[Switcher_Number] to (Player(Switched)) and Change color
      • Unit - Change ownership of Circles[Switched] to Switcher[Switcher_Number] and Change color
      • Set Switch_On = False
      • Set Switcher_Number = 0
      • Set Switch_Votes = 0
      • Set Switched = 0
      • For each (Integer A) from 2 to 11, do (Actions)
        • Loop - Actions
          • Set Switch_Vote[(Integer A)] = False
EDIT: Switcher=trigg player [Switcher Number]=Player number of trigg player (the switch starter) Switched (the targeted switch number) Player_Kills[number]=kills multiboard, deats, same, colored names[]=|c00d5fd4s6g|r names of players Switch_Votes, blabla, switch_Vote=false boolean, Switch_On= the thing that checks if switching is already on :)
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
The second time, multiboard names/kills and circle of heroes control sharing streaks.

What do you mean by streaks?

Could you post the trigger in a map so it's easier to debug.

I don't know what Switched and Swithced_Number are, they are set in a different trigger.

I suspect these are the cause of the bug:
  • Set Player_Row[(Player number of Switcher[Switcher_Number])] = (Switched + 1)
  • Set Player_Row[(Player number of (Player(Switched)))] = (Switcher_Number + 1)
Use "Game - Display message" to print those integers on screen so you know they are correct.
 
Level 9
Joined
Jun 25, 2009
Messages
427
What do you mean by streaks?

Could you post the trigger in a map so it's easier to debug.

I don't know what Switched and Swithced_Number are, they are set in a different trigger.

I suspect these are the cause of the bug:
  • Set Player_Row[(Player number of Switcher[Switcher_Number])] = (Switched + 1)
  • Set Player_Row[(Player number of (Player(Switched)))] = (Switcher_Number + 1)
Use "Game - Display message" to print those integers on screen so you know they are correct.

Thank you for checking here, Streaks is like DOES SH*T :), i'll try it with display message, thanks, and for Switched=Number the huh, substring -switch 9,10 which is not 1 or 12 and not and is greater than 0 but lower than 12 and Switcher_Number=Player number of (Triggering Player) that means of the guy who wrote the text -switch bla bla. And by the post the trigger in the map i could only send you the map, ofc if you really want it in a test-map so i could copy the variables,etc and yeah.

EDIT: Tried to change the line in the stuff i mean without player number, just used integer vars, game display stuff, worked correctly, ofc something still doesn't work, i mean the multiboard and circles still does SH*T, huh maybe i'll send you my map if you could check them out ;)

Regards,
Tiche3:grin:
 
Status
Not open for further replies.
Top