AdamSakuru

[Null_Value]
Veteran
Joined
Mar 14, 2014
Messages
314
Reaction score
171
First Language
English
Primarily Uses
N/A
http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
Go to 6:22 in the video so you'll know what I'm asking about.

Does anyone know the syntax that would force the actor who has a state (that lasts a few turns) to perform a skill/action when said state expires? (This would be like a curse state, that kills the actor when it expires)

And, similarly, syntax that would have a chance (let's say 50%) of forcing the actor with said state to perform a skill/action upon their turn starting, before their chosen action/skill? (this would be used like confusion in Pokemon. 50% actor will get a state that prevents them from acting that turn)
 

Johnboy

Veteran
Veteran
Joined
Jan 13, 2016
Messages
352
Reaction score
127
First Language
English
Primarily Uses
What you are looking for is the <Custom Leave Effect> header.

It will look something similar to this:

<Custom Leave Effect>
// Get the landing skill.
var skill = 295;
// Get the last targeted index.
var target = -2;
// Queue the forced action.
BattleManager.queueForceAction(user, skill, target);
</Custom Leave Effect>

var skill is the skill ID of the forced skill.
var target is the target ID
BattleManager is the actual script call to force the skill.
 

AdamSakuru

[Null_Value]
Veteran
Joined
Mar 14, 2014
Messages
314
Reaction score
171
First Language
English
Primarily Uses
N/A
Ooooh, nifty! This is a great starting point. Thanks for point this out!
 

Latest Profile Posts

Redesigning characters after such a long time feels great. Makes me excited to work on an old game again.
Phone menu to replace main menu WIP:
It's been that long since I wrote a plugin, it took me 4 attempts to realize it's != rather than #. In a 40-line plugin, 20 of those lines being documentation!
Disk Check Plugin - Running on Linux:
RMMV-Game-Mint.png
workin on some graphics for my game. was originally planning on doing a cartoony style for the town but I might stick with this instead

Forum statistics

Threads
116,086
Messages
1,095,629
Members
151,461
Latest member
GTVenm
Top