Equip()
set category = null
if(usr.Righthand == null)
if(usr.Pwr >= src.PwrReq)
if(usr.Dex >= src.DexReq)
if(usr.Lvl >= LvlReq)
usr.Righthand = src
usr << "You equip the [usr.Righthand]!"
src.suffix += "Equiped"
usr.Str += src.PwrUp
usr.Spd += src.DexUp
usr.Str -= src.PwrDwn
usr.Spd -= src.DexDwn
else
usr << "Your level is too low to equip [src]!"
else
usr << "You are not powerful enough to equip [src]!"
else
usr << "You are not powerful enough to equip [src]!"
else
usr << "You already have a [usr.Righthand] equiped!"
That, is my equip system...
Gold_Cane
icon = 'Weapons.dmi'
icon_state = "goldcane"
desc = "I wonder what kind of person this cane was made for..."
PwrUp = 5
DexDwn = 3
MaxDurability = 20
Durability = 20
PwrReq = 3
DexReq = 1
LvlReq = 1
That's my object.
The Mob's stats surpass the Requirements, yet, it won't let me equip them... =/
Help will be appreciated...
_> Credit of a section of the Equip System goes to Dragon Lord(Unknown Person)...