SpeedKeys
Have you ever wanted to have more detectable keys without using a third-party program?
Well here is a single-player solution that uses the game-speed increase and decrease keys, "+" and "-".
Just put the trigger in your map, your preference GUI or JASS and then put your trigger actions after the marked point.
With the Demo it adds gold with the "+" key and subtracts gold with the "-" key.
GUI

SpeedKeys GUI
Add this to your initialization trigger

Game - Set game speed to Slow
JASS
function Trig_SpeedKeys_JASS_Actions
takes nothing returns nothing if GetGameSpeed
() == MAP_SPEED_NORMAL
then call SetGameSpeed
(MAP_SPEED_SLOW
) //Put your actions for the "+" key after this point call SetPlayerState
(Player
(0
), PLAYER_STATE_RESOURCE_GOLD, GetPlayerState
(Player
(0
),PLAYER_STATE_RESOURCE_GOLD
)+1
) elseif GetGameSpeed
() == MAP_SPEED_SLOWEST
then call SetGameSpeed
(MAP_SPEED_SLOW
) //Put your actions for the "-" key after this point call SetPlayerState
(Player
(0
), PLAYER_STATE_RESOURCE_GOLD, GetPlayerState
(Player
(0
),PLAYER_STATE_RESOURCE_GOLD
)-1
) endifendfunctionfunction InitTrig_SpeedKeys_JASS
takes nothing returns nothing set gg_trg_SpeedKeys_JASS = CreateTrigger
() call TriggerRegisterTimerEventPeriodic
(gg_trg_SpeedKeys_JASS, 0.3
) call TriggerAddAction
(gg_trg_SpeedKeys_JASS,
function Trig_SpeedKeys_JASS_Actions
) call SetGameSpeed
(MAP_SPEED_SLOW
)endfunction
NOTE: Game-speeds are a little strange in Wc3
Fast In-game == Normal in WE
Normal In-game == Slow in WE
Slow In-game == Slowest in WE
That is why the setting are as they are.
Due to the unique nature of the game-speed change keys you can actually hold down the + or - key
and it will keep on doing the triggered action over and over, unlike ability hot keys.
But again, this is only usable in single player.
Have fun,
-Saitek