You wear Cape 1
You wear Cape 2
But, if there is 2 different kinds of items in the inventory, i want to choose which one to equip, any ideas?
Code:
Equip
icon = 'hud.dmi'
icon_state = "save"
layer=1000000001
New(client/C)
screen_loc = "1,8"
C.screen+=src
Click()
for(var/obj/Cloths/O in usr)
if (O.loc != usr)
return
if (suffix == null)
var/Can_Equip = 1
if (usr.equiped == 1)
Can_Equip = 0
if (Can_Equip)
usr << "<font face=Courier>You Wear Your \icon[O]<font color = blue> [O]."
usr.DEF += power
usr.equiped = 1
suffix = "(Wearing)"
else
usr << "<font face=Courier>Your already wearing somthing."
else
suffix = null
usr.DEF -= power
usr.equiped = 0
usr << "<font face=Courier>You Remove Your \icon[O]<font color = blue> [O]."
RaeKwon