Difference between revisions of "Useful Scripts"

Jump to navigation Jump to search
3 bytes added ,  22:19, 21 February 2010
→‎Hotkey: It turns out it's more efficient to call IsKeyPressed again than it is to use "sToggle == 0"
imported>Artisten
(→‎Hotkey: quest link directs to quest category)
imported>Cipscis
(→‎Hotkey: It turns out it's more efficient to call IsKeyPressed again than it is to use "sToggle == 0")
Line 364: Line 364:
Begin GameMode
Begin GameMode
if IsKeyPressed 25 != sToggle
if IsKeyPressed 25 != sToggle
set sToggle to sToggle == 0
set sToggle to IsKeyPressed 25
if sToggle ;Button pressed
if sToggle ;Button pressed
;Do things when button 'p' is pressed, in this case, decrease karma
;Do things when button 'p' is pressed, in this case, decrease karma
Anonymous user

Navigation menu