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
739
Reaction score
246
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,914
Reaction score
1,887
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
739
Reaction score
246
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 Posts

Latest Profile Posts

Have you ever had the problem of not knowing how to name your game?
I tried to draw it to keep the aspect ratio of 48*48
It doesn't look good, but I'm not sure if there are other ways to render larger characters. and then maintain the sharpness or not
SF_Enemy1_6 added!
index.php

Just thought I'd share how my battlers are looking for my 4 main characters. From left to right... Ashlyn the brave fighter, Lizzabelle the peaceful mage, Suki the thief, Saedra the not-so-peaceful mage.

pLZHVLI.png
Power to the Game Make!

Forum statistics

Threads
118,783
Messages
1,118,663
Members
155,950
Latest member
SmectaMyLife
Top