overlayers //lets define our overlays now for the weapons.
Chidori
Click()
icon='Chidori.dmi'
icon_state="gui"
ok i got this far but i want it to when i click it it uses the verb (so in this case the chidori verb i have in my game).
ID:159407
Mar 16 2009, 7:01 pm
|
|
overlayers //lets define our overlays now for the weapons. ok i got this far but i want it to when i click it it uses the verb (so in this case the chidori verb i have in my game). |
I think you want it this way
obj // it should be a object type Clicking this adds the object to the overlays of the usr that is the one who is clicking :-) Hope it helped Though I am a noob |
Anyway, you can call verbs just like you can call procs. Normally if a verb uses usr in it you'll want to ensure the correct mob is passed as usr to the verb, but since Click() is usr-safe it turns out the usr of it is already what you want, so you can simply call the verb. If the verb was defined under /mob, ie mob/verb/Chidori(), it'd be sufficient to simply write usr.Chidori(). Keep in mind any verb arguments the verb may have will not take effect though, so you'll need to fetch values for those manually if they are required args.