Can anyone see what is wrong with this script?
BMM_Archive · July 15, 2026
Original Source
- Original title: Can anyone see what is wrong with this script?
- Original author: ZombieKidzRule
- Original date: January 22, 2023
- Source thread: https://forums.rpgmakerweb.com/threads/can-anyone-see-what-is-wrong-with-this-script.154310/
- Source forum path: Game Development Engines > RPG Maker MZ Support
Summary
I have been tweaking this script and experimenting with pieces of it in smaller events to make sure I am doing everything correctly. Unfortunately, I am at a spot where it seems something is wrong and I can't figure out what. I have double checked what I think are the appropriate spaces. if ($gameVariables.value(410) >= $gameVariables.value(411) && $gameVariables.value(410) >= $gameVariables.value(412) && $gameVariables.value(410) >= $gameVariables.value(413) &&
Archived First Post
if ($gameVariables.value(410) >= $gameVariables.value(411) &&
$gameVariables.value(410) >= $gameVariables.value(412) &&
$gameVariables.value(410) >= $gameVariables.value(413) &&
$gameVariables.value(410) >= $gameVariables.value(414) &&
$gameVariables.value(410) >= $gameVariables.value(415) &&
$gameVariables.value(410) >= $gameVariables.value(362) &&
$gameVariables.value(410) >= $gameVariables.value(363) &&
$gameVariables.value(410) >= $gameVariables.value(364) &&
$gameVariables.value(410) >= $gameVariables.value(365) &&
$gameVariables.value(410) >= $gameVariables.value(366) &&
$gameVariables.value(410) >= $gameVariables.value(367)) {
$gameVariables.value(400).push("A1");
$gameVariables.value(410) = 0;
$gameVariables.setValue(398, $gameVariables.value(398) -1);
this.command119(["Skip"]);
}
I have a single space after every "&&".
Are there supposed to be spaces after the "{" and after each" ;"?
I tested the concept of having multiple && and it worked fine. I tested the push script and the subtracting script. I also tested the Jump to Label script.
But I am still getting this error message. I just can't see the error.

Thanks to anyone who can spot what I am doing wrong!
Downloads / Referenced Files
RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.
- Local mirror: 230345-8c64e2723bd02cfa1806397d0616f04b.png
SHA-256:9c502cc6060ea9fc97ef9f21a2ec6fbacfc8d1dab7fc9ffdcea7a5875cdd6894
Original attachment URL: https://forums.rpgmakerweb.com/attachments/reference-error-png.251265/
Referenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...