I want to make a game option, where all allied heroes share and combine health together.
So for example in a 4v4, with each side having 4x 200 health Heroes, they instead all become 800 health sharing everything, but still remaining separate heroes. This would be a mode to stop hero sniping should the player prefer that. If warcraft 3 there was an ability called Spirit Link, perhaps in WoW as well, but basically like that yet also visually combining physical health.
I'm not quite sure how to go about this, you have to constantly keep adjusting all health to the same, taking into account health regen, heals and any damage inflicted.
Any ideas on the best way to accomplish this?
Thanks
You could try the "conjoined" behavior. This one connects multiple units, so they share the same health pool. This does not reduce the damage, however, it just damages all units simultaneously. Add additional hitpoints or a damage reduction behavior to the heroes to compensate this.
However, I have no idea, how this works with shields or different units and health pools, you would have to try this yourself.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want to make a game option, where all allied heroes share and combine health together.
So for example in a 4v4, with each side having 4x 200 health Heroes, they instead all become 800 health sharing everything, but still remaining separate heroes. This would be a mode to stop hero sniping should the player prefer that. If warcraft 3 there was an ability called Spirit Link, perhaps in WoW as well, but basically like that yet also visually combining physical health.
I'm not quite sure how to go about this, you have to constantly keep adjusting all health to the same, taking into account health regen, heals and any damage inflicted.
Any ideas on the best way to accomplish this? Thanks
Bump!
You could try the "conjoined" behavior. This one connects multiple units, so they share the same health pool. This does not reduce the damage, however, it just damages all units simultaneously. Add additional hitpoints or a damage reduction behavior to the heroes to compensate this.
However, I have no idea, how this works with shields or different units and health pools, you would have to try this yourself.