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,722
Reaction score
13,131
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,352
Reaction score
453
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,830
Reaction score
12,239
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 Profile Posts

stock analyst lady
Well, since I'm in lockdown, I guess it's finally time to get serious into rpgmaking... almost 20 years later.
Forbidden - You don't have permission to access /index.php on this server.

Forum statistics

Threads
95,745
Messages
931,524
Members
126,124
Latest member
FIL
Top