Status
Not open for further replies.

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
507
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
445
Reaction score
195
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
507
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
445
Reaction score
195
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
445
Reaction score
195
First Language
PT-BR
Primarily Uses
RM2k3
Rpg Maker -> Game -> Enable "Display Console"
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
507
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
445
Reaction score
195
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
445
Reaction score
195
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,053
Reaction score
683
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,196
Reaction score
14,665
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

here's another RPG Maker remake idea: "Plumbers Don't Wear Ties". I'll salute to whomever does this
I won't finish it today, I only will have time to work on that next Saturday, what a shame... :(
I made something for @LittenDev [as he requested]
It's been a weird while. I've been so torn down that even playing video games has been something I avoided. But I shouldn't forget two things. One, I love RPG Maker for a reason. Two, only way to eat an elephant is a bite at a time.

Forum statistics

Threads
111,385
Messages
1,060,721
Members
144,728
Latest member
Izaya_Nozomu
Top