hi all 🙂 i was wondering if it's possible to have a state last only one or two actions instead of turns? (or alternatively, a specific number of frames) this would be purely visual and wouldn't have any effect on gameplay, but id still love to have it work nonetheless. thanks for reading !!
state only lasting a couple seconds or an action?
RPG Maker MV SupportGive this plugin a try: https://himeworks.com/2015/11/remove-state-on-action/
The plugin Uzuki linked will do what you want - just FYI, if you're using Yanfly's Buffs & States for anything else in your project, you can do it there, too.
thanks all this is perfect 🙂 will try these out when i get to my pc in a bit
okay so the plugin worked but i think i'm having another issue, the code i was using to give all the party members different faces when inflicted with the state runs on a target if statement if that makes sense. i'll put the code below
i used the same code in the action end effect, but i think the fact that it's targeting specifically who's turn is ending because their faces revert back to normal one at a time when they perform their actions. i just want to ask if anyone knows the code to just change everyone's face back to the 0 index on their file all at once? idk, or something along those lines. sorry if this is poorly worded, i can explain more if needed. thanks!
<Custom Apply Effect>
if (target.isActor()) {
if (target.actorId() === 1) {
target.setFaceImage('name', 12);
} else if (target.actorId() === 2) {
target.setFaceImage('name', 13);
}
}
</Custom Apply Effect>
if (target.isActor()) {
if (target.actorId() === 1) {
target.setFaceImage('name', 12);
} else if (target.actorId() === 2) {
target.setFaceImage('name', 13);
}
}
</Custom Apply Effect>
i used the same code in the action end effect, but i think the fact that it's targeting specifically who's turn is ending because their faces revert back to normal one at a time when they perform their actions. i just want to ask if anyone knows the code to just change everyone's face back to the 0 index on their file all at once? idk, or something along those lines. sorry if this is poorly worded, i can explain more if needed. thanks!
Well...that's what your original request was for, right? For the state to leave each actor at the end of their action?
So how do you want this to behave? One actor takes their action, the state comes off, and it changes everybody's face image, even though other people still have the state?
If that's it, you don't need any conditionals or using "target," just do
Code:
$gameActors.actor(1).setFaceImage('name', 12);
Original thread: https://forums.rpgmakerweb.com/threads/state-only-lasting-a-couple-seconds-or-an-action.152925/