I was looking into a conditional branch for if the player has more then 1 of an item. I was doing a loooooong if check (see below) to do this. But it got tiresome so I started researching and came across this post (Click here).
(A long list of if conditions inside other if conditions)
In the link above there's a script:
$game_party.item_number($data_items[n]) >= 10
{^This script is for VX Ace | Didn't notice Sorry}
I tried this for a clay required mission:
Player needs 3 clay for event to turn on self switch a
but I couldn't get it to work.
Here's the item in question:
(1971 Clay)
I tried the script:
$game_party.item_number($data_items[1971]) >= 3
and
$game_party.item_number($data_items[1971 Clay]) >= 3
Sadly they both failed to work. What am I doing wrong?
More Screen Shots!
(Player Inventory Empty)
(Player received Clay item)
(Player has 3 Clay in their inventory)
(Script does not see that the player has 3 Clay in their inventory)
tl;dr: How do we use the script here for the inventory amount check?
(A long list of if conditions inside other if conditions)
In the link above there's a script:
$game_party.item_number($data_items[n]) >= 10
{^This script is for VX Ace | Didn't notice Sorry}
I tried this for a clay required mission:
Player needs 3 clay for event to turn on self switch a
but I couldn't get it to work.
Here's the item in question:
(1971 Clay)
I tried the script:
$game_party.item_number($data_items[1971]) >= 3
and
$game_party.item_number($data_items[1971 Clay]) >= 3
Sadly they both failed to work. What am I doing wrong?
More Screen Shots!
(Player Inventory Empty)
(Player received Clay item)
(Player has 3 Clay in their inventory)
(Script does not see that the player has 3 Clay in their inventory)
tl;dr: How do we use the script here for the inventory amount check?