• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Game Mode with Dialog Button(bug)

Status
Not open for further replies.
Level 10
Joined
Feb 20, 2008
Messages
448
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 o_O

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:
Level 10
Joined
Feb 20, 2008
Messages
448
Cuz i lost the original Script Broke so...... i reloaded a script from a nother map as Extrerted 1.5!!!! and jass are faster for me than gui :p i only needed to fix my Click button system o_O but idk how make the chosee game ,some1 made it for me and i dont really understand it ....thats why i can fix it and thast why its probly dont work!!!

so i need 3 other trigger that do same thing as Choose game but with other button o_O i dont know how figure it out canyou help me ? i already did the most

edit : i edit my trigger and somehow mode is mess..... when i click mini supreme all other mode get activate but not mini supreme.....same with other mode

clsoe this trigger evrytime i write a topics no1 answer and poeple 2 slow i find some1 that explain me what id id wrong and help me 2 set it up
 
Last edited:
Status
Not open for further replies.
Top