Action button character animation + Event call.

I would like to add a feature similar to Yume Nikki's where you would press the action button "z" (while not interaction with an event), and the character would do an animation, like moving its head or changing knife from hand to hand.

I would also like to know if you can call an event with any given key.

I don't know if there is a work around it without scripts, but I don't mind using them.

Proper credit will be given for scripts.

I've moved this thread to Script Support. Thank you.

Probably want yanfly's button common events.
https://yanflychannel.wordpress.com/rmvxa/field-scripts/button-common-events/

This is very usefull, exaclty what I was looking for. Thanks a lot.

But I still don't know how to animate my character on command.
I don't know. maybe make an animation,
Show animation
For Player $game_player.animation_id = n
http://steamcommunity.com/sharedfiles/filedetails/?id=668507872

or moving
Movement Commands
$game_player.moving?
Not sure how that one works though.

or perhaps use a move route to change the graphic for the actor to one that has your frames set then use the turn left wait, turn right etc, just like opening a chest. Then change the graphic file back. Not sure if that would work for you.
I don't know. maybe make an animation,
Show animation
For Player $game_player.animation_id = n
http://steamcommunity.com/sharedfiles/filedetails/?id=668507872

or moving
Movement Commands
$game_player.moving?
Not sure how that one works though.

or perhaps use a move route to change the graphic for the actor to one that has your frames set then use the turn left wait, turn right etc, just like opening a chest. Then change the graphic file back. Not sure if that would work for you.

Actually that is not a bad Idea, I will use the yanfly's "button common events" and map a common event to the space bar since I can't map two action buttons to the same key (oh well), and in that common event animate my character similar to the animation in chests and doors.

Best answer, Thanks.

This thread can be closed, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/action-button-character-animation-event-call.78888/