(Is this the right section?)
I tried checking the script call collection thread, but I didn't find what I was looking for. Would it be possible to write a script that checks if the event is touching the player? I'd need to place it here
[IMG]https://40.media.tumblr.com/376918bfacc83f63d0ede4c2e0bc28e2/tumblr_inline_nqws774HKG1swdj8i_540.png[/IMG]
as I really need the event's trigger to be 'parallel process', but I also need something to happen if the event touches the player :[
Could it be done? I know nothing about scripting.. :blush:
First, you need to define what is "Event touching the player" for you - because that is different depending on the event priority and event movement and a few other things.
(for example, if the event is below player it is usually triggered only when the player stands on it - if it is same as player the touch can be triggered from four different positions when facing and so on.
That said, please tell us what else the event should do that requires the parallel process
Oh, yea, sure. Well, the event's priority is 'same as characters'. Basically it's just an enemy that roams around and chases the player if he's on its line of sight.
[IMG]https://36.media.tumblr.com/2a853fbdd917ce5f2ffecb5c38cc8e0f/tumblr_inline_nqwue5A46j1swdj8i_540.png[/IMG]
I need something to happen if it does catch the player though, and I'm not sure how to deal with that. Thank you for your patience-
After countless attempts I somehow figured out a way to solve this-- unbelievable ☺️
How do I close this thread?
Oh, right, didn't notice that in the rules page. Thank you!
Well I didn't really find a solution to what I was asking for, I just did something simpler I decided to settle with anyway.
I set the event's priority as 'below character', then used a conditional branch that states that if the event steps on the tile the player is on ( script: $game_map.events[@event_id].x == $game_player.x && $game_map.events[@event_id].y == $game_player.y ) , a battle is triggered. Not exactly what I needed, but it'll do.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.