- Joined
- Jul 31, 2012
- Messages
- 593
- Reaction score
- 393
- First Language
- English
- Primarily Uses
- RMMZ
I need a set of plugins to produce the effects of 'Auto-Potion', 'Auto-Phoenix' & 'Auto-Med'. For those of you who don't play Final Fantasy X or aren't familiar with these abilities, I'll explain:
Auto-Potion: When this 'State/Skill/Passive Ability' is possessed by a character & they are either damaged or when their HP goes below a certain percentage, they will automatically use a healing item to heal themselves (as long as their actions aren't hindered by another state such as paralysis, sleep, etc.). The script should be customizable so that the user can list any number of healing items to search their inventory for before using, listed in order of priority: Checks if 1st item is in inventory, if not, move down to next item. If none are in inventory, it doesn't go off. The conditions to set this off should be customizable as well with the following options: Either when the actor/enemy takes damage or when their HP falls below a set percentage. Also, Auto-Potion is self-targeting.
Auto-Phoenix: When a actor has this ability & a ally dies, they automatically use a reviving item on them. Same restrictions as Auto-Potion (can't have actions hindered by another state) & customization would be the same. There's only 1 condition to set this off. However, there are circumstances which may come up. Multiple actors having it & multiple actors dead, at the same time. I've come up with a simple logic to prioritize this. First, if 1 or more actors die, that sets off each actor's Auto-Phoenix, with 1st actor's A-Ph 1st, then if more actors are still dead, 2nd actor's A-Ph goes off, etc. Now there's the problem with A-Ph going off when multiple actors die. I think a customizable option should check the number of dead actors. If there is more than 1 dead actor, have a separate 'multi-revive' option that can be customized to check for items that can revive more than 1 actor (like the whole party at once). If there are no such items, then it falls back to the regular revival items to revive 1 person based on party member order (checks if 1st actor is dead, if so, revive them, if not check 2nd, etc.) Would probably look something like this:
Multi-Revive option: (if dead actors is equal or greater than 2)
Item 1
Item 2
etc.
Auto-Phoenix items: (if dead actors = 1)
Item 1
Item 2
etc.
After an actor's A-Ph goes off, script checks if another actor's A-Ph is set to go off, if so, then check each actor to see if any are still dead. If none are, A-Ph doesn't go off (for all other instances on 'stand-by'). If there are any still dead, check starting from 1st to last. This repeat until there are no more A-Ph instances left or all actors are alive.
Auto-Med: Like Auto-Potion, this is a self-targeting ability. When actor is inflicted with a state that is listed in a customized list of 'Negative States', they will use a curing item based on which state was inflicted. There should be an option to check in case actor is inflicted with more than 1 'Negative State'. It also follows the same restrictions as the other 2 (Won't go off if actions are hindered). It would something like this:
Multiple 'Negative States' option: (if actor's 'Negative States' is equal or greater than 2)
Item 1
Item 2
etc.
List of negative states & which item to use:
State 1 -> Item 1
State 2 -> Item 2
State 3 -> Item 3
etc.
That should about cover each of them & the logic behind targeting & such. Don't forget to set the option to customize which state IDs these would apply to. The only other thing is if any of these are all set to go off together, multiple times with each. In which case, their priority should be; Auto-Phoenix, Auto-Med, then Auto-Potion.
I'm sorry if this seems like a lot & I'd appreciate anyone who would be willing to help. Thanks in advance.
Auto-Potion: When this 'State/Skill/Passive Ability' is possessed by a character & they are either damaged or when their HP goes below a certain percentage, they will automatically use a healing item to heal themselves (as long as their actions aren't hindered by another state such as paralysis, sleep, etc.). The script should be customizable so that the user can list any number of healing items to search their inventory for before using, listed in order of priority: Checks if 1st item is in inventory, if not, move down to next item. If none are in inventory, it doesn't go off. The conditions to set this off should be customizable as well with the following options: Either when the actor/enemy takes damage or when their HP falls below a set percentage. Also, Auto-Potion is self-targeting.
Auto-Phoenix: When a actor has this ability & a ally dies, they automatically use a reviving item on them. Same restrictions as Auto-Potion (can't have actions hindered by another state) & customization would be the same. There's only 1 condition to set this off. However, there are circumstances which may come up. Multiple actors having it & multiple actors dead, at the same time. I've come up with a simple logic to prioritize this. First, if 1 or more actors die, that sets off each actor's Auto-Phoenix, with 1st actor's A-Ph 1st, then if more actors are still dead, 2nd actor's A-Ph goes off, etc. Now there's the problem with A-Ph going off when multiple actors die. I think a customizable option should check the number of dead actors. If there is more than 1 dead actor, have a separate 'multi-revive' option that can be customized to check for items that can revive more than 1 actor (like the whole party at once). If there are no such items, then it falls back to the regular revival items to revive 1 person based on party member order (checks if 1st actor is dead, if so, revive them, if not check 2nd, etc.) Would probably look something like this:
Multi-Revive option: (if dead actors is equal or greater than 2)
Item 1
Item 2
etc.
Auto-Phoenix items: (if dead actors = 1)
Item 1
Item 2
etc.
After an actor's A-Ph goes off, script checks if another actor's A-Ph is set to go off, if so, then check each actor to see if any are still dead. If none are, A-Ph doesn't go off (for all other instances on 'stand-by'). If there are any still dead, check starting from 1st to last. This repeat until there are no more A-Ph instances left or all actors are alive.
Auto-Med: Like Auto-Potion, this is a self-targeting ability. When actor is inflicted with a state that is listed in a customized list of 'Negative States', they will use a curing item based on which state was inflicted. There should be an option to check in case actor is inflicted with more than 1 'Negative State'. It also follows the same restrictions as the other 2 (Won't go off if actions are hindered). It would something like this:
Multiple 'Negative States' option: (if actor's 'Negative States' is equal or greater than 2)
Item 1
Item 2
etc.
List of negative states & which item to use:
State 1 -> Item 1
State 2 -> Item 2
State 3 -> Item 3
etc.
That should about cover each of them & the logic behind targeting & such. Don't forget to set the option to customize which state IDs these would apply to. The only other thing is if any of these are all set to go off together, multiple times with each. In which case, their priority should be; Auto-Phoenix, Auto-Med, then Auto-Potion.
I'm sorry if this seems like a lot & I'd appreciate anyone who would be willing to help. Thanks in advance.