obj
Kamehameha
icon='Objects.dmi'
icon_state="Box"
Click()
usr.Kamehameha()
return
DblClick()
usr<<output("<br><br>[src.name] set as Q.","window5.output1")
usr.SM=""
usr.SM2=""
usr.SM=src.name
usr.SM2=src.name
return
Problem description: I'm trying to set it so that if you click once, you would perform the verb Kamehameha but when you Double Click, I want to select the move.
My problem is that when I double click(even as fast as I could), It inputs both the single click and the double click. Is there a way to have like a tiny delay in between?
It would be nice they could add a new world var, something like click_delay. The default could be zero (0), meaning both Click() and DblClick() will be called upon a double click. Then you could raise the number for a longer interval click speed at which DblClick() will be registered after the first Click(). So if you set click_delay to 1, then click once, then click again before that 1 tick passes, DblClick() will be registered alone, and not both.