Difference between revisions of "Useful Scripts"
→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 | 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 |