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

balancing system

Status
Not open for further replies.
Level 3
Joined
Aug 7, 2007
Messages
27
Due to the amount of games with leavers AND the fact that like all games on the bnet dont use such a system, i decided to post my system here, might be common knowledge or whatever, but maybe someone decides to use it:

  • Balancing
    • Events
      • Player - Player 1 (Red) types a chat message containing -bal as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 5)) Equal to -bal
    • Actions
      • Set Playernumber = (Integer((Substring((Entered chat string), 6, 7))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Playernumber Greater than or equal to 2
          • Playernumber Less than or equal to 12
        • Then - Actions
          • Set Player = (Player(Playernumber))
          • Set Enemies = (All allies of Player)
          • Set Allies = (All enemies of Player)
          • Player Group - Make Enemies treat (All players matching ((Matching player) Equal to Player)) as an Enemy
          • Player Group - Make Allies treat (All players matching ((Matching player) Equal to Player)) as an Ally with shared vision
          • Player Group - Make (All players matching ((Matching player) Equal to Player)) treat Allies as an Ally with shared vision
          • Player Group - Make (All players matching ((Matching player) Equal to Player)) treat Enemies as an Enemy
          • Player Group - Pick every player in (All allies of Player) and do (Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Unit - Order (Picked unit) to Stop))
          • Set Playernumber = 0
        • Else - Actions
          • Do nothing
quite easy as you can see. Player will change team then. player 1 should be host, or a trustworthy player ^^
for a different spawn place, just create an array rect variable with the spawn rects saved within, then check if the unit spawned in rect 1 before, change it to 2 then, and the other way around
 
Last edited by a moderator:
Level 3
Joined
Aug 7, 2007
Messages
27
hmm true, now you say it, but i was thinking about AOS games where you control only heroes or only a few units.
 
Status
Not open for further replies.
Top