- Joined
- Mar 24, 2010
- Messages
- 950
Im sure you all know that ladder/bnet games makes the game auto pop up if you have the game minimized and also auto presses start, it doesnt wait for a player to press start, how can that be done in custom games?
Easy.
Continuously force UI keys during map initialization :3
off course with spammed wait functions
- Untitled Trigger 001
- Events
- Map initialization
- Conditions
- Actions
- Wait 1.00 seconds
- Game - Force Player 1 (Red) to press the key A
- Wait 1.00 seconds
- Game - Force Player 1 (Red) to press the key A
- Wait 1.00 seconds
- Game - Force Player 1 (Red) to press the key A
- Wait 1.00 seconds
- Game - Force Player 1 (Red) to press the key A
- Wait 1.00 seconds
- Game - Force Player 1 (Red) to press the key A
- Wait 1.00 seconds
- Game - Force Player 1 (Red) to press the key A
if you replace the generic screen you dont have to rpess a key.
But you have to test it in Multiplayer, in SP you always have to press a key.
function InitTrig_Melee_Initialization takes nothing returns nothing
loop
exitwhen udg_B == true
set udg_I = 1
loop
exitwhen udg_I > 12
call ForceUIKeyBJ(Player(udg_I), "A")
set udg_I = udg_I + 1
endloop
call TriggerSleepAction(1.00)
endloop
endfunction
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
set udg_B = true
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_Untitled_Trigger_001, 0)
call TriggerAddAction(gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions)
endfunction
Yes, by being a ladder game. Ladder games obviously have that mechanic hard coded, something you can not do via script alone.but when you play normal b.net ladder play games that pops up for you, i can be on the internet doing stuff and the game will auto pop for me when the game starts. Its pretty important for me to be able to do this. There must be a way if it does it for ladder eh