Name | Type | is_array | initial_value |
_Dialog | dialog | No | |
_Dialog2 | dialog | No | |
_DialogButton | button | Yes | |
_DialogLevel | integer | No | |
_DialogTimer | timer | No | |
_DialogTmpInteger | integer | No | |
_DialogTmpString | string | No | |
_Player_A_Ability | abilcode | Yes | |
_Player_A_Santa | boolean | Yes | |
BallLightning_CustomValue | integer | No | |
BallLightning_ForceEnd | boolean | Yes | |
BallLightning_Point | location | Yes | |
colorname | string | Yes | |
DeathHookCount | integer | No | |
DeathHookFoundInt | integer | No | |
DeathHookInt | integer | No | |
DeathHookUnit | unit | Yes | |
DeathHookWait01 | real | Yes | |
Func_PlaySound | sound | No | |
FV_ChAbilityMain | abilcode | No | A013 |
FV_Chronosphere_Caster | unit | No | |
FV_Chronosphere_Group | group | Yes | |
FV_Chronosphere_Point | location | Yes | |
FV_ChUnitEffect | unitcode | No | h007 |
Game_BountySharing | boolean | No | false |
Game_D | boolean | No | false |
Game_Fun | boolean | No | false |
Game_Lives | integer | No | 40 |
Game_ModeP | boolean | No | false |
Game_PathWolfL | unit | No | |
Game_PathWolfR | unit | No | |
Game_PCount | integer | No | |
Game_PCountPicked | integer | No | |
Game_PGroup | group | No | |
Game_PPicked | boolean | Yes | |
Game_Presents | boolean | No | true |
Game_PtmpGroup | group | No | |
Game_WTF | boolean | No | |
Goblinshop_offsetSnd | integer | No | |
LocalPlayer | player | No | |
Multiboard_TimerWnd | timerdialog | No | |
Mutliboard | multiboard | No | |
Player_Color | string | Yes | |
Player_Count | integer | No | |
Player_CurrentChat | string | Yes | |
Player_HasAccessDialog | boolean | Yes | |
Player_HasNecromastery | integer | Yes | |
Player_HasOrbOfBlood | boolean | Yes | |
Player_HasOrbOfDarkness | boolean | Yes | |
Player_HasOrbOfFire | boolean | Yes | |
Player_HasOrbOfLightning | boolean | Yes | |
Player_HasOrbOfVenom | boolean | Yes | |
Player_HasOrbOfWater | boolean | Yes | |
Player_HasWonSantaHat | boolean | Yes | |
Player_LastChat | string | Yes | |
Player_Leader | player | No | Player00 |
Player_LeaderSet | boolean | No | |
Player_Necromaster | unit | Yes | |
Player_Number | integer | Yes | |
Player_ReplaceableRandom | unit | Yes | |
Player_ShowKillsType | integer | Yes | 1 |
Player_Worker | unit | Yes | |
Shop_Poisonous | boolean | Yes | |
Shop_Radiance | boolean | Yes | |
T_Dark_Group | group | No | |
T_Fire_Group | group | No | |
T_Frost_Group | group | No | |
T_Money1_Group | group | Yes | |
T_Money2_Group | group | Yes | |
T_Money3_Group | group | Yes | |
T_Money4_Group | group | Yes | |
T_Money5_Group | group | Yes | |
T_Poison_Group | group | No | |
T_Radiance_LoopInt | integer | No | |
T_Radiance_SpecialEffect | effect | Yes | |
T_Radiance_SpecialEffect2 | effect | Yes | |
T_Radiance_Unit | unit | Yes | |
T_Radiance_UnitCount | integer | No | |
T_Radiance_UnitMainCaster | unit | Yes | |
T_Radiance_UnitTauren | unit | Yes | |
T_Radiance_Wait01 | real | Yes | |
T_Sniper_BlockBuildUnit | unit | Yes | |
T_Water_Group | group | No | |
tmpAbility | abilcode | No | |
tmpChance | integer | No | |
tmpInteger | integer | No | |
tmpInteger2 | integer | No | |
tmpItem | item | No | |
tmpLoc | location | No | |
tmpLoc2 | location | No | |
tmpLoc3 | location | No | |
tmpPlayerGroup | force | No | |
tmpPlayerGroup2 | force | No | |
tmpReal | real | No | |
tmpSound | sound | No | |
tmpSpecialEffect | effect | No | |
tmpSpecialEffect2 | effect | No | |
tmpString | string | No | |
tmpUnit | unit | No | |
tmpUnitGroup | group | No | |
Torrent_tmpLoc | location | No | |
Torrent_tmpPlayer | player | No | |
Torrent_tmpReal | real | No | |
TorrentCaster | unit | Yes | |
TorrentEffect | string | No | |
TorrentEffectAngle | real | No | |
TorrentEffectPoint | location | No | |
TorrentGroup | group | Yes | |
TorrentInstances | integer | No | |
TorrentInstances2 | integer | No | |
TorrentLevel | integer | Yes | |
TorrentPickedUnitPosition | location | No | |
TorrentPickingUnits | group | No | |
TorrentTargetPoint | location | Yes | |
TorrentUnits | group | No | |
WaveBounty | integer | No | 15 |
WaveCount | integer | No | |
WaveFlag_CantBeSlowed | boolean | No | |
WaveFlag_FireCreeps | boolean | No | |
WaveGroup | group | No | |
WaveNumber | integer | No | 1 |
WaveSEvaded | integer | No | |
WaveSKilled | integer | Yes | |
WaveStarted | boolean | No | |
WaveSTKilled | integer | No | |
WaveTimer | timer | No | |
WaveTmpCount | integer | No | |
WaveUnitType | unitcode | No | |
Weather_Global | weathereffect | No | |
WildAxesAngle | real | Yes | |
WildAxesB1T | integer | No | |
WildAxesBT2 | integer | No | |
WildAxesDummy | unit | Yes | |
WildAxesEquation | real | Yes | |
WildAxesGroup | group | Yes | |
WildAxesGroup1 | group | No | |
WildAxesHero | unit | Yes | |
WildAxesLoop | integer | No | |
WildAxesMain_Point | location | Yes | |
WildAxesMax_Distance | real | Yes | |
WildAxesOff | boolean | Yes | |
WildAxesOffset | real | Yes | |
WildAxesPart | integer | Yes | |
WildAxesPoint | location | Yes | |
WildAxesPositive | integer | Yes | |
WildAxesSpecial | effect | Yes | |
WildAxesSpeed | real | Yes | |
WildAxesTake_Dist | real | Yes | |
WildAxesTimes | integer | No |
function Trig_Trees_Revive_Actions takes nothing returns nothing
local destructable BADTREE = GetDyingDestructable()
call TriggerSleepAction( 25.00 )
call DestructableRestoreLife( BADTREE, GetDestructableMaxLife(BADTREE), true )
endfunction
function InitTrig_Trees_Revive takes nothing returns nothing
set gg_trg_Trees_Revive = CreateTrigger( )
call TriggerAddAction( gg_trg_Trees_Revive, function Trig_Trees_Revive_Actions )
endfunction
function Combine_Items_Conditions takes nothing returns boolean
return GetItemCharges(GetManipulatedItem()) > 0
endfunction
function Combine_Items_Actions takes nothing returns nothing
local item NEWITEM = GetManipulatedItem()
local unit OURUNIT = GetManipulatingUnit()
local integer MAXIMUM = 15 //The max no. of charges allowed
local integer ITEMCOUNT = 0
local integer ITEMLOOP = 0
local integer CHARGES = 0
loop
exitwhen ITEMLOOP > 6
if GetItemTypeId(NEWITEM) == GetItemTypeId(UnitItemInSlot(OURUNIT, ITEMLOOP)) then
if GetItemCharges(UnitItemInSlot(OURUNIT, ITEMLOOP)) + GetItemCharges(NEWITEM) <= MAXIMUM then
if not (UnitItemInSlot(OURUNIT, ITEMLOOP) == NEWITEM) then
set CHARGES = GetItemCharges(UnitItemInSlot(OURUNIT, ITEMLOOP)) + GetItemCharges(NEWITEM)
call SetItemCharges(UnitItemInSlot(OURUNIT, ITEMLOOP), CHARGES)
call RemoveItem(NEWITEM)
set ITEMLOOP = 7
endif
endif
endif
if (ITEMLOOP < 7) then
set ITEMLOOP = ITEMLOOP + 1
endif
endloop
set NEWITEM = null
set OURUNIT = null
endfunction
function InitTrig_Combine_Items takes nothing returns nothing
set gg_trg_Combine_Items = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combine_Items, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Combine_Items, Condition( function Combine_Items_Conditions ) )
call TriggerAddAction( gg_trg_Combine_Items, function Combine_Items_Actions )
endfunction
function Trig_Spawn_Effect_Func003Func003C takes nothing returns boolean
if ( not ( udg_tmpString == "" ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_Effect_Func003Func005Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnumUnit()) == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Spawn_Effect_Func003Func005A takes nothing returns nothing
if ( Trig_Spawn_Effect_Func003Func005Func001C() ) then
set udg_tmpLoc = GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ( udg_tmpLoc, udg_tmpString )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveLocation (udg_tmpLoc)
else
endif
endfunction
function Trig_Spawn_Effect_Func003Func008C takes nothing returns boolean
if ( ( StringCase(SubStringBJ(udg_Player_CurrentChat[GetConvertedPlayerId(GetTriggerPlayer())], 1, 8), false) == "-effect " ) ) then
return true
endif
if ( ( StringCase(SubStringBJ(udg_Player_CurrentChat[GetConvertedPlayerId(GetTriggerPlayer())], 1, 8), false) == "!effect " ) ) then
return true
endif
return false
endfunction
function Trig_Spawn_Effect_Func003C takes nothing returns boolean
if ( not Trig_Spawn_Effect_Func003Func008C() ) then
return false
endif
return true
endfunction
function Trig_Spawn_Effect_Actions takes nothing returns nothing
if ( udg_Game_Fun == false ) then
return
endif
call TriggerSleepAction( 0.02 )
if ( Trig_Spawn_Effect_Func003C() ) then
set udg_tmpString = SubStringBJ(udg_Player_CurrentChat[GetConvertedPlayerId(GetTriggerPlayer())], 9, StringLength(udg_Player_CurrentChat[GetConvertedPlayerId(GetTriggerPlayer())]))
set udg_tmpString = StringCase(udg_tmpString, false)
if ( Trig_Spawn_Effect_Func003Func003C() ) then
return
else
if ( udg_tmpString == "clap" ) then
set udg_tmpString = "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl"
endif
if ( udg_tmpString == "alil" ) then
set udg_tmpString = "Abilities\\Spells\\Items\\Alil\\AlilTarget.mdl"
endif
if ( udg_tmpString == "alam" ) then
set udg_tmpString = "Abilities\\Spells\\Items\\Alam\\AlamTarget.mdl"
endif
if ( udg_tmpString == "alre" ) then
set udg_tmpString = "Abilities\\Spells\\Items\\Alre\\AlreTarget.mdl"
endif
if ( udg_tmpString == "taunt" or udg_tmpString == "howl" ) then
set udg_tmpString = "Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl"
endif
if ( udg_tmpString == "awaken" ) then
set udg_tmpString = "Abilities\\Spells\\Other\\Awaken\\Awaken.mdl"
endif
if ( udg_tmpString == "toon" or udg_tmpString == "tome") then
set udg_tmpString = "Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl"
endif
if ( udg_tmpString == "death" or udg_tmpString == "dissipate") then
set udg_tmpString = "Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl"
endif
endif
set udg_tmpUnitGroup = GetUnitsSelectedAll(GetTriggerPlayer())
call ForGroupBJ( udg_tmpUnitGroup, function Trig_Spawn_Effect_Func003Func005A )
call DestroyGroup (udg_tmpUnitGroup)
set udg_tmpString = ""
else
endif
endfunction
//===========================================================================
function InitTrig_Spawn_Effect_Enter takes nothing returns nothing
set gg_trg_Spawn_Effect_Enter = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(0), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(1), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(2), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(3), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(4), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(5), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(6), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(7), "", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Spawn_Effect_Enter, Player(8), "", false )
call TriggerAddAction( gg_trg_Spawn_Effect_Enter, function Trig_Spawn_Effect_Actions )
endfunction
function Trig_Dark_Tower__o__Doom_Cast_Func007C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEventDamageSource()) == 'u013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEventDamageSource()) == 'u014' ) ) then
return true
endif
return false
endfunction
function Trig_Dark_Tower__o__Doom_Cast_Conditions takes nothing returns boolean
if ( not ( IsUnitInGroup(GetAttackedUnitBJ(), udg_T_Dark_Group) == true ) ) then
return false
endif
if ( not Trig_Dark_Tower__o__Doom_Cast_Func007C() ) then
return false
endif
return true
endfunction
function Trig_Dark_Tower__o__Doom_Cast_Func00DD takes nothing returns boolean
if ( udg_tmpChance < 10 ) then
return true
else
return false
endif
endfunction
function Trig_Dark_Tower__o__Doom_Cast_Actions takes nothing returns nothing
local unit DOOMER = GetEventDamageSource()
set udg_tmpChance = GetRandomInt(1, 100)
if ( Trig_Dark_Tower__o__Doom_Cast_Func00DD() ) then
call UnitAddAbilityBJ( 'A01G', DOOMER )
call IssueTargetOrderBJ( DOOMER , "doom", GetAttackedUnitBJ() )
call TriggerSleepAction( 0.8 )
call UnitRemoveAbilityBJ( 'A01G', DOOMER )
endif
endfunction
//===========================================================================
function InitTrig_Dark_Tower__o__Doom_Cast takes nothing returns nothing
set gg_trg_Dark_Tower__o__Doom_Cast = CreateTrigger( )
call TriggerAddCondition( gg_trg_Dark_Tower__o__Doom_Cast, Condition( function Trig_Dark_Tower__o__Doom_Cast_Conditions ) )
call TriggerAddAction( gg_trg_Dark_Tower__o__Doom_Cast, function Trig_Dark_Tower__o__Doom_Cast_Actions )
endfunction