Hello, i am making a Tower defence map and was wondering how do you make a trigger that when the game starts it adds a handicap percentage to the enemy player, depending on how many players are active. For example, if there is 1 player add +0% handicap, if there are 2 players add +25% handicap, if there are 3 players add +50% handicap, and if there are 4 players add +75% handicap.
I don't know if there is an easy way of setting handicap at runtime, but you can use the catalog to modify the health/shields/damage done by a specific unit type for a specific player, so I assume that doing that for every unit type that player can get would be the equivalent of setting handicap.
General if then
If
Number of players in player group (Active Players) == 1
Then
Player - Modify Player 10 Handicap: ADD 0
Then duplicate 3 times and change active players == 1 to 2,3,and 4 and Handicap: ADD 0 to 25, 50,and 75
It may be messery this way but its easier for me anyway.
Hello, i am making a Tower defence map and was wondering how do you make a trigger that when the game starts it adds a handicap percentage to the enemy player, depending on how many players are active. For example, if there is 1 player add +0% handicap, if there are 2 players add +25% handicap, if there are 3 players add +50% handicap, and if there are 4 players add +75% handicap.
Thanks,
tu3185
I don't know if there is an easy way of setting handicap at runtime, but you can use the catalog to modify the health/shields/damage done by a specific unit type for a specific player, so I assume that doing that for every unit type that player can get would be the equivalent of setting handicap.
Well it wouldn't be too hard. Assuming you know how to find if players are active or not you would do it with behaviors and a variable.
Make a behavior for each handicap that increases unit health by said amount.
Then make Variable that is like such "Handicap = No Game Link <Game Link="" -="" Behavior="">
And then at Map Initialization you would set that variable to your handicap behavaior, so e.g. "Variable - Set Handicap Amount = Handicap 25" for 25%
then everytime you spawn a unit do "Unit - Add 1 Handicap Amount to Last Created Unit from Caster"
Ok i found how to do this i do a...
New Trigger Conditions - Map initalization
Actions
General if then If Number of players in player group (Active Players) == 1 Then Player - Modify Player 10 Handicap: ADD 0
Then duplicate 3 times and change active players == 1 to 2,3,and 4 and Handicap: ADD 0 to 25, 50,and 75 It may be messery this way but its easier for me anyway.
Thanks guys, tu3185