So i'm doing something a little interesting here, and i've sort of hit a snag. In this game i'm working on, there is permadeath for characters. But that permadeath is based on what i've turned the MP into, which is LP (Lifepoints). When people get hit by normal attacks, they take hp dmg as normal, and slight amounts of LP damage. When they hit 0 hp, they get "knocked out" (death state) but can be revived through treatments and healing. But LP is different. It can only be increased through special means. The thing is, if that LP ever reaches zero, it's real death. You can't bring the characters back. But as things are, you can reach 0 LP before reaching 0 hp, depending on how you take damage, and how you manage your HP and LP.
I am looking for a way to make that happen. I have figured out how I can do this by using variables that are tied to a specific actors gamedata MP number, and have a conditional branch always running a parralel process to see if that variable reaches zero, and to run an event when it equals 0 or less, but the thing is, there are way too many characters. At this moment in time there are 27 characters, and there are going to be many many more.. (It's sort of a fortification defense game).
Just with 27 characters alone, i would need 27 unique variables, being checked by 27 unique parralel common events for each of those 27 characters..
There must be a simpler way to accomplish this? I mean.. It -could- be done.. but ... that's a lot of processing... And a lot of work..
----
Well... I can actually stuff all those 27 variable-updates-and-checks into a single parralel running common event, instead of 27 seperate ones. That makes it 27 times easier.. But i'm still wondering if there's even an easier way to make this work.. That's still 27+ unique variables.
That puts me down to the following usage:
1 switch
1 common event
27 variables..
Actually that's not really that bad..
I am looking for a way to make that happen. I have figured out how I can do this by using variables that are tied to a specific actors gamedata MP number, and have a conditional branch always running a parralel process to see if that variable reaches zero, and to run an event when it equals 0 or less, but the thing is, there are way too many characters. At this moment in time there are 27 characters, and there are going to be many many more.. (It's sort of a fortification defense game).
Just with 27 characters alone, i would need 27 unique variables, being checked by 27 unique parralel common events for each of those 27 characters..
There must be a simpler way to accomplish this? I mean.. It -could- be done.. but ... that's a lot of processing... And a lot of work..
----
Well... I can actually stuff all those 27 variable-updates-and-checks into a single parralel running common event, instead of 27 seperate ones. That makes it 27 times easier.. But i'm still wondering if there's even an easier way to make this work.. That's still 27+ unique variables.
That puts me down to the following usage:
1 switch
1 common event
27 variables..
Actually that's not really that bad..