Help! Variable Issue

jamssi

Warper
Member
Joined
Jan 29, 2020
Messages
2
Reaction score
0
First Language
Finnish
Primarily Uses
RMVXA
Pardon me if this is in wrong place, I am new here xD

Variable.PNG
I am trying to make variable check. First the script get number of item ID 1 and sets it as variable.

Conditional.PNG
Then conditional branch checks it.

Error.PNG
But it ends like this in test.

What's gone wrong here? Thank you in advance!
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
12,597
Reaction score
12,915
First Language
English
Primarily Uses
RMVXA
There should be a command under game data to directly get the number of items when you assign the variables. I'd use that instead.
 

jamssi

Warper
Member
Joined
Jan 29, 2020
Messages
2
Reaction score
0
First Language
Finnish
Primarily Uses
RMVXA
Simple is the answer! Thank you, I feel so stupid.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
1,135
Reaction score
365
First Language
Dutch
Primarily Uses
RMMV
also, the script you used is for MV, not for VXA which use probably $gmae_Party or $game_party. something else behind :) Make sure you take the correct scriptcalls for the correct engine :D
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,464
Reaction score
12,017
First Language
English
Primarily Uses
RMMV
For Ace, your script call should be $game_party.item_number($data_items[1])
 

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

Latest Threads

Latest Posts

Latest Profile Posts

There a thread out there that tells us the best way to open an RPG that isn't 'the protag gets out of bed'?
Updated my state Stacker Script on itch.io, github is down for some reason (probs just me).
Wife watching Locke and Key. This show is so bad!! You can't just acclimate to discovering magic or magical worlds in less than 60 seconds.
I think I still prefer RPG Maker over Dreams. Been playing around with it, and the controls are really the biggest flaw for me.

Forum statistics

Threads
94,332
Messages
919,996
Members
124,087
Latest member
OrdinaryOne
Top