Vlue's Proximity Events Script - Error

Altair

Villager
Member
Joined
Apr 16, 2018
Messages
8
Reaction score
0
First Language
German
Primarily Uses
N/A
Hello,

my english is not the best, but i hope, you can understand me.

I tried this:
https://www.rpgmakercentral.com/top...collision-fix-for-falcao-pearl-abs-liquid-v3/

But i always get an Error:

ArgumentError occured.
block not supplied.


This is the original:

$game_map.events[005].instance_eval("@priority_type = 1")

$game_map.events[005].instance_eval("@priority_type = 0")


and I have already tried that:

$game_map.events[005].instance_eval
(@priority_type = 0)

$game_map.events[005].instance_eval
(@priority_type = 1)

And: (this was a tipp)

$game_map.events[005].instance_variable_set
(@priority_type = 0)

$game_map.events[005].instance_variable_set
(@priority_type = 1)


Unfortunately I'm not a programmer and do not know me very well.
Maybe someone here knows better and wants to help me?


Best Regards
Ben
 
Last edited:

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,153
Reaction score
818
First Language
Hungarian
Primarily Uses
RMVXA
First, you should never use leading zeros in code.
If you see that some ID number in the editor is written as 005, for example, you use 5 in scripts, and NOT 005.

And the second issue (which probably triggered your error) is that you used a line break where you shouldn't.
You have to put that code you saw in the topic you linked on a single line.
So, this is correct:
Code:
$game_map.events[5].instance_eval("@priority_type = 1")
But this will give you an error:
Code:
$game_map.events[5].instance_eval
("@priority_type = 1")
You could use multiple lines, but you have to know where you can and where you can't use line-breaks in code.
For example, this one:
Code:
$game_map.events[5].instance_eval(
"@priority_type = 1")
Should also work, because it expects something after that bracket, so it checks the next line too.
The below example should also work:
Code:
ev = $game_map.events[5]
ev.instance_eval("@priority_type = 1")
 

Altair

Villager
Member
Joined
Apr 16, 2018
Messages
8
Reaction score
0
First Language
German
Primarily Uses
N/A
Thank you very much, the Error is gone :)
Very fast Help, im really happy about this!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.
Why is there so much month left at the end of money? D=
Hello humans! How goes your day in this journey of living? I hope it is good, for I am human like you, and I am feeling great! Worship the altar.

Forum statistics

Threads
105,628
Messages
1,015,076
Members
137,288
Latest member
GmOcean
Top