Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Suggestion] On Keypress event....

1369038443
Konrad J.
Pro
API Scripter
Maybe this isn't possible, but an on keypress event would be useful with the key that was pressed being passed.  Then we could add new commands, even add the ability to nudge tokens one pixel at a time with the arrow keys. :)  (well we would also need to know the currently selected token and who triggered the event) :(
With that, you could build a whole videogame inside roll20. Or make battles look like old Final Fantasy games.
Even if we added this, the latency would be horrid, since again scripts don't run on the local computer, they run in the cloud. At some point way, way in the future we may add a second type of "script" which is intended to run on local computer and do things like respond to keypresses and other actions that need to be low-latency...but that is a ways off :-)
1369080192
Konrad J.
Pro
API Scripter
Riley D. said: Even if we added this, the latency would be horrid, since again scripts don't run on the local computer, they run in the cloud. At some point way, way in the future we may add a second type of "script" which is intended to run on local computer and do things like respond to keypresses and other actions that need to be low-latency...but that is a ways off :-) Makes sense.  I can dream though! :)