Auto-Phoenix

Script


Put <AutoPhoenix> on an actor, class, weapon, armor or state to allow for Auto-Phoenix. An actor will revive a defeated ally if a revival item is available.


Future Updates


I'd like to be able to intelligently choose the revival item, like choosing an item that can revive multiple party members if multiple party members are defeated.


I'd like to integrate an auto-potion notetag to allow for actors to heal themselves or other actors if hp gets too low, and they have a healing item. Should also be intelligent.


I'd like to integrate an auto-med notetag to allow for actors to cure themselves or other actors of a status ailment if they have an item to do so. Should also be intelligent.


Possibly things that other people suggest.


Terms of Use


Free to use and modify for commercial and noncommercial games, with credit.


Credit and Thanks


DreamX
This plugin uses modified code snippets from Yanfly's Dash Toggle plugin.
Please remember to credit them as well.
This is cool! Thanks 😀
Everytime one of my actors dies, the game just freezes up. Btw, did you set a priority check for when an actor dies & whether there's more than 1 actor with Auto-Phoenix, since the game needs to know who's auto-phoenix would go 1st, and also to cancel unnecessary auto-phoenix instances if 2 or more people had auto-phoenix & only 1 actor dies, would the 2nd instance still try to go off or should it check for whether the target actor who died is still dead right before going off.


Also, you should include the notetag instruction in the help section of the .js file, along with a description of what it does. It would also help to write the script itself in a program that lets you write as a .js file to begin with, like Notepad++, so I'll include the .js file itself for distribution here.


View attachment Auto-Phoenix.js
I updated. It should work. I tested with just Core Engine, Battle Engine Core and this plugin on.


Use <MultiPhoenix:1> on an item if you want the actors to prioritize using it if more than one actor is dead. Remember that the auto phoenix items must have a scope for one or more dead allies and removes the knockout state, and that you need the item in your inventory.
It seems there's a bug that causes my game to freeze when 1 of my actors dies. At 1st I thought is was the plugin, but even when I turn it off it still happens. This means I can't test it to see if it works until I resolve this issue. I have no way of pinpointing what plugins are causing it either, since no error message pops up when it happens.
It seems there's a bug that causes my game to freeze when 1 of my actors dies. At 1st I thought is was the plugin, but even when I turn it off it still happens. This means I can't test it to see if it works until I resolve this issue. I have no way of pinpointing what plugins are causing it either, since no error message pops up when it happens.

You can try to pinpoint by turning some plugins off until you find the one causing the crash.
There's a lot of plugins though (over 30). I'm also testing Victor Sant's Counter Actions plugin for my Auto-Potion as well & it seems to work off & on so I have to test for that as well. He recommended starting a new project for testing his plugins specifically, so I may just do that for this as well. I don't have internet at home so I won't be able to post any results until Monday.
Just tested it in a new project. It works, but I haven't found what is causing my current project to freeze upon an actor's death yet. Btw, you should add the MultiPhoenix notetag info into the help section of the plugin as well.

Original thread: https://forums.rpgmakerweb.com/threads/auto-phoenix.59028/