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
408
Reaction score
180
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
408
Reaction score
180
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
408
Reaction score
180
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
408
Reaction score
180
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
408
Reaction score
180
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,035
Reaction score
678
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,134
Reaction score
14,644
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 Profile Posts

[My favorite slow moving track I've made so far]
dd_airport2.jpgdd_combat.jpg
dd_town.jpg
I did an experiment to try to solve the art style problem between RTP and 3D models.
But, it feels this grimdark world is going to end even faster. :kaoswt2:
Solovei wrote on caethyril's profile.
Hi, just wanted to say, thank you for helping me fix that event with the step count! I followed your example exactly and it works now:kaojoy:
still waiting for original character contest 3 bust/face dlc release :kaoluv:
Stimpaks and More.png
Continued work. Still a WIP, some need some retouching. Stimpak, Radaway, Psycho, Jet, Mentats, Medex(ish/needs to be purple), bloodpack, glowing bloodpack. Made some Nuka too. Need to make Rad-X.
Nuka Sheet WIP FR.png

Forum statistics

Threads
111,188
Messages
1,059,115
Members
144,435
Latest member
LucarioKaze
Top