Click(var/obj/O in contents)
var/mob/equipped
O.loc = equipped
// All I got so far, but it has a runtime error and doesnt
//move to the "equipped" variable.
//Also it allows any item on the ground to be equipped.
Help Please! :D
ID:155710
Apr 9 2011, 8:31 am
|
|
Hi all. Im confused on how to equip an item from my contents to a seperate list. I assume you have to use the Click() proc to select an item in your contents. Could anyone help me with the Click() proc for this?
Click(var/obj/O in contents) Help Please! :D |
In response to Spunky_Girl
|
|
Oh i see. thanks
|
Click() doesn't have "custom" arguments like what you're doing. Whatever arguments Click() has (which are found in the reference), is what it has.
Second mistake:
Your "equipped" variable is null. It has no value. And since it has no value, doing O.loc = equipped, is the same as doing O.loc = null.