Code:
var
gold = 1000
lx
ly
lz
beenhere = 0
lastversion = 0
list/army
Stat() //Call the Stat proc that updates the stat window every Tenth of a second...
if(src == usr) statpanel("Inventory",src.contents)
if(src == usr) statpanel("Army",usr.army)
Noncombat
verb
Add_to_army()
src.loc = usr.army
Remove_from_army()
src.loc = usr
Problem description:
When I use Add to army on a unit in my inventory, it disappears from the inventory, but doesn't appear in the Army tab.
First, you can't set a loc to a list. I think what you want to do is add yourself to the list.
I'm assuming Noncombat is a type path of a mob, since you never specified whether it is a mob, obj, or whatever.
~~> Dragon Lord