Inventory


#1

Hello,
I have just started using this script and I am plodding along ok.
But I decided to include inventory. I found the tutorial on it but, to be honest, it looks like it does more than I need.

Is there an easy way to have an item added and removed from the inventory list in the stats page that does not requires millions of lines of script?
I seriously only want the item to either be there or not and to add/remove much like the increase/decrease of values in stats but it makes the item appear/ disappear from the list?


#2

simplest way is set the item true or false


*choice
 # Use potion blue
  *set p_blue false
 *goto inven

*label inven
*if (p_blue)
 One potion of Blue
 *goto somewhere
*goto somewhere

Of course if you have more then one of the same item will take a little more code. Hope this helps.


#3

What sort of game are you making?


#4

lordirisdas - thanks. I will use that :slight_smile:

Doctor - I am doing my first game so the fight is with the code right now. But the story is told from the perspective of a goblin on the run. If people like it I will keep writing it. If not I will do another kind of story


#5

Happy to help when ever I can :slight_smile: