I want to be able to use an item from the menu which will increase the target actor's level by one.
The event command "Change Level" presumes that I know which actor I want this to work on, but the player can choose any actor. Therefore that command won't work.
I have tried various script calls in a common event and just get the buzzer of doom.
How would I go about this?
Thanks.
I think there's a way to change a variable using an event to a particular actor ID. So I'm thinking a common event like this:
Show Choices: One for each Actor
Set Variable: Actor ID
Change Level: +1, Actor ID
Might be a bit of work to make the choices work right based on who's in the party at the time, but I did something like that with a Curse remover, so it can be done. It's been a while since I've done it, so I can't remember exactly how it's done, but I think there was a text tag for it.
For cases like this I usually let the item apply an empty state with no icon, which can then be checked in the common event to recognize the target.
This doesn't solve the fact the common event throws you out of the menu of course, so using a script might be more fitting. 🙂
The buzzer usually appears then the item you are using has apparently no effect on the target. I can't look it up but I'm quite sure that triggering a common event was enough to qualify the item as effective... ^^
Could be wrong here though.
This exact problem is why I made my level increasing items just affect all actors, as I couldn't find a workaround. Though I thought I saw a script by someone (Hime?) to get around this somehow, but I might be mistaken.
On my phone at work, so I can't look anything up. If memory serves:
b.increase_level
As a damage formula should do it.
There are other methods, but I don't remember their arguments...
$game_party.target_actor
grabs the selected actor, IIRC.
no need to grab the target actor through the damage formula, you can just apply the dummy item with a common event after it, and the event will process whatever choice you make.