my trigger fuction
When map starting evry player pause and gotta click on 1 of these 4 button as :rush mode/mini supreme mode/supreme mode/rebirth mode!! but some how when i click on button it doesnt do anything :/ some1 could tell me what i did wrong ? im now thinking am i miss a trigger? should i make a trigger with an integer like but how srry if code is long ....... but u might understand more my problem than me
I dont really know how could i make a choose game trigger2 with udg button & interger without making it glitch with other integer that i already have in my map... wich mean start with integer 25 kind of
Edit: i made this .... but it dont work ..... mode are messed
When i click mini supreme all other game mode get on but not mini supreme .......
When map starting evry player pause and gotta click on 1 of these 4 button as :rush mode/mini supreme mode/supreme mode/rebirth mode!! but some how when i click on button it doesnt do anything :/ some1 could tell me what i did wrong ? im now thinking am i miss a trigger? should i make a trigger with an integer like but how srry if code is long ....... but u might understand more my problem than me
I dont really know how could i make a choose game trigger2 with udg button & interger without making it glitch with other integer that i already have in my map... wich mean start with integer 25 kind of
Edit: i made this .... but it dont work ..... mode are messed
When i click mini supreme all other game mode get on but not mini supreme .......
JASS:
function Trig_Rush_Game_Func013A takes nothing returns nothing
call DialogDisplayBJ(false,udg_dialog01,GetEnumPlayer())
endfunction
function Trig_Rush_Game_Func014C takes nothing returns boolean
return((udg_integer18>0))
endfunction
function Trig_Rush_Game_Func020C takes nothing returns boolean
return((udg_integer20>0))
endfunction
function Trig_Rush_Game_Func030C takes nothing returns boolean
return((udg_integer21>0))
endfunction
function Trig_Rush_Game_Func040C takes nothing returns boolean
return((udg_integer22>0))
endfunction
function Trig_Rush_Game_Actions takes nothing returns nothing
call SetPlayerHandicapXPBJ(Player(0),405.00)
call SetPlayerHandicapXPBJ(Player(1),400.00)
call SetPlayerHandicapXPBJ(Player(2),450.00)
call SetPlayerHandicapXPBJ(Player(3),450.00)
call SetPlayerHandicapXPBJ(Player(5),400.00)
call SetPlayerHandicapXPBJ(Player(6),400.00)
call SetPlayerHandicapXPBJ(Player(7),450.00)
call SetPlayerHandicapXPBJ(Player(8),450.00)
call SetPlayerHandicapXPBJ(Player(10),400.00)
call SetPlayerHandicapXPBJ(Player(4),400.00)
call SetPlayerHandicapXPBJ(Player(9),400.00)
call SetPlayerHandicapXPBJ(Player(11),420.00)
call DisableTrigger(GetTriggeringTrigger())
call SetUserControlForceOn(bj_FORCE_ALL_PLAYERS)
call DialogSetMessage(udg_dialog01,"DBZ Tribute Supreme")
set udg_buttons01[1]=DialogAddButtonBJ(udg_dialog01,"Rush")
set udg_buttons01[2]=DialogAddButtonBJ(udg_dialog01,"Mini Supreme")
set udg_buttons01[3]=DialogAddButtonBJ(udg_dialog01,"Supreme")
set udg_buttons01[4]=DialogAddButtonBJ(udg_dialog01,"Rebirth")
call EnableTrigger(udg_trigger07)
call TriggerSleepAction(8.00)
call DisableTrigger(udg_trigger07)
call PlaySoundBJ(udg_sound38)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Rush_Game_Func013A)
if(Trig_Rush_Game_Func014C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,8.00,"[|cffFFCC00Game Mode|r] |cffFF6633Rush|r [|cffFFCC00Game Mode|r]")
set udg_integer02=(udg_integer02+200)
call EnableTrigger(udg_trigger481)
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],8.00,"[|cffffcc00Info|r] Babidi gains half + 25 his required kill to release Buu since this is a rush game.")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],8.00,"[|cffffcc00Info|r] Since this is a rush game, Cell can automatically sense the androids at level 20 every 125 seconds.")
else
endif
if ( Trig_Rush_Game_Func020C() ) then
call EnableTrigger(udg_trigger07)
call TriggerSleepAction(8.00)
call DisableTrigger(udg_trigger07)
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,8.00,"[|cffFFCC00Game Mode|r] |cffFF6633Rebirth|r [|cffFFCC00Mini Supreme|r]")
set udg_MiniSupreme = true
call ConditionalTriggerExecute( gg_trg_mini_Supreme_mode )
set udg_MiniSupreme = true
call EnableTrigger( gg_trg_Mini_supreme_turn_off )
set udg_integer02=(udg_integer02+200)
call EnableTrigger(udg_trigger481)
call DestroyTrigger(udg_trigger06)
call DestroyTrigger(udg_trigger07)
call DestroyTrigger(GetTriggeringTrigger())
call DisableTrigger( GetTriggeringTrigger() )
else
endif
if ( Trig_Rush_Game_Func030C() ) then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,8.00,"[|cffFFCC00Game Mode|r] |cffFF6633Supreme|r [|cffFFCC00Game Mode|r]")
set udg_Supreme = true
call EnableTrigger(udg_trigger07)
call TriggerSleepAction(8.00)
call DisableTrigger(udg_trigger07)
call PlaySoundBJ(udg_sound38)
call EnableTrigger( gg_trg_lordslugspell )
call EnableTrigger( gg_trg_Zarbonspell )
call EnableTrigger( gg_trg_Janembaspell )
call EnableTrigger( gg_trg_red_ribbon_spell )
call EnableTrigger( gg_trg_Bio_Brolys_spell )
call EnableTrigger( gg_trg_Mature_Hildegarnspell )
call EnableTrigger( gg_trg_Hildegarnspell )
call EnableTrigger( gg_trg_Syn_Shenron_spell )
call EnableTrigger( gg_trg_Omega_Shenronspell )
call EnableTrigger( gg_trg_Nappa_Base )
call EnableTrigger( gg_trg_Raditz )
call EnableTrigger( gg_trg_Turles )
call EnableTrigger( gg_trg_Wheelo )
call EnableTrigger( gg_trg_future_17_spell )
call EnableTrigger( gg_trg_future_18_spell )
call EnableTrigger( gg_trg_future_cell_spell )
call EnableTrigger( gg_trg_Freizas_Spell )
call EnableTrigger( gg_trg_Turn_on_Random )
call EnableTrigger( gg_trg_Turn_off_Random )
set udg_Supreme = true
set udg_integer02=(udg_integer02+200)
call EnableTrigger(udg_trigger481)
call DestroyTrigger(udg_trigger06)
call DestroyTrigger(udg_trigger07)
call DestroyTrigger(GetTriggeringTrigger())
call DisableTrigger( GetTriggeringTrigger() )
else
endif
if ( Trig_Rush_Game_Func040C() ) then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,8.00,"[|cffFFCC00Game Mode|r] |cffFF6633Rebirth|r [|cffFFCC00Game Mode|r]")
call ConditionalTriggerExecute( gg_trg_Rebirth_mode_Copy )
set udg_rebirth = true
call EnableTrigger(udg_trigger07)
call TriggerSleepAction(8.00)
call DisableTrigger(udg_trigger07)
call PlaySoundBJ(udg_sound38)
call TriggerExecute( gg_trg_Rebirth_mode_Copy )
set udg_integer02=(udg_integer02+200)
call EnableTrigger(udg_trigger481)
call DestroyTrigger(udg_trigger06)
call DestroyTrigger(udg_trigger07)
call DestroyTrigger(GetTriggeringTrigger())
call DisableTrigger( GetTriggeringTrigger() )
else
endif
call DestroyTrigger(udg_trigger06)
call DestroyTrigger(udg_trigger07)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Choose_Game_Func014C takes nothing returns boolean
return((GetClickedButton()==udg_buttons01[1]))
endfunction
function Trig_Choose_Game_Func020C takes nothing returns boolean
return((GetClickedButton()==udg_buttons01[2]))
endfunction
function Trig_Choose_Game_Func030C takes nothing returns boolean
return((GetClickedButton()==udg_buttons01[3]))
endfunction
function Trig_Choose_Game_Func040C takes nothing returns boolean
return((GetClickedButton()==udg_buttons01[4]))
endfunction
function Trig_Choose_Game_Actions takes nothing returns nothing
set udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))]=true
if(Trig_Choose_Game_Func014C())then
set udg_integer18=(udg_integer18-1)
else
set udg_integer18=(udg_integer18+1)
endif
if(Trig_Choose_Game_Func020C())then
set udg_integer20=(udg_integer20-1)
else
set udg_integer20=(udg_integer20+1)
endif
if(Trig_Choose_Game_Func030C())then
set udg_integer21=(udg_integer21-1)
else
set udg_integer21=(udg_integer21+1)
endif
if(Trig_Choose_Game_Func040C())then
set udg_integer22=(udg_integer22-1)
else
set udg_integer22=(udg_integer22+1)
endif
call DialogDisplayBJ(false,udg_dialog01,GetTriggerPlayer())
endfunction
Last edited: