wc3edit.net

United Warcraft 3 map hacking!
It is currently March 28th, 2024, 12:27 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [Jass] Speed of gameplay
PostPosted: December 26th, 2012, 4:29 pm 
Offline
Forum Staff

Joined: November 3rd, 2010, 10:48 am
Posts: 1850
Location: Singapore
Title: Best Player
I want to change to speed of gameplay.
I tried making it but failed.
Help needed
Code:
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.


Top
 Profile  
 
 Post subject: Re: Speed of gameplay
PostPosted: December 28th, 2012, 8:07 am 
Offline
Old Wrinkly Member
User avatar

Joined: April 19th, 2010, 1:48 pm
Posts: 238
Location: In The World
Code:
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


Top
 Profile  
 
 Post subject: Re: Speed of gameplay
PostPosted: December 30th, 2012, 4:32 pm 
Offline
Forum Staff

Joined: November 3rd, 2010, 10:48 am
Posts: 1850
Location: Singapore
Title: Best Player
Fukki wrote:
Code:
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.


Top
 Profile  
 
 Post subject: Re: Speed of gameplay
PostPosted: December 31st, 2012, 9:18 am 
Offline
Old Wrinkly Member
User avatar

Joined: April 19th, 2010, 1:48 pm
Posts: 238
Location: In The World
normally in "bnet" and "local area" game has set to faster

_________________
Image


Top
 Profile  
 
 Post subject: Re: Speed of gameplay
PostPosted: December 31st, 2012, 9:52 am 
Offline
Forum Staff

Joined: November 3rd, 2010, 10:48 am
Posts: 1850
Location: Singapore
Title: Best Player
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.


Top
 Profile  
 
 Post subject: Re: Speed of gameplay
PostPosted: January 7th, 2013, 11:39 am 
Offline
Forum Staff
User avatar

Joined: October 18th, 2010, 8:43 am
Posts: 626
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.

_________________


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)