Auto-Life

I'm looking for an auto life script, one that will allow a character to instantly revive upon death.

So far, the only one I can find is by Mr. Bubble and I like to have as many options as possible.

What I am looking for is one that can be used commercially, preferably with the terms for use stated. (Such as, requirements for using the script being credits and a free copy of the game, et cetera.)
Hi ♫

Exactly what features would you require in such a script? A few questions sprint to mind:

  • How would it be activated? (Passive ability, items, equipment, states)
  • What mechanism(s) would stop the player using it over and over again (Equipment being destroyed, removing state, ect)
  • What other scripts should this be compatible with? (Which scripts are relevant will depend on the answers to the above questions) 
  • Which other scripts have you tried and what do they do/not do that you are looking for?
I was thinking along the lines of either breakable equipment, or spells. I don't see any potential problems with scrips, unless VMoDT's pet summon script causes a problem.

And the thing is, I can literally find only one script, and have contacted the script author regarding potential use. (Given that every time I ask someone these things that they don't respond until much, much later, having such limitations is extremely frustrating.)
Hey ♫

It seems to me like you are not particularly clear on what it is you want, which makes it difficult for people to help you.

Maybe you should look here, for a guide on how to best request scripts, and here, for a example of a very well presented request.

This should help me, or anyone else, help you. As this is for a commercial project, I think this would be a good idea

/Kai
I thought I stated pretty clearly, I want an auto revive script for commercial use. However, I want as many options as possible, due to contacting the script writers often takes a lot of time.

By having multiple options, I lessen the time needed to obtain permission to use the script, which significantly speeds up production time.

If it just so happens that there is literally one script of this nature, then it is what it is. I'm not going to bother someone to make a script for me unless they absolutely want to. (Mostly because I do not currently have the money to afford to hire a script writer.) I do not want to say to someone, 'Can you make me a script for commercial use, but don't expect immediate payment because I suck at being an adult.'
It is possible to do this another way.  The script you would need is Yanfly's Base Troop Event script.  I will call the actor John.

On a page in the Base Troop Event

Set to Turn No. 1*X  (this makes sure it runs every turn of every battle)

Conditional branch [John] is in the party

   Conditional branch [John] is [Death] inflicted

   Change State: [John], -[Death]

   (Here put in any amount of HP that you are giving to the actor e.g. 10%, whatever)

   (Here put any text that goes with this e.g. "You can't keep a good man down!"

And that's it.
Is there a way to make that work if there is only one actor in the party? (I also tried Death Common Event)
When there is one actor, from what I can tell, when they die, they don't revive, even with the base event (or common event, in the case of the death event script.)
Yes, there is.

Add a feature which makes the actor immune to death state (the original KO state, which should be the 1st one on the list) on the feature list of the actor itself.

Than use a similar event like ksjp17 provided.

But the conditional branches would be:

Code:
if Actor HP <= 0?  if Actor State [Auto-life] inflicted?    Revive your actor here.  else    Call the game over screen here.  endend
This effectively removes the auto-game over and replaces it with an evented one to check for that auto-life state before calling game over.
IT appears, even with a 100% death state resistance (Which negates the whole 'death' thing), it still does not work with one party member.
Works for me, I just tried it...


The "Span" in the Troop Event settings must be set to "Moment".


And you don't use the state rate feature, you use the state resist feature.
Yet when I have moment on, that event cycles through as though on a loop. It could be that it's because I have him wearing an accessory, (Which I plan on being the main method of auto-reviving), and armors don't appear to add a status.

Troop.png
That won't work.


As I wrote, you must give the actor a feature which prevents the real KO state (1st state in the database) permanently, else the game over screen will instantly be called.


After you did that, here is how your troop event should look:


exxx.png


This will make what you want.


When the actor's HP reaches 0 and he/she got the Auto-Life state inflicted, an auto healing will be cast on the actor.


If the Auto-Life state is not present, game over will be called like it would be called normally.


You can also put any other things you want in both parts of the condition check.


Like, normally, when the player loses a battle, a message box is shown saying that "XX's party is defeated" or something similar, if I remember right. Well, you can show that same message there too if you want.


Same for the revive part. You can remove items, un-equip/destroy equipment too after the revive.


If you use one of Tsuki's other script, you can even make custom conditions for your auto-life effect, like this and that equipped, holding this and that item, etc.


Now, this works if the party got one actor only.


If the party got more actors, than the eventing part can get a bit more complicated, but it is still doable even then.
Okay, but that completely ignores the 'wearing an accessory that auto-revives the PC' schtick I'm going for. I appreciate the help, but it doesn't do the thing I need it to do. (At least, not yet.)
What do you mean by 'PC'?


If you mean the player, you can simply replace the state condition check to an "if [Actor] is wearing [Armor]" check, and you are done.


Un-equip the equipment on revive, remove it from the inventory, and basically that's that. It's simple eventing.
I have a script for this. But why not ask mr. Bubble for commercial permission
As stated in the very first post, I already have, but have not received any form of confirmation as of yet. I always try to find multiple types of the same basic script when looking for commercial so that I can ask as many people as possible so that I will get a relatively quick response in a reasonable amount of time.
Oh, I missed it. I'll grab my script once I'm on the pc
Why not put on your accessory the feature State Resist: KO? Or, even better, have the accessory give (via a passive state script) a state which makes you resistant to KO? Then, you check for that state, if present, do auto-life? Seems to me that would work.

And, it is critical it is state resist KO, not state rate KO 0%. The reason is, even if you set state rate to 0%, the engine can still force the state onto you, which it does when HP <= 0 occurs. State resist prevents that.
It does have State Resist on the accessory, which is what I've been doing.
Ok, must have misunderstood, as I thought you said in one post it was at 0%, which implies state rate 0% instead. Still, I think you could rig this with a passive states script, if you needed to.

Or, if you know scripting. I think a re-write of the die command could do it too (as the die command is what is called if you go to 0 HP or below). I might have to investigate that as I wouldn't mind being able to add an auto-life state without a long work around myself.

Original thread: https://forums.rpgmakerweb.com/threads/auto-life.43043/