Tazzyneo

Villager
Member
Joined
Mar 1, 2020
Messages
15
Reaction score
3
First Language
French
Primarily Uses
RMMV
Hello!
I'm trying to make a slip effect that can randomly cancel someone's action if he battles on Ice.
(And with right Boots you can avoid this effect. (I took this idea from my favorite game DOSII)
So the effect works perfectly, but one thing is missing: I want the user to do the "dead" motion when he slips.
I was able to do that in action sequences with "motion dead: user" but this obviously don't work in "<Custom Action Start Effect>
It should look like this, but I don't know how to trigger the motion:

if (Math.random() < SlipRate) {
user.startmotion"dead";

I found how to play an animation there, but this isn't gonna help me out.
user.startAnimation(x);
(I use Yanfly's scripts, like Buffs&StatesCore here)

Please help me!! Without this the effect is gonna look really bad... :/
 
Last edited:

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
736
Reaction score
243
First Language
Vietnamese
Primarily Uses
RMMV
Try "user.forceMotion('dead');". I'm not sure if this works. In case it does not, I have no other ideas too.
 

Tazzyneo

Villager
Member
Joined
Mar 1, 2020
Messages
15
Reaction score
3
First Language
French
Primarily Uses
RMMV
It works! Thanks! :D
Would never have found this by myself xD

Is there any way to make the game "wait" for a certain time just after the motion ?
They just get up immediatly after, but I'd like them to stay on the ground for 1 or 2 seconds, like they just realised that they slipped)
Something like:
-wait: 60
or
-wait for animation (I can play an empty Animation)
or
-common event -> wait
But still with JS.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,870
Reaction score
1,869
First Language
Dutch
Primarily Uses
RMMV
I know SRD has a plugin that can use wait for animation, if for an event, you can try
this plugin "Wait Options" by SRD, if for the notebox, than I dont know.

but you need to calculate the amount of frames for the animation
 

Tazzyneo

Villager
Member
Joined
Mar 1, 2020
Messages
15
Reaction score
3
First Language
French
Primarily Uses
RMMV
It's for the notebox!
But this plugin looks interesting, I may use it for other stuff, Thanks !

Edit:
Okay I found a solution to make the game wait until the animation ends:

"BattleManager.actionWaitForAnimation();"

I Guess we can close this thread ^^ Thanks for your help!
 
Last edited:

Tazzyneo

Villager
Member
Joined
Mar 1, 2020
Messages
15
Reaction score
3
First Language
French
Primarily Uses
RMMV
(Please delete this message, I should had edited my last message)
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
736
Reaction score
243
First Language
Vietnamese
Primarily Uses
RMMV
If you know some basic JS, you can look through the plugin Action Sequence Pack 2. I think you can find so many things about the motions of battlers there.
 

Latest Threads

Latest Profile Posts

My entire family and I have Covid... If it's this bad with the vaccine, without must be terrible. Stay safe, everyone. This thing is a doozy.
Ugh. Head heavy with sick juice. I wish I could work on my stuff. o_O
GZZPUeX.png

Overflow Form
I'm coming back to my work with Learn RPG Maker MV. Soon I'll be posting previews screenshots for my "paterons"! :guffaw:

Forum statistics

Threads
118,520
Messages
1,116,600
Members
155,533
Latest member
finella
Top