obj
overlayers
Chidori
icon='Chidori.dmi'
icon_state="gui"
Click()
usr.Chidori()
im havin trouble making this excute a verb that i have in my game(in this case a chidori verb). i want it when u click the image that it excutes the verb.
ID:159394
Mar 18 2009, 2:05 pm
|
|
obj im havin trouble making this excute a verb that i have in my game(in this case a chidori verb). i want it when u click the image that it excutes the verb. |
Mar 18 2009, 2:09 pm
|
|
Verb pl0x?
|
mob/verb/Chidori() thats the verb |
In response to Goggeeta
|
|
Have you even tried testing that out?
|
In response to Spunky_Girl
|
|
yea but it dosent actualy do the verb
|
In response to Goggeeta
|
|
Is it an actual image? As far as I know, you can't Click() an image >_>
|
In response to Goggeeta
|
|
Seems like it should work fine. Add some debug messages to the Click() and the verb; one of those if()s may be returning before anything actually happens. Or you may not actually be clicking on whatever the obj is.
Also, that first else in the Chidori verb is pointless. And if you only want it to be activated by clicking an object, I'd make it a proc instead of a verb. EDIT: After a quick test; it seems you can't click objects which are in overlays. Assuming you're adding that to overlays (since its an obj/overlays/) that would be the problem. |
In response to Spunky_Girl
|
|
i got it to work but now the overlays for the icon i set for it arnt showin up
|
In response to Falacy
|
|
There are no objects in overlays anyway; only static visual snapshots, or appearances. All overlays of an atom count as that atom's own icon and are treated the same as such, so when you click a mob's overlay you are really clicking that mob itself.
|