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,140
Reaction score
14,645
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

I've been working on something on and off for a few years now, and I've been reluctant to share any details on the project before I had anything playable because I did not want to generate hype only for the project to go back on hiatus. That being said I believe what I'm working on is very unique and pushes the boundaries of what RPG Maker projects can be. Bold claims, I know but just wait.
Happy Mother's Day to all the moms :)
Create Anime Art w/ AI, Tall Sprites with Aurora, Customize Variable Display | RPG Maker News #34

[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:

Forum statistics

Threads
111,192
Messages
1,059,153
Members
144,437
Latest member
foxiee05
Top