ok i don't know much about jass and yeah there is no way to do this with gui.
so i have this trigger (its directly converted from the gui trigger so maybe it's not a good jass trigger at all) the only think which must be edited is the part where i wanna clarify P2. so i need something in this trigger like "if expired timer equal to timersolo[1] set P2 equal to 1". maybe someone could edit this trigger below?
function Trig_start_wave_solo_Kopieren_Func002Func005Func003C takes nothing returns boolean
if ( ( udg_LevelSolo[udg_P2] == 12 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 20 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 22 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 24 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 26 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 29 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 31 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 32 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 33 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 34 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 36 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 42 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 43 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 44 ) ) then
return true
endif
if ( ( udg_LevelSolo[udg_P2] == 47 ) ) then
return true
endif
return false
endfunction
function Trig_start_wave_solo_Kopieren_Func002Func005C takes nothing returns boolean
if ( not Trig_start_wave_solo_Kopieren_Func002Func005Func003C() ) then
return false
endif
return true
endfunction
function Trig_start_wave_solo_Kopieren_Func002Func006Func001C takes nothing returns boolean
if ( ( udg_LevelSolo[udg_P2] == 50 ) ) then
return true
endif
return false
endfunction
function Trig_start_wave_solo_Kopieren_Func002Func006C takes nothing returns boolean
if ( not Trig_start_wave_solo_Kopieren_Func002Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_start_wave_solo_Kopieren_Func002Func009C takes nothing returns boolean
if ( ( udg_LevelSolo[udg_P2] == ( udg_DoH[udg_P2] * 5 ) ) ) then
return true
endif
return false
endfunction
function Trig_start_wave_solo_Kopieren_Func002C takes nothing returns boolean
if ( not Trig_start_wave_solo_Kopieren_Func002Func009C() ) then
return false
endif
return true
endfunction
function Trig_start_wave_solo_Kopieren_Actions takes nothing returns nothing
set udg_P2 = 1
if ( Trig_start_wave_solo_Kopieren_Func002C() ) then
set udg_DoH[udg_P2] = ( udg_DoH[udg_P2] + 1 )
set udg_BossSolo[udg_P2] = ( udg_BossSolo[udg_P2] + 1 )
set udg_Masolo[udg_P2] = 25
call DisplayTextToForce( GetForceOfPlayer(udg_PArray[udg_P2]), udg_Wavemessage[udg_LevelSolo[udg_P2]] )
call DisplayTextToForce( GetForceOfPlayer(udg_PArray[udg_P2]), "TRIGSTR_4980" )
call TriggerSleepAction( 1.00 )
call EnableTrigger( udg_TArray2[udg_P2] )
call TriggerSleepAction( 10.00 )
call TriggerExecute( udg_TArray3[udg_P2] )
else
set udg_Masolo[udg_P2] = 50
call DisplayTextToForce( GetForceOfPlayer(udg_PArray[udg_P2]), udg_Wavemessage[udg_LevelSolo[udg_P2]] )
if ( Trig_start_wave_solo_Kopieren_Func002Func005C() ) then
set udg_Specialsolo[udg_P2] = ( udg_Specialsolo[udg_P2] + 1 )
call DisplayTextToForce( GetForceOfPlayer(udg_PArray[udg_P2]), udg_Wavespecial[udg_Specialsolo[udg_P2]] )
else
endif
if ( Trig_start_wave_solo_Kopieren_Func002Func006C() ) then
call DisplayTextToForce( GetForceOfPlayer(udg_PArray[udg_P2]), "TRIGSTR_4978" )
call DisplayTextToForce( GetForceOfPlayer(udg_PArray[udg_P2]), "TRIGSTR_4979" )
else
endif
call TriggerSleepAction( 1.00 )
call EnableTrigger( udg_TArray2[udg_P2] )
endif
endfunction
//===========================================================================
function InitTrig_start_wave_solo_Kopieren takes nothing returns nothing
set gg_trg_start_wave_solo_Kopieren = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_start_wave_solo_Kopieren, udg_TimerSolo[1] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_start_wave_solo_Kopieren, udg_TimerSolo[2] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_start_wave_solo_Kopieren, udg_TimerSolo[3] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_start_wave_solo_Kopieren, udg_TimerSolo[4] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_start_wave_solo_Kopieren, udg_TimerSolo[5] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_start_wave_solo_Kopieren, udg_TimerSolo[6] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_start_wave_solo_Kopieren, udg_TimerSolo[7] )
call TriggerRegisterTimerExpireEventBJ( gg_trg_start_wave_solo_Kopieren, udg_TimerSolo[8] )
call TriggerAddAction( gg_trg_start_wave_solo_Kopieren, function Trig_start_wave_solo_Kopieren_Actions )
endfunction