//TESH.scrollpos=0
//TESH.alwaysfold=0
function Wait takes real duration returns nothing
local timer t
local real timeRemaining
if (duration > 0) then
set t = CreateTimer()
call TimerStart(t, duration, false, null)
loop
set timeRemaining = TimerGetRemaining(t)
exitwhen timeRemaining <= 0
call TriggerSleepAction(.0001)
endloop
call DestroyTimer(t)
endif
endfunction
Name | Type | is_array | initial_value |
KillPlayerRange | real | No | |
KillUnitType | unitcode | Yes | |
Level10SlidingZombies | group | No | |
Level12AttackALots | unit | Yes | |
Level12Boolean | boolean | No | |
Level12TempInteger | integer | Yes | |
Level12TempUnit | unit | Yes | |
Level12ZombieMovement | group | No | |
Level16Spell3Boolean | boolean | No | |
Level16Spell3UnitGroupArray | group | Yes | |
Level2TempInteger | integer | No | |
Level3Regions | rect | Yes | |
Level4Regions | rect | Yes | |
Level6Destructibles | destructable | Yes | |
Level6DestructiblesInteger | integer | No | |
Level7Boolean2 | boolean | No | |
Level7TempBoolean | boolean | No | |
Level7TempUnitGroup | group | No | |
Level7TempUnits | unit | Yes | |
Level9LoopInteger | integer | No | |
Level9MoveReal | real | No | 5.00 |
Level9Rects | rect | Yes | |
LevelArea | location | No | |
LevelTempUnit | unit | No | |
LevelUoRectArray | rect | Yes | |
LevelUpInteger | integer | No | |
Lives | integer | No | |
LivesDialogButton | button | Yes | |
LivesDialogue | dialog | No | |
Lvl11IntegerLoop | integer | No | |
Lvl11MoveReal | real | No | 8.00 |
Lvl11RectsArray | rect | Yes | |
LVL11RectsTeleportFrom | rect | Yes | |
LVL11RectsTeleportTO | rect | Yes | |
Lvl11Sliding | group | No | |
LVL12BooleanArray | boolean | Yes | |
LVL12RegionArray | rect | Yes | |
LVL13CenterUnit | unit | No | |
Lvl13DisableRects | boolean | Yes | |
Lvl13Lever | destructable | Yes | |
Lvl13LeverInteger | integer | No | |
Lvl13LeverRects | rect | Yes | |
Lvl13LeversBoolean | boolean | Yes | |
Lvl15Active | boolean | No | true |
LVL15INTEGER | integer | Yes | |
Lvl15ZombiocalypseTimer | timer | No | |
Lvl16Integer | integer | No | 1 |
Lvl16Spell3CenterUnitArray | unit | Yes | |
Lvl3Integer | integer | No | |
Lvl4Integer | integer | No | |
Lvl4Integer2 | integer | No | 10 |
LVL7Boolean | boolean | Yes | |
LVL7RegionArray | rect | Yes | |
LVL8DisableLVL7Boolean | boolean | No | |
LVL9UnitGroups | group | Yes | |
PlayerUnits | unit | Yes | |
RemoveMe | unit | Yes | |
Sct | integer | No | |
Sct2 | boolean | No | |
SoundArray | sound | Yes | |
TempInteger | integer | No | |
TempInteger2 | integer | No | |
TempPoint | location | No | |
TempPoint2 | location | No | |
TempPoint3 | location | No | |
TempReal | real | No | |
TempReal2 | real | No | |
TempReal3 | real | No | |
TempRegion | rect | Yes | |
TempTimer | timer | No | |
TempUnitGroup | group | No | |
TheOverWhelming | string | No | |
TheOverWhelming2 | integer | No | |
UnitGroupPlayers | group | No | |
ZZZLich | unit | No |
//TESH.scrollpos=11
//TESH.alwaysfold=0
function Trig_InitializationJASS_Func001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_InitializationJASS_Func001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_InitializationJASS_Func001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_InitializationJASS_Func001001001001(), Trig_InitializationJASS_Func001001001002() )
endfunction
function Trig_InitializationJASS_Func001A takes nothing returns nothing
call TriggerRegisterPlayerChatEvent( gg_trg_TheOverWhelming, GetEnumPlayer(), "Weyr the OverWhelming", true )
endfunction
function Trig_InitializationJASS_Actions takes nothing returns nothing
call ForForce( GetPlayersMatching(Condition(function Trig_InitializationJASS_Func001001001)), function Trig_InitializationJASS_Func001A )
endfunction
//===========================================================================
function InitTrig_InitializationJASS takes nothing returns nothing
set gg_trg_InitializationJASS = CreateTrigger( )
call TriggerAddAction( gg_trg_InitializationJASS, function Trig_InitializationJASS_Actions )
endfunction
function Trig_TheOverWhelming_Actions takes nothing returns nothing
set udg_TheOverWhelming2 = ( udg_TheOverWhelming2 + 1 )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_TheOverWhelming takes nothing returns nothing
set gg_trg_TheOverWhelming = CreateTrigger( )
call TriggerAddAction( gg_trg_TheOverWhelming, function Trig_TheOverWhelming_Actions )
endfunction
//TESH.scrollpos=6
//TESH.alwaysfold=0
function Trig_TheOverWhelming2_Conditions takes nothing returns boolean
if ( not ( GetManipulatedItem() == GetItemOfTypeFromUnitBJ(GetTriggerUnit(), 'I000') ) ) then
return false
endif
if ( not ( udg_TheOverWhelming2 < 2 ) ) then
return false
endif
return true
endfunction
function Trig_TheOverWhelming2_Actions takes nothing returns nothing
call UnitRemoveItemSwapped( GetManipulatedItem(), GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_TheOverWhelming2 takes nothing returns nothing
set gg_trg_TheOverWhelming2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_TheOverWhelming2, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_TheOverWhelming2, Condition( function Trig_TheOverWhelming2_Conditions ) )
call TriggerAddAction( gg_trg_TheOverWhelming2, function Trig_TheOverWhelming2_Actions )
endfunction