Inventory System

Hello, I’m working on an RPG sort of game - and it goes without saying I’ll need an inventory system.

Now, I’ve tried putting putting and item on the ground and making it a button.
You click on the button, it should add it to the inventory.
The inventory is inside your menu, so the path would be:
_root.mnu.it1
and ‘it1’ goes all the way to thirty, each ‘it#’ is a dynamic text field.

I’ve tried if else statements:


on(release){
	if(_root.mnu.it1 !== "empty"){
          trace("slot one full");
     } else {
          _root.mnu.it1 = "Saber";
     }
	 if(_root.mnu.it2 !== "empty"){
          trace("slot two full");
     } else {
          _root.mnu.it2 = "Saber";
	 }
}

Of course, I initially enter in the ‘it’ fields “empty”.
To no avail… Suggestions?