ID:145583
 
Code:
obj
DblClick()
if(src in oview(1))
set src in oview(1)
src<<"Bong!"

else if(src in usr.contents)
src<<"Boing!"

else
src<<"Kablooey!"


Problem description:

I get stack errors when i run my process, and Im sure theres a problem with the If statement, does this statement look correct? with setting the oview in one instance and checking if the object is in the usr as well???
Im wondering if it has somethign to so with oview(0) being counted as being in the usr. ???
The set keyword has to be the first thing in a function, so you'd have to move that up to be the first line in DblClick's code block. However, you don't need that for DblClick; your if(usr in oview(0)) is good enough.

Also, oview(0) means it has to be in the same tile. It is difficult to click on something if you are standing on top of it. If you want to extend that to the next tile over as well then you'd need to use oview(1).
In response to Loduwijk (#1)
Thx allot, that put me on the right track. I never really understood what that 'set' thing was for
In response to karver (#2)
if(usr in oview(0))

eww usr

A.T.H.K
In response to A.T.H.K (#3)
That's a doubleclick() usr is acceptable.