kongu2910

Villager
Member
Joined
Feb 28, 2016
Messages
6
Reaction score
0
First Language
English
Primarily Uses
RMMV
So I've been trying to get RPG Maker MV to try and check whether or not a variable is more than or less than a certain number. Unfortunately, it just comes up with a syntax error every time I try to get it to work.


Here's what I've got so far:


if (gameVariables.value(1) >= 6){


condition = true;


} else {


condition = false;


}


Can anyone tell me what I'm doing wrong?
 

Ahuramazda

The Last Elementalist
Regular
Joined
Nov 9, 2012
Messages
402
Reaction score
379
First Language
English
Primarily Uses
RMMZ
Missing the $ in front of gameVariables.


when calling on variables and switches it should be $gameVariables or $gameSwitches :D
 

Latest Threads

Latest Posts

Latest Profile Posts

Christmas decorations! !! :kaojoy:
20231209_114754.jpg
Sophie is already helping dismantle the tree...a month early, of course. Such a helpful kitten!
making horse character for game :D at the end it will have 8 directions puling wagon

2p8jdax
I'm back after a short hiatus (0-0), after playing another eden i think i've understood the fundamentals of world building a lil' bit more so ima use that for crimson evan, (btw working on a trailer teehee)
image.png

I think this is good progress.

Forum statistics

Threads
136,876
Messages
1,270,931
Members
180,639
Latest member
alderpaw
Top