Jump to content

Coding Help! How to make a custom character weaker/stronger when another custom character dies?


Recommended Posts

I have these two player mods that are connected with each other. Pizza and Piano
Since piano is more of a vengeful person I want to make it when a pizza player dies, all piano players become 1.5 times stronger until the pizza player is revived
Since pizza is more of a grieving person, I want to make it when a Piano player dies, all pizza players become .25 times weaker until the piano player is revived.
Is there any way to do this? 

Link to comment
Share on other sites

On 11/21/2022 at 12:38 AM, TemporarySolutn said:

i dont know if there is a better way but you could have something periodically check for all players and then testing the ones with the prefab "piano" or "pizza" and if they are a ghost or not, but consider that multiple people might be playing as the same character

I know multiple people would be playing as the same character. I just want it to stay the same no matter how many characters are dead. 
Like Pizza's attack would stay at .25 whether there were one or five piano players dead
It would go back to normal after all piano players are revived

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...