Status
Not open for further replies.

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
505
Reaction score
13
First Language
english
Primarily Uses
RMVXA
So I am having a problem with an event that I made for spikes. The first part of the event works, but when it gets to the second part it gives me an error.
Event:
1618873039859.png
Part that is causing problem:
$game_player.x == $game_map.events[@event_id].x && $game_player.y == $game_map.events[@event_id].y
Error Message:
1618873117683.png
Event that gets info:
1618873169131.png
How do I fix this?
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
401
Reaction score
175
First Language
PT-BR
Primarily Uses
RM2k3
Try:
Ruby:
$game_player.x == $game_map.events[event_id].x && $game_player.y == $game_map.events[event_id].y

Good luck
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
505
Reaction score
13
First Language
english
Primarily Uses
RMVXA
Try:
Ruby:
$game_player.x == $game_map.events[event_id].x && $game_player.y == $game_map.events[event_id].y

Good luck
This only goes for specific ids. The one I put is supposed to check the current event that the branch is on.
I did the exact same as this video:
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
401
Reaction score
175
First Language
PT-BR
Primarily Uses
RM2k3
I'm sorry, i tested it like this:
p event_id

Exactly returned the event ID that called it
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
401
Reaction score
175
First Language
PT-BR
Primarily Uses
RM2k3
Rpg Maker -> Game -> Enable "Display Console"
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
505
Reaction score
13
First Language
english
Primarily Uses
RMVXA
Rpg Maker -> Game -> Enable "Display Console"
Ok. How did you have the branch set up though?
EDIT: Nevermind, I got it. It worked. Thank you so much, but how did it work is my question?
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
401
Reaction score
175
First Language
PT-BR
Primarily Uses
RM2k3
VXACE-Colision.png
But in fact this can be done with events only, using the "This Event" option.

Although ...
I apologize again, maybe I didn't even really understand what you're trying to do.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
401
Reaction score
175
First Language
PT-BR
Primarily Uses
RM2k3
Exactly, I did not understand the purpose of the "Conditional Branch" with Script.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,021
Reaction score
677
First Language
English
Primarily Uses
RMVXA
Sorry, forgot the language thing. Interesting and I probably asked this before.
 
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,098
Reaction score
14,631
First Language
English
Primarily Uses
RMMV

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.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Just finished my first Slip into Ruby since last July! It'll be up and added to the main post tomorrow, along with a new Jump into Javascript.
to pass the time.pngTesting out making boxes and packs of items. These things are always fun to do.
Rural Japan Tiles, Giant Dragon Sprite, Paint Icons? & Game Spicy Pixel Fonts | RPG Maker News #31

just hopped into project recruitment... hoping to maybe find some artists to help with parallax maps and whatnot. I could do them myself, but I'm not really good at it so I'd prefer to stick to my strengths which is character art and SOME UI elements.

Forum statistics

Threads
111,101
Messages
1,058,281
Members
144,304
Latest member
Wolfspace
Top