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,710
Reaction score
13,104
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,290
Reaction score
432
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,781
Reaction score
12,209
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

I posted a funny gag reel of Drifty's video's here, but realized it was probably too riskay, so I deleted it, oops, lol.
Another room (actually other half of previous room)
What should I focus on today?

Character Portraits?
OR
Mapping?
Alright, I think I've got tired of VXAce. I guess I will jump to MV.
Just had a stranger SPRINT away from me in the grocery store. Talk about overreaction...
...I don't think I'm that ugly! ^-^

Forum statistics

Threads
95,512
Messages
929,735
Members
125,776
Latest member
FrogScholar
Top