I'd like a common event to run whenever the player activates a map event, directly before the event itself. I know I could go into every separate event to trigger it, but is there a way to make a general rule with code instead?
Thanks for reading!
What do you mean "whenever the player activates a map event" exactly?
Whenever the player uses the action button for an action button event, touches a player touch event, or triggers an autorun event.
Hmm, that hangs the game. (I put it in a new script in Materials, is that right?)
Is the script applying to EVERY event, including common events? If it is, then I guess the common event I want to run is calling itself, causing an endless loop? So I just need it to run on events on the map, if possible.
Yea just under materials and above main.
Thats a strange one.. It only applies to the Game_Events. Game_CommonEvent is a diffferent thing altogether.. Maybe I'm overlooking something :/
What are you trying to accomplish? What's so special about the common event you want to run?
yea thats a very good question..
If its just to something simple it could be much easier to script and then it wouldnt require the common event 😛
Extra points to Shaz for guessing the script that the calls are from (assuming of course that she is (edit🙂 right )
Oh, sorry, I should have explained that! It's Galv's Move Route Extras. The reason the player turns in their current direction before the graphic changes is because my animations are using up/down/left/right frames of character graphics, so that will need to go in there. I can totally see why it seemed redundant, I should have explained myself better. Also, should the script read: $game_player.restore_char?
@Shaz - to make them face left-er ?
Yes, because sometimes you just can't face left enough.
I don't think it's necessary, but the OP seems adamant, so I figured I'd provide it now, just in case they proved me wrong and I had to provide it later anyway 🙂
Nah, can never face too left. The more the better imo...
Could maybe enhance the method so that it turns left, turns right, then turns left again - just to show that left is better ^_^
IT'S STILL NOT LEFT ENOUGH!! j/k
I am such a moron...
However, I do still need the branching as the code currently turns my character down regardless of which direction they were facing. The last 2 of $game_player.set_char("$bugwalk",1,2,2) denotes the direction row of the character sheet, 2 for down, 4 for left, 6 for right and 8 for up.