- Joined
- Jul 29, 2020
- Messages
- 10
- Reaction score
- 0
- First Language
- Português
- Primarily Uses
- RMMV
Hello everyone,
I'm trying to use a common event calling a script for play an animation on the current map in front of the player...
The intention is like to play the animation of the leaf beeing cuted when the player use a tool like the stickle, if that works will use a tile change to remove the plant for a terrain tile, kind of a abs system. I can't use the plants images in the events instead of the map, should loose a massive stuff of autotiles.
I have used variables to store the (x,y) coordinates of the player, them i correct the coordinates to be in front of the player according to his direction (ex: player direction equals 4 (<-) them x -1, y), so i store the event id suposed to be in that coordinate and make a script call for play a animation on this event id.

The event ID check it's working, and the variable id 21 is where i stored the return of get location info.
137 its the id of the leaf animation.
Don't worrie about the plugin, he does'nt affect directly the question, basicaly, the plugin able the player to switch between tools and use that tools by pressing 'alt' in front of an event that have a notetag like the <plant:1> notetag in the code above.
Unfortunely, i can't anchor the animations in a empty event in front of the player too , cause already must have an event there , with the <plant:1> notetag, to that able the player to use the stickle. Same for use a abs system
But looks like the common event does'nt recognize the current map, so the script i'm using not works. Hope anyone can help me :s
Thanks in advance!
I'm trying to use a common event calling a script for play an animation on the current map in front of the player...
The intention is like to play the animation of the leaf beeing cuted when the player use a tool like the stickle, if that works will use a tile change to remove the plant for a terrain tile, kind of a abs system. I can't use the plants images in the events instead of the map, should loose a massive stuff of autotiles.
I have used variables to store the (x,y) coordinates of the player, them i correct the coordinates to be in front of the player according to his direction (ex: player direction equals 4 (<-) them x -1, y), so i store the event id suposed to be in that coordinate and make a script call for play a animation on this event id.

The event ID check it's working, and the variable id 21 is where i stored the return of get location info.
137 its the id of the leaf animation.
Don't worrie about the plugin, he does'nt affect directly the question, basicaly, the plugin able the player to switch between tools and use that tools by pressing 'alt' in front of an event that have a notetag like the <plant:1> notetag in the code above.
Unfortunely, i can't anchor the animations in a empty event in front of the player too , cause already must have an event there , with the <plant:1> notetag, to that able the player to use the stickle. Same for use a abs system
But looks like the common event does'nt recognize the current map, so the script i'm using not works. Hope anyone can help me :s
Thanks in advance!