- Joined
- Jul 10, 2018
- Messages
- 383
Sorry for posting too many threads, but this is serious problem and i can't seem to fix it So my jazz code isn't running when putting Turn on This[Trigger_Example]
This is the Trigger Jazz
This is the Trigger Jazz
Code:
function Trig_O97661_Func001C takes nothing returns boolean
return(IsUnitGroupEmptyBJ(GetUnitsInRectOfPlayer(gg_rct_O42202,Player(9)))==true)
endfunction
function Trig_O97661_Func000C takes nothing returns nothing
call DestroyFogModifier(GetLastCreatedFogModifier())
endfunction
function Trig_O97661_Func002C takes nothing returns boolean
if(not(udg_O48120>=2))then
return false
endif
return true
endfunction
function Trig_O97661_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_O47978=GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,((GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" killed ")+GetUnitName(GetTriggerUnit())))
loop
exitwhen(Trig_O97661_Func001C())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,3.00))
endloop
call EndThematicMusicBJ()
call StopMusicBJ(false)
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call ForForce(GetPlayersAll(),function Trig_O97661_Func000C)
set udg_O23114[udg_O47978]=(udg_O23114[udg_O47978]+750)
call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_ATg1_0009)
call QuestSetCompleted(udg_O23214[2],true)
call EnableTrigger(gg_trg_O78299)
if(Trig_O97661_Func002C())then
call DisableTrigger(gg_trg_O76211)
call DestroyTrigger(gg_trg_O76211)
else
call DoNothing()
endif