Alright so, the title says it all. What I wanna do is make some units scale on the amount of players there are in a game. But I just want them to affect some certain units like for example a Zergling, Roach, Hydra and Ultralisk. Anything else for example an Egg, i dont want it to scale. I just want it to remain the same, now I know that its with triggers. And I don't want the Handicap because it modifies every unit of that player. Do i have to go through each unit type and specify the scaling? If so how would I do this? Thank you in advance!
What I would do is create a trigger that checks for the amount of players in the game upon creation and one that checks when a player leaves. Have it apply a behavior that changes health maximum, I think it's Vital Maximum Fraction for % and Vital Max Bonus for a fixed amount.. Create a behavior for every possible amount of players in the game so 1 - 8 or however many players you can have. Have the trigger apply the current amount of players and remove the rest. That way if say you have 4 people at the start and other people leave the health is adjusted accordingly. Hope this helps.
You would also have to apply this upon unit creation.
I'd give them all a behavior in data that changes their vital max. I'd then change the amount of the behavior via catalog actions in the trigger editor.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Alright so, the title says it all. What I wanna do is make some units scale on the amount of players there are in a game. But I just want them to affect some certain units like for example a Zergling, Roach, Hydra and Ultralisk. Anything else for example an Egg, i dont want it to scale. I just want it to remain the same, now I know that its with triggers. And I don't want the Handicap because it modifies every unit of that player. Do i have to go through each unit type and specify the scaling? If so how would I do this? Thank you in advance!
@joemart06: Go
What I would do is create a trigger that checks for the amount of players in the game upon creation and one that checks when a player leaves. Have it apply a behavior that changes health maximum, I think it's Vital Maximum Fraction for % and Vital Max Bonus for a fixed amount.. Create a behavior for every possible amount of players in the game so 1 - 8 or however many players you can have. Have the trigger apply the current amount of players and remove the rest. That way if say you have 4 people at the start and other people leave the health is adjusted accordingly. Hope this helps.
You would also have to apply this upon unit creation.
i would use upgrades, it's a pain to set them up once but after that very easy to handle.
I've never tried but can you remove an upgrade after it's been trained?
@Daara87: Go
yes , you can set it to w/e level you want it to be, not like the wc3 upgrades
I'd give them all a behavior in data that changes their vital max. I'd then change the amount of the behavior via catalog actions in the trigger editor.