ID:264863
 
Code:
obj
New
icon='new.dmi'
Click()
usr.Rename()


Problem description:
What I'm trying to do is make it so when the obj is clicked it will activate the Rename proc I made, the verb seems to do it fine but the obj just won't work. Any help?
I would use click(mob/o) then call o.Rename, but your code doesn't really explain much. Did you add a check to see if click is getting called?
In response to Pirion (#1)
If by check you mean when it says something when clicked yes I did.
In response to Leggo my Wonder Waffle (#2)
Did it work?

Have you tryed giving it an icon? have you tryed doing mouse_opacity = 2? I've had issues with this too.
In response to Leggo my Wonder Waffle (#2)
Leggo my Wonder Waffle wrote:
If by check you mean when it says something when clicked yes I did.

So the issue is probably with the Rename proc.
In response to Ocean King (#3)
Ocean King wrote:
Did it work?

Have you tryed giving it an icon? have you tryed doing mouse_opacity = 2? I've had issues with this too.

Yes it has an icon, no I have not tried that yet.

Edit: The mouse opacity does not work sadly.
In response to Pirion (#4)
Pirion wrote:
Leggo my Wonder Waffle wrote:
If by check you mean when it says something when clicked yes I did.

So the issue is probably with the Rename proc.

Actually, the rename proc works fine when it's for a verb.
In response to Leggo my Wonder Waffle (#6)
But verbs and procs work different when called in a diffrent way.


In response to Pirion (#7)
Any idea how to fix it?
In response to Leggo my Wonder Waffle (#8)
I'm guessing you are refering to usr in the 'verb', so when called by another proc, it is not returning the same value for usr. Not really much idea without seeing it though..