ID:140410
 
Code:
turf
New
icon = 'loginn.dmi'
icon_state = "New"
density = 1
layer = TURF_LAYER+1
Click()
usr.newp()


Problem description:Nothing happens when I click on the turf. I'm new to layers, but i think Ive used them right?

Looks like you might have specified Click() inside New(). You want it to be at the same level as New() like this.

turf
icon = 'loginn.dmi'
icon_state = "New"
density = 1
layer = TURF_LAYER+1
var
example1
example2
New()
example1 = 1
example2 = 2
Click()
usr.newp()


ts
In response to PopLava (#1)
PopLava wrote:
Looks like you might have specified Click() inside New().

No. He overrode /turf/New/Click().
As discussed in many recent threads, the problem could be (other than newp() just not working correctly) either that he had overridden client/Click() and hadn't called the parent, causing atom/Click() to never be called, or that he is not actually clicking the atom in question because it is obstructed by other atoms... which I suppose could happen even if it visually isn't so, thanks to a recently added feature.
In response to Kaioken (#2)
Kaioken wrote:
PopLava wrote:
Looks like you might have specified Click() inside New().

No. He overrode /turf/New/Click().

Maybe... :) I compared the level of difficulty in troubleshooting this particular problem vs overriding Click(), and my guess was that he wasn't intentionally designing it that way. I could be wrong.

ts