Is there any way to make it so you can click on an Item in your inventory and it shows its properties inside the inventory panel? I need a little help getting started with this, but I think I could figure out the rest.
ID:178603
Apr 24 2002, 1:49 pm
|
|
Apr 24 2002, 1:51 pm
|
|
What do you mean properties? It's vars or what?
|
obj/somecheapitemthatsariatmadeup
var/monkeypower = 123 Click() if(src.loc == usr) usr << "[src.monkeypower] " else return |
In response to Super16
|
|
Well, Properties like Price, Damage, Required Level and such. They're all listed in 1 list.
|
In response to Sariat
|
|
Sariat wrote:
obj/somecheapitemthatsariatmadeup this will be shown in the text window. I want it in the inventory panel if possible ;) |
In response to Sabertooth
|
|
Try something like this.
obj/bah var/list/L var/M=1 New() for(var/V in src.vars) L+=V Click() set src in usr if(usr.O==0) usr.O=1 else usr.O=0 mob/Stat() if(src.O==1) for(var/obj/O in usr) if(O.M==1) stat(O.L) |