Help variable script call: QTE [Solved]

Hello everyone.
I ran into some issues while following the Eventing a QTE: Time Hits Minigame tutorial by Hiddenone. (I use VXACE, but the tutorial is for MV.)

For most of the tutorial, everything worked the way it was supposed to. But at the 'Checking if the player hits the goal' part, it said to create a conditional branch that checks if the pointer is in the goal by comparing the pointer's X variable to the variables that hold the goal's left and right sides. This is the code they used in the Conditional Branch’s script section: $gameVariables.value(21) >= $gameVariables.value(24) && $gameVariables.value(21) <= $gameVariables.value(25)

So, I tried to change this into something more VXA friendly. Not much luck so far. Another problem I came across is that it didn't fit inside the script section of a conditional branch. I tried making the entire conditional branch in a single script call, but this also didn't work because my scripting knowledge is minimal. I have been getting so many errors. 😩

This is what I got so far:
(91,95, and 96 are the variables I'm using.)
====================================
if $game_Variables[91] >= $game_Variables[95] && $game_Variables[91] <= $game_Variables[96]

# (input what happens when you succeed.)

else

# (input what happens when you fail.)

end

====================================

Does anyone know how I can make this work?
Hello everyone.
I ran into some issues while following the Eventing a QTE: Time Hits Minigame tutorial by Hiddenone. (I use VXACE, but the tutorial is for MV.)

For most of the tutorial, everything worked the way it was supposed to. But at the 'Checking if the player hits the goal' part, it said to create a conditional branch that checks if the pointer is in the goal by comparing the pointer's X variable to the variables that hold the goal's left and right sides. This is the code they used in the Conditional Branch’s script section: $gameVariables.value(21) >= $gameVariables.value(24) && $gameVariables.value(21) <= $gameVariables.value(25)

So, I tried to change this into something more VXA friendly. Not much luck so far. Another problem I came across is that it didn't fit inside the script section of a conditional branch. I tried making the entire conditional branch in a single script call, but this also didn't work because my scripting knowledge is minimal. I have been getting so many errors. 😩

This is what I got so far:
(91,95, and 96 are the variables I'm using.)
====================================
if $game_Variables[91] >= $game_Variables[95] && $game_Variables[91] <= $game_Variables[96]

# (input what happens when you succeed.)

else


# (input what happens when you fail.)

end

====================================

Does anyone know how I can make this work?
You've capitalised the v in $game_variables.
You've capitalised the v in $game_variables.
Thank you for replying so quickly. I changed the V's and now the script call works. 😅 I feel like an idiot for not realizing the caps.
Thank you for replying so quickly. I changed the V's and now the script call works. 😅 I feel like an idiot for not realizing the caps.
You're probably not alone there. Just try to remember that RGSS generally doesn't use capitals except at the beginning of class names and modules, while Javascript uses camelCase.

Original thread: https://forums.rpgmakerweb.com/threads/help-variable-script-call-qte-solved.142015/