Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Item quantity verification

Status
Not open for further replies.
If you are trying to get the number of an item and assign it to a variable:
Code:
$game_variables[variable_id] = $game_party.item_number(item_id)
or
$game_party.weapon_number(item_id)
or
$game_party.armor_number(item_id)

Replace variable_id (no 0s) and item id with item id (item, weapon or armor, no 0s).

Added to FAQ
 
Or replace the conditional branch for a script condition: (i think it's easier than variables)
Code:
...........
<>Conditional Branch: Script: $game_party.item_number(item_id) >= 5
...........
 :Else Handler
...........
 :End
...........
replacing item_number for weapon_number or armor_number if you need, and item_id for the id in the database.

Your event is not working fine because you are checking if variable 1 is greater or equal variable 1, and that's ALWAYS true. Look your conditional branch:
Code:
<>Conditional Branch: Variable [0001] >= Variable [0001]
 

Anonymous

Guest

Yes, yes it is.

Rewen, get the legal version of RMXP at download.com. This site does not condone software piracy.
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top