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
448
Reaction score
197
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
448
Reaction score
197
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
448
Reaction score
197
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
448
Reaction score
197
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
448
Reaction score
197
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,060
Reaction score
686
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,203
Reaction score
14,681
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

Hey everyone! No Studio Blue RPG Maker Critiques Stream today! But you can always check the playlist for old streams you've missed!

I ran out of paper sheets to draw, so I guess I'm forced to do digital for a while now...
x778xt8.jpg

Still haven0t found a colouring style that I like :kaoswt:
woods.pngshop.jpgboss.jpgRoom.png

Mapping is becoming so much easier!
FirestormNeos wrote on Neikoku's profile.
the cat in your profile picture is adorable
Are the default-size "chibi" sprites really a bad thing for a project? I'm not planning to sell my game anyway but I was wondering if they were as hated as some videos seem to claim...

Forum statistics

Threads
111,431
Messages
1,061,084
Members
144,797
Latest member
gh05tinblack
Top