ID:176360
 
obj/sword
hodran_blade
icon = 'objects.dmi'
icon_state = "hodranblade"
name = "Hodran Blade"
var
weaponstrength = 10
equiped = 0
verb
Get()
set src in oview(1)
if(Move(usr))
else
return 0
Equip() // wont equip
set src in usr
if(usr.weapon == 0)
usr.strength += weaponstrength
usr.overlays+=icon('overlays.dmi',"sword")
weaponname = "[name]"
usr.weapon = 1
src.equiped = 1

else
return 0

Unequip()
set src in usr
if(src.equiped == 1)
usr.strength -= weaponstrength
usr.overlays-=icon('overlays.dmi',"sword")
weaponname = null
suffix = null
usr.weapon = 0
src.equiped = 0
else
return 0

Drop()
if(src.equiped == 0)
src.loc = usr.loc
else
return 0
By global, do you mean taht everyone in the world CONSTANTLY has those 3 verbs "Get, Equip, and Unequip?" If so. Maybe you should make the verbs a verb for a mob. like..
mob/verb/Get(O as obj in view(1)) or something like that.
In response to GoodDoggyTreat (#1)
No, he means he want's every OBJECT in the world to have those three verbs.
In response to Jotdaniel (#2)
Ohhhh why didn't he just say that -.-

What I would do is something like this...
(Note: all of the >'s are indents.)

obj/weapon //make a type of obj called weapon. but there will be more than one weapon :/
verb //verbs for all weapon objs
Get(O as obj in view(1))
(insert Get code here)
Equip(O as obj in usr.contents) //Or however you have it.
(insert Equip code here)
Unequip(O as obj) //Again, however you have it.
(insert Unequip code here)
Nameofweapon //A weapon itself.
icon='weapon.dmi'//Its the Icon..duh
icon_state="weapon1"//Do I have to state the obvious?

Nameofweapon2 //Another weapon...
icon='weapon.dmi // ^^Read up
icon_state="weapon2" // icon_state again! :)

Doing this. you could do it over and over. then all ovjs that fall under weapon will have the verbs Get, Equip, and Unequip. Saves alot of time too :)



In response to GoodDoggyTreat (#3)
He did say that....look at the thread title.
In response to GoodDoggyTreat (#3)
i already got it, thanx anyway
In response to Jotdaniel (#4)
Im such a dodo -.-
In response to GoodDoggyTreat (#6)
no, i am a dodo. It was right under my nose and i didnt notice it.