Level=1
Exp=0
Nexp=100
HP=100
MaxHP=100
Str=10
Def=10
Mp=10
MaxMp=10
obj/lerfblade
name = "Lerf Blade"
icon = 'sword.dmi'
desc = "Inscribed on the hilt is the message:
\
Upon humans, refrain!
\
Upon lerfs, twice the pain!"
verb
wieldLerfBlade()
usr << "You wield [src]."
usr << "You are suddenly consumed by an overwhelming hatred for little purple people!"
suffix =" (wielded)"
usr.wielded = src
usr.Str += 5
usr.icon_state = "with sword" //TMDI
removeLerfBlade()
usr << "You remove [src]."
suffix = null
usr.wielded = null
usr.icon_state = ""
obj/Chestplate
name = "Chestplate"
icon = 'chp.dmi'
verb
wieldChestplate()
usr << "You wield [src]."
usr << "You are now more stout!"
suffix =" (wielded)"
usr.wielded = src
usr.Def += 5
usr.MaxHP += 25
removeChestplate()
usr << "You remove [src]."
suffix = null
usr.wielded = null
usr.icon_state = "":
|
|
I'm new to Byond, so I've been reading the tutorials and trying to mess around with them. what I want this to do is simple, make objects that increase stats. It does. Over and over. The player can choose to 'wield' as many times as he wants. Any solutions or maybe a better way to code this?: