Event Priorities

Saiklex

Villager
Member
Joined
Aug 10, 2013
Messages
7
Reaction score
0
First Language
English
Primarily Uses
I'm trying to get an event so that the graphic is below the player, the player is able to pass through it, yet to activate it, they must stand next to it, rather than on top of it, like an event that has the same priority. Am I missing something simple? Thanks.
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
This is not an option - you'd have to do some calculating of the player's coordinates compared to the event. Set the event's map X & Y coordinates to two variables, and then either subtract or add 1 to it, then compare those coordinates with the player. Subtracting/adding 1 to the variable will give you the coordinates of the tile below/above/next to the event in question.
 

Saiklex

Villager
Member
Joined
Aug 10, 2013
Messages
7
Reaction score
0
First Language
English
Primarily Uses
This is not an option - you'd have to do some calculating of the player's coordinates compared to the event. Set the event's map X & Y coordinates to two variables, and then either subtract or add 1 to it, then compare those coordinates with the player. Subtracting/adding 1 to the variable will give you the coordinates of the tile below/above/next to the event in question.
I'm afraid you've got my question confused, to be honest, I did word it rather poorly, so apologies!

What I want is an event that the player can walk through, and the graphic won't go above the player if they walk through it, but to activate the event, the player must be standing NEXT to, not on top of the event when they press the action button. Right now, I can only get it so the player has to be on top of the event to trigger it with the event button, if I want the graphic to be below the player if they walk over it.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,366
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
she probably didn't confuse your question - what you're asking for is basically impossible and you have to use a workaround to get to it - and Cel described one possible workaround.

If the event is below player, then the action button will only work on it if the player stands on it. If the action button has to work when standing next to it, then the event has to have the priority "same as player" - and the player can no longer walk above it.

To solve this, you can either have a parallel process checking the coordinated where the player is (Cel's solution) or you have to place different events around the center event, all below player and the surrounding events triggering the center event when the player presses the action button on the surrounding events (this solution depends on the map structure and prevents you from having still other events near the special event you want.
 

Saiklex

Villager
Member
Joined
Aug 10, 2013
Messages
7
Reaction score
0
First Language
English
Primarily Uses
she probably didn't confuse your question - what you're asking for is basically impossible and you have to use a workaround to get to it - and Cel described one possible workaround.

If the event is below player, then the action button will only work on it if the player stands on it. If the action button has to work when standing next to it, then the event has to have the priority "same as player" - and the player can no longer walk above it.

To solve this, you can either have a parallel process checking the coordinated where the player is (Cel's solution) or you have to place different events around the center event, all below player and the surrounding events triggering the center event when the player presses the action button on the surrounding events (this solution depends on the map structure and prevents you from having still other events near the special event you want.
Oh, I see. Apologies again, then, and thanks! It's a bit of a pain, but I guess I'll have to try them both...
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Use my method if your event (that you want to pass over) has a custom/random move route. Use Andar's method if it's a stationary event.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top