I'll start this off by saying that this probably needs a script, but I thought I'd try here first anyway.
So onto the question:
Is there any way to make an item do different things depending on actor status? For example I have an antidote, and give it to actor 1. If actor 1 is poisoned, I want him cured, but if actor 1 is not poisoned, I want him blinded (or some other status effect).
So is this possible? Is there a script I need that someone has already made? Or should I just ask in the script request forum?
Thanks,
- Galdric
You should have the item call a common event, and in that common event you can set up a conditional branch that checks whether or not the user is poisoned. No scripts needed! 🙂
Right, that'll work. I didn't even think about common events. :blush:
Thanks 😀
Gah, how do I tell the common event which actor to affect?
Sorry, I didn't even think about that before! 🙁 Make a state and call it "Using Antidote" or something and make the item apply the state. Then in the common event, make conditional branches for each actor to check and see if they have the "Using Antidote" state applied. If they do, then you can run the poison conditional branch. At the end of the common event, remove the "Using Antidote" state from the entire party.
Well it works... it's just kind of time consuming to do... (currently I have something like 10 different status changes, for at least 5 actors 🙁 )
It'll work, but I think I'll put in a script request as well... (It would be so much more convenient to be able toto add a note to the item saying something like <if normal add.state poison> and have it do all the work. Be less room for me to miss out an actor as well >_> )
Thanks for the help Hollow 🙂
on your item, make it have a scope of one something, then put something like this in the damage formula
$game_variables[x] = b.actor_id
then on your CE, just use the variable option for the actor selection
OR
if it's just one or two states, maybe the formula box itself will suffice?
Did your item have a target? if it has then it should at least return the id of that target...
anyway,
you can do like
if b.state?(id for berserk) ? b.remove_state(id for berserk) : b.add_state(id for sleep) ; nil
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.