[Jass] Speed of gameplay

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Apple
Forum Staff
Posts: 1470
Joined: November 3rd, 2010, 10:48 am
Title: Best Player
Location: Singapore

[Jass] Speed of gameplay

Post by Apple »

I want to change to speed of gameplay.
I tried making it but failed.
Help needed

Code: Select all

globals
trigger GameSpeed=null
trigger GameSpeed1=null
trigger GameSpeed2=null 
endglobals
function aSetGameSpeed takes nothing returns nothing
call SetGameSpeed(ConvertGameSpeed(4))
endfunction
function bSetGameSpeed takes nothing returns nothing
call SetGameSpeed(ConvertGameSpeed(3))
endfunction
function cSetGameSpeed takes nothing returns nothing
call SetGameSpeed(ConvertGameSpeed(2))
endfunction

function main takes nothing returns nothing
set GameSpeed=CreateTrigger()
call TriggerRegisterPlayerChatEvent(GameSpeed,Player(0),"-fastest",false)
call TriggerAddAction(GameSpeed,function aSetGameSpeed)
set GameSpeed1=CreateTrigger()
call TriggerRegisterPlayerChatEvent(GameSpeed,Player(0),"-fast",false)
call TriggerAddAction(GameSpeed1,function bSetGameSpeed)
set GameSpeed2=CreateTrigger()
call TriggerRegisterPlayerChatEvent(GameSpeed,Player(0),"-normal",false)
call TriggerAddAction(GameSpeed2,function cSetGameSpeed)
endfunction
Request a map? Follow the rulesHERE
Request templateHERE
Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
User avatar
Fukki
Old Wrinkly Member
Posts: 226
Joined: April 19th, 2010, 1:48 pm
Location: In The World

Re: Speed of gameplay

Post by Fukki »

Code: Select all

function aSetGameSpeed takes nothing returns nothing
call SetMapFlag(MAP_LOCK_SPEED,false)
call SetGameSpeed(ConvertGameSpeed(4))
call SetMapFlag(MAP_LOCK_SPEED,true)
endfunction
function bSetGameSpeed takes nothing returns nothing
call SetMapFlag(MAP_LOCK_SPEED,false)
call SetGameSpeed(ConvertGameSpeed(3))
call SetMapFlag(MAP_LOCK_SPEED,true)
endfunction
function cSetGameSpeed takes nothing returns nothing
call SetMapFlag(MAP_LOCK_SPEED,false)
call SetGameSpeed(ConvertGameSpeed(2))
call SetMapFlag(MAP_LOCK_SPEED,true)
endfunction
Image
Apple
Forum Staff
Posts: 1470
Joined: November 3rd, 2010, 10:48 am
Title: Best Player
Location: Singapore

Re: Speed of gameplay

Post by Apple »

Fukki wrote:

Code: Select all

function aSetGameSpeed takes nothing returns nothing
call SetMapFlag(MAP_LOCK_SPEED,false)
call SetGameSpeed(ConvertGameSpeed(4))
call SetMapFlag(MAP_LOCK_SPEED,true)
endfunction
function bSetGameSpeed takes nothing returns nothing
call SetMapFlag(MAP_LOCK_SPEED,false)
call SetGameSpeed(ConvertGameSpeed(3))
call SetMapFlag(MAP_LOCK_SPEED,true)
endfunction
function cSetGameSpeed takes nothing returns nothing
call SetMapFlag(MAP_LOCK_SPEED,false)
call SetGameSpeed(ConvertGameSpeed(2))
call SetMapFlag(MAP_LOCK_SPEED,true)
endfunction

great thanks.
Hmm the speed of the game didn't go any faster, why is that so?
Request a map? Follow the rulesHERE
Request templateHERE
Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
User avatar
Fukki
Old Wrinkly Member
Posts: 226
Joined: April 19th, 2010, 1:48 pm
Location: In The World

Re: Speed of gameplay

Post by Fukki »

normally in "bnet" and "local area" game has set to faster
Image
Apple
Forum Staff
Posts: 1470
Joined: November 3rd, 2010, 10:48 am
Title: Best Player
Location: Singapore

Re: Speed of gameplay

Post by Apple »

but when i type -normal it didn't get any slower too
Request a map? Follow the rulesHERE
Request templateHERE
Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
User avatar
Nuuby
Forum Staff
Posts: 519
Joined: October 18th, 2010, 8:43 am

Re: Speed of gameplay

Post by Nuuby »

If you're hosting the game, use TFTL's /speed command. Basically CE's speedhack that affects all players in your game.

p.s: you can exploit timers on some poorly coded maps with this. PolledWait uses timers independent of game time, TriggerSleep uses timers dependent of game time.