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.

Different character different inventory? XP

I'm using rpg maker XP and I want to do a character switch to simulate vehicle use (think escaping a planet in a space ship)
I'd like a separate inventory list for this... I'd rather have for example "ordinance reload" as opposed to "elixer" replacing spell points..
I don't know how to do it.

Is this possible, and if it is can someone point me in the right direction?
Thanks!
 
You have to set each item you're carrying to a variable like this
Control Variables:[0001:# of potions] = [Potion] In Inventory
Control Variables:[0002:# of high potions] = [High Potion] In Inventory
then remove the items like this
Change Items: [Potion], -99
Change Items: [High Potion], -99
then whenever you're ready to add the items back
Change Items: [Potion], + Variable [0001:# of potions]
Change Items: [Potion], + Variable [0002:# of high potions]
downside is you have to do it for every item your character can have at that point
upside is you know which items they could have picked up at that point so at least you dont have to do it for the entire database

Hope this helps :)
 

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