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,599
Reaction score
12,916
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,138
Reaction score
367
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,470
Reaction score
12,018
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

Person: "Taxes are bs and money is, too! Anarchy!!" *Literally anything goes wrong* Same Person: "Why hasn't the government fixed this???"
Stream will be live shortly with a session of Haunting Ground! Feel free to drop by!
As for the Coronavirus? Well: "People that spend their life avoiding death are already dead (they're also rich, and I like to spend my life with their money.)"
- R. Sanchez, "Edge of Tomorty: Rick, Die, Repeat"
making pierogi and corrupting my game files wbu

Forum statistics

Threads
94,345
Messages
920,111
Members
124,105
Latest member
acelaces
Top