I am currently making a RPG style map that I want people to be able to play solo or with up to 7 friends. With that said, the best way I have come up with is to have the units we are fighting scale in health based on the number of players. I looked around in the options for triggers and found "Set Unit Property" but I couldn't find a way to scale the health based on a math equation of "Enemies of Player 15".
If you have any suggestions, or need more information, please let me know.
I`ll never get why people create rpg maps. Takes forever to produce something decent of that genre, and few if anyone is actually interested in playing it at the end. Hmm
I would have to say that it is purely preference based. I am creating it for my friends and I. If you don't like it, you don't have to play it. Thanks for taking the time to help with the point of this thread though.
You could count the number of active players manually within the trigger. For example assuming you can not spawn the units for inactive players and all players are enemies of player 15 the following would work.
I didn't find a way to have a trigger adjust the life of the units in 1 shot, but I did find a good work around.
First, I made a behavior called '2 Player Buff'' and the only thing it had was a 'Life Fraction' bonus in the unit category.
Then I made a trigger called '2 Player Mode' that would apply this buff to every unit that is created for player 15. (I made it so this trigger isn't initially on)
Then I made another trigger that looks for how many players are in a game. If its exactly 2 enemies of player 15 then it turns on the '2 Player Mode' Trigger.
Then you can repeat this for as many players as you want. I hope this helps someone else!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
I am currently making a RPG style map that I want people to be able to play solo or with up to 7 friends. With that said, the best way I have come up with is to have the units we are fighting scale in health based on the number of players. I looked around in the options for triggers and found "Set Unit Property" but I couldn't find a way to scale the health based on a math equation of "Enemies of Player 15".
If you have any suggestions, or need more information, please let me know.
@Titen42: Go
I`ll never get why people create rpg maps. Takes forever to produce something decent of that genre, and few if anyone is actually interested in playing it at the end. Hmm
@EternalWraith: Go
I would have to say that it is purely preference based. I am creating it for my friends and I. If you don't like it, you don't have to play it. Thanks for taking the time to help with the point of this thread though.
search set unit property under actions, and change it to whatever you want
@Titen42: Go
You could count the number of active players manually within the trigger. For example assuming you can not spawn the units for inactive players and all players are enemies of player 15 the following would work.
whoops i think i forgot to read your question
set unit health to (a number)+(a number)*number of players in active players
you would use arithmitic to get the multiple values
You should use the Set Catalog Field Value for this the field names are "LifeMax" and "LifeStart"
Thanks for the replies. I will try this and post back with any questions.
I didn't find a way to have a trigger adjust the life of the units in 1 shot, but I did find a good work around. First, I made a behavior called '2 Player Buff'' and the only thing it had was a 'Life Fraction' bonus in the unit category. Then I made a trigger called '2 Player Mode' that would apply this buff to every unit that is created for player 15. (I made it so this trigger isn't initially on) Then I made another trigger that looks for how many players are in a game. If its exactly 2 enemies of player 15 then it turns on the '2 Player Mode' Trigger.
Then you can repeat this for as many players as you want. I hope this helps someone else!