function SaveLoad_InitialSetup takes nothing returns nothing
local integer i = 0
local integer j = 0
loop
set udg_SaveLoad_Compress[i + 48] = j
set udg_SaveLoad_Uncompress[i] = i + 48
set j = j + 1
set i = i + 1
exitwhen i >= 10
endloop
set i = 0
loop
set udg_SaveLoad_Compress[i + 97] = j
set udg_SaveLoad_Compress[i + 65] = j + 26
set udg_SaveLoad_Uncompress[i + 10] = i + 97
set udg_SaveLoad_Uncompress[i + 26 + 10] = i + 65
set j = j + 1
set i = i + 1
exitwhen i >= 26
endloop
endfunction
function SaveLoad_Id2CId takes integer n returns integer
local integer i = n / (256 * 256 * 256)
local integer r
set n = n - i * (256 * 256 * 256)
set r = udg_SaveLoad_Compress[i]
set i = n / (256 * 256)
set n = n - i * (256 * 256)
set r = r * 64 + udg_SaveLoad_Compress[i]
set i = n / 256
set r = r * 64 + udg_SaveLoad_Compress[i]
return r * 64 + udg_SaveLoad_Compress[n - i * 256]
endfunction
function SaveLoad_CId2Id takes integer n returns integer
local integer i = n / (64 * 64 * 64)
local integer r
set n = n - i * (64 * 64 * 64)
set r = udg_SaveLoad_Uncompress[i]
set i = n / (64 * 64)
set n = n - i * (64 * 64)
set r = r * 256 + udg_SaveLoad_Uncompress[i]
set i = n / 64
set r = r * 256 + udg_SaveLoad_Uncompress[i]
return r * 256 + udg_SaveLoad_Uncompress[n - i * 64]
endfunction
function SaveLoad_Item2Integer takes item t returns integer
local integer i = 0
local integer n = GetItemTypeId(t)
if udg_SaveLoad_Initialized == false then
set udg_SaveLoad_Initialized = true
call SaveLoad_InitialSetup()
endif
loop
set i = i + 1
exitwhen i > udg_SaveLoad_Items_LastIndex
if udg_SaveLoad_Items[i] == n then
return i
endif
endloop
return SaveLoad_Id2CId(n)
endfunction
function SaveLoad_Integer2Item takes integer i returns integer
if udg_SaveLoad_Initialized == false then
set udg_SaveLoad_Initialized = true
call SaveLoad_InitialSetup()
endif
if i <= udg_SaveLoad_Items_LastIndex then
return udg_SaveLoad_Items[i]
endif
return SaveLoad_CId2Id(i)
endfunction
function SaveLoad_Color takes string s returns string
local integer i = StringLength(s)
local string c
local string r = ""
loop
set i = i - 1
set c = SubString(s,i,i + 1)
if c == "0" or c == "1" or c == "2" or c == "3" or c == "4" or c == "5" or c == "6" or c == "7" or c == "8" or c == "9" then
set r = "|cffff9999" + c + "|r" + r
elseif c == "-" then
set r = "|cffdddddd-|r" + r
elseif c == "a" or c == "b" or c == "c" or c == "d" or c == "e" or c == "f" or c == "g" or c == "h" or c == "i" or c == "j" or c == "k" or c == "l" or c == "m" or c == "n" or c == "o" or c == "p" or c == "q" or c == "r" or c == "s" or c == "t" or c == "u" or c == "v" or c == "w" or c == "x" or c == "y" or c == "z" then
set r = "|cff99ff99" + c + "|r" + r
elseif c == "A" or c == "B" or c == "C" or c == "D" or c == "E" or c == "F" or c == "G" or c == "H" or c == "I" or c == "J" or c == "K" or c == "L" or c == "M" or c == "N" or c == "O" or c == "P" or c == "Q" or c == "R" or c == "S" or c == "T" or c == "U" or c == "V" or c == "W" or c == "X" or c == "Y" or c == "Z" then
set r = "|cff9999ff" + c + "|r" + r
else
set r = c + r
endif
exitwhen i <= 0
endloop
return r
endfunction
function SaveLoad_EncodeChar takes string n returns integer
local integer i = 0
local string s1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
local string s2 = "abcdefghijklmnopqrstuvwxyz"
local string s3 = "0123456789"
loop
if SubString(s1,i,i + 1) == n then
return i
endif
if SubString(s2,i,i + 1) == n then
return i
endif
set i = i + 1
exitwhen i >= 26
endloop
set i = 0
loop
if SubString(s3,i,i + 1) == n then
return i
endif
set i = i + 1
exitwhen i >= 10
endloop
return 0
endfunction
function SaveLoad_EncodeVerify takes string buffer returns integer
local integer i = 0
local integer j = 0
local string name = GetPlayerName(GetTriggerPlayer())
if udg_SaveLoad_UsePlayername == true then
loop
set j = j + SaveLoad_EncodeChar(SubString(name,i,i + 1))
set i = i + 1
exitwhen i >= StringLength(name)
endloop
endif
set i = 0
loop
set j = j + SaveLoad_EncodeChar(SubString(buffer,i,i + 1))
set i = i + 1
exitwhen i >= StringLength(buffer)
endloop
return j
endfunction
function SaveLoad_EncodeValues takes nothing returns string
local integer i
local integer j
local integer k
local integer l
local integer m
local integer CodeLength = StringLength(udg_SaveLoad_Alphabet)
local integer array a
local string buffer = ""
local string c = ""
local integer skip = 0
local integer CONST = 1000000
local string abc = "0123456789"
set i = 0
loop
set i = i + 1
exitwhen i > udg_SaveCount
set buffer = buffer + I2S(udg_Save[i]) + "-"
endloop
set buffer = buffer + I2S(SaveLoad_EncodeVerify(buffer))
if udg_Save[1] == 0 then
set buffer = "-" + buffer
endif
set i = 0
loop
set a[i] = 0
set i = i + 1
exitwhen i >= 100
endloop
set m = 0
set i = 0
loop
set j = 0
loop
set a[j] = a[j] * 11
set j = j + 1
exitwhen j > m
endloop
set l = 0
set c = SubString(buffer,i,i + 1)
loop
exitwhen SubString(abc,l,l + 1) == c
set l = l + 1
exitwhen l > 9
endloop
set a[0] = a[0] + l
set j = 0
loop
set k = a[j] / CONST
set a[j] = a[j] - k * CONST
set a[j + 1] = a[j + 1] + k
set j = j + 1
exitwhen j > m
endloop
if k > 0 then
set m = m + 1
endif
set i = i + 1
exitwhen i >= StringLength(buffer)
endloop
set buffer = ""
loop
exitwhen m < 0
set j = m
loop
exitwhen j <= 0
set k = a[j] / CodeLength
set a[j - 1] = a[j - 1] + (a[j] - k * CodeLength) * CONST
set a[j] = k
set j = j - 1
endloop
set k = a[j] / CodeLength
set i = a[j] - k * CodeLength
set buffer = buffer + SubString(udg_SaveLoad_Alphabet,i,i + 1)
set a[j] = k
if a[m] == 0 then
set m = m - 1
endif
endloop
set i = StringLength(buffer)
set skip = 0
set c = ""
loop
set i = i - 1
set c = c + SubString(buffer,i,i + 1)
set skip = skip + 1
if skip == 4 and i > 0 then
set c = c + "-"
set skip = 0
endif
exitwhen i <= 0
endloop
return c
endfunction
function SaveLoad_DecodeValues takes string s returns boolean
local integer i
local integer j
local integer k
local integer l
local integer SaveCode = 0
local integer m
local integer array a
local string buffer = ""
local integer CodeLength = StringLength(udg_SaveLoad_Alphabet)
local integer skip = -1
local integer CONST = 1000000
local string abc = "0123456789-"
local string c
set i = 0
loop
set a[i] = 0
set i = i + 1
exitwhen i >= 100
endloop
set m = 0
set i = 0
loop
set j = 0
loop
set a[j] = a[j] * CodeLength
set j = j + 1
exitwhen j > m
endloop
set skip = skip + 1
if skip == 4 then
set skip = 0
set i = i + 1
endif
set l = CodeLength
set c = SubString(s,i,i + 1)
loop
set l = l - 1
exitwhen l < 1
exitwhen SubString(udg_SaveLoad_Alphabet,l,l + 1) == c
endloop
set a[0] = a[0] + l
set j = 0
loop
set k = a[j] / CONST
set a[j] = a[j] - k * CONST
set a[j + 1] = a[j + 1] + k
set j = j + 1
exitwhen j > m
endloop
if k > 0 then
set m = m + 1
endif
set i = i + 1
exitwhen i >= StringLength(s)
endloop
loop
exitwhen m < 0
set j = m
loop
exitwhen j <= 0
set k = a[j] / 11
set a[j - 1] = a[j - 1] + (a[j] - k * 11) * CONST
set a[j] = k
set j = j - 1
endloop
set k = a[j] / 11
set i = a[j] - k * 11
set buffer = SubString(abc,i,i + 1) + buffer
set a[j] = k
if a[m] == 0 then
set m = m - 1
endif
endloop
set i = 0
set j = 0
loop
loop
exitwhen i >= StringLength(buffer)
exitwhen i > 0 and SubString(buffer,i,i + 1) == "-" and SubString(buffer,i - 1,i) != "-"
set i = i + 1
endloop
if i < StringLength(buffer) then
set k = i
endif
set SaveCode = SaveCode + 1
set udg_Save[SaveCode] = S2I(SubString(buffer,j,i))
set j = i + 1
set i = i + 1
exitwhen i >= StringLength(buffer)
endloop
set j = SaveLoad_EncodeVerify(SubString(buffer,0,k))
set udg_SaveCount = SaveCode - 1
if j == udg_Save[SaveCode] then
return true
endif
return false
endfunction
function SaveLoad_Encode takes nothing returns string
if udg_SaveLoad_CaseSensitive == false then
set udg_SaveLoad_Alphabet = StringCase(udg_SaveLoad_Alphabet,true)
endif
return SaveLoad_EncodeValues()
endfunction
function SaveLoad_Decode takes string s returns boolean
if udg_SaveLoad_CaseSensitive == false then
set udg_SaveLoad_Alphabet = StringCase(udg_SaveLoad_Alphabet,true)
set s = StringCase(s,true)
endif
if SaveLoad_DecodeValues(s) then
return true
endif
return false
endfunction
function WriteToFile takes nothing returns nothing
call PreloadGenClear()
call PreloadGenStart()
if udg_ImpossibleMode == true then
call Preload("\n\nCode:\n-imposs " + udg_ColorlessCode + "\n\n\n")
elseif udg_InsaneMode == true then
call Preload("\n\nCode:\n-insane " + udg_ColorlessCode + "\n\n\n")
elseif udg_HardMode == true then
call Preload("\n\nCode:\n-hard " + udg_ColorlessCode + "\n\n\n")
else
call Preload("\n\nCode:\n-normal " + udg_ColorlessCode + "\n\n\n")
endif
call PreloadGenEnd(udg_SaveLoad_FileName + ".txt")
endfunction
function SaveLoad_SaveAttributes takes nothing returns integer
return (udg_SaveLoad_BonusAttribute[1] * 10000) + (udg_SaveLoad_BonusAttribute[2] * 100) + udg_SaveLoad_BonusAttribute[3]
endfunction
function SaveLoad_SaveSpells takes unit u returns integer
local integer a
local integer b
local integer c
local integer d
local integer i
local integer j
set i = 0
loop
exitwhen i > 5
if GetUnitTypeId(u) == udg_SaveLoad_HeroType[i] then
set j = i
set i = 5
endif
set i = i + 1
endloop
set a = ( GetUnitAbilityLevelSwapped(udg_SaveLoad_Ability1[j], u) * 1000 )
set b = ( GetUnitAbilityLevelSwapped(udg_SaveLoad_Ability2[j], u) * 100 )
set c = ( GetUnitAbilityLevelSwapped(udg_SaveLoad_Ability3[j], u) * 10 )
set d = ( GetUnitAbilityLevelSwapped(udg_SaveLoad_Ability4[j], u))
return a + b + c + d
endfunction
function SaveLoad_GetItemChargeInSlot takes unit u, integer s returns integer
local integer n
if ( UnitItemInSlotBJ(u, s) == null ) then
return 0
else
set n = GetItemCharges(UnitItemInSlotBJ(u, s))
if ( n == 0 ) then
return 1
else
return n+1
endif
endif
endfunction
function SaveLoad_SaveCharges takes unit u returns integer
local integer a
local integer b
local integer c
local integer d
local integer e
local integer f
set a = SaveLoad_GetItemChargeInSlot(u, 1) * 100000
set b = SaveLoad_GetItemChargeInSlot(u, 2) * 10000
set c = SaveLoad_GetItemChargeInSlot(u, 3) * 1000
set d = SaveLoad_GetItemChargeInSlot(u, 4) * 100
set e = SaveLoad_GetItemChargeInSlot(u, 5) * 10
set f = SaveLoad_GetItemChargeInSlot(u, 6)
return a + b + c + d + e + f
endfunction
function SaveLoad_SaveItemsA takes unit u returns integer
local integer a
local integer b
local integer c
set a = SaveLoad_Item2Integer( UnitItemInSlotBJ(u, 1) ) * 1000000
set b = SaveLoad_Item2Integer( UnitItemInSlotBJ(u, 2) ) * 1000
set c = SaveLoad_Item2Integer( UnitItemInSlotBJ(u, 3) )
return a + b + c
endfunction
function SaveLoad_SaveItemsB takes unit u returns integer
local integer a
local integer b
local integer c
set a = SaveLoad_Item2Integer( UnitItemInSlotBJ(u, 4) ) * 1000000
set b = SaveLoad_Item2Integer( UnitItemInSlotBJ(u, 5) ) * 1000
set c = SaveLoad_Item2Integer( UnitItemInSlotBJ(u, 6) )
return a + b + c
endfunction
function SaveLoad_LearnSpell takes unit u, integer a, integer i returns nothing
local integer j
if (i >= 0) then
set j = 1
loop
exitwhen j > i
call SelectHeroSkill( u, a)
set j = j + 1
endloop
endif
endfunction
function SaveLoad_LoadSpells takes integer c, unit u returns nothing
local integer i
local integer j
set i = 0
loop
exitwhen i > 5
if GetUnitTypeId(u) == udg_SaveLoad_HeroType[i] then
set j = i
set i = 5
endif
set i = i + 1
endloop
call SaveLoad_LearnSpell(u, udg_SaveLoad_Ability1[j], ModuloInteger(( c / 1000 ), 10))
call SaveLoad_LearnSpell(u, udg_SaveLoad_Ability2[j], ModuloInteger(( c / 100 ), 10))
call SaveLoad_LearnSpell(u, udg_SaveLoad_Ability3[j], ModuloInteger(( c / 10 ), 10))
call SaveLoad_LearnSpell(u, udg_SaveLoad_Ability4[j], ModuloInteger(( c ), 10))
endfunction
function SaveLoad_AddItem takes integer x, unit u returns nothing
call UnitAddItemByIdSwapped( x, u )
if ( UnitHasItem(u, GetLastCreatedItem()) == false ) then
call SaveLoad_AddItem( x, u )
endif
endfunction
function SaveLoad_LoadItems takes integer c, unit u returns nothing
call SaveLoad_AddItem( SaveLoad_Integer2Item( ModuloInteger(( c / 1000000 ), 1000) ), u)
call SaveLoad_AddItem( SaveLoad_Integer2Item( ModuloInteger(( c / 1000 ), 1000) ), u)
call SaveLoad_AddItem( SaveLoad_Integer2Item( ModuloInteger(( c ), 1000) ), u)
endfunction
function SaveLoad_RemoveDummyItem takes integer s, unit u returns nothing
if ( GetItemTypeId(UnitItemInSlotBJ(u, s)) == udg_SaveLoad_Items[0] ) then
call RemoveItem( UnitItemInSlotBJ(u, s) )
endif
endfunction
function SaveLoad_LoadCharges takes integer c, unit u returns nothing
call SaveLoad_RemoveDummyItem(1, u)
call SaveLoad_RemoveDummyItem(2, u)
call SaveLoad_RemoveDummyItem(3, u)
call SaveLoad_RemoveDummyItem(4, u)
call SaveLoad_RemoveDummyItem(5, u)
call SaveLoad_RemoveDummyItem(6, u)
call SetItemCharges( UnitItemInSlotBJ(u, 1), ModuloInteger(( c / 100000 ), 10) - 1 )
call SetItemCharges( UnitItemInSlotBJ(u, 2), ModuloInteger(( c / 10000 ), 10) - 1 )
call SetItemCharges( UnitItemInSlotBJ(u, 3), ModuloInteger(( c / 1000 ), 10) - 1 )
call SetItemCharges( UnitItemInSlotBJ(u, 4), ModuloInteger(( c / 100 ), 10) - 1 )
call SetItemCharges( UnitItemInSlotBJ(u, 5), ModuloInteger(( c / 10 ), 10) - 1 )
call SetItemCharges( UnitItemInSlotBJ(u, 6), ModuloInteger(( c ), 10) - 1 )
endfunction
function SaveLoad_LoadAttributes takes integer c returns nothing
set udg_SaveLoad_BonusAttribute[1] = ModuloInteger(( c / 10000 ), 100)
set udg_SaveLoad_BonusAttribute[2] = ModuloInteger(( c / 100 ), 100)
set udg_SaveLoad_BonusAttribute[3] = ModuloInteger(( c ), 100)
endfunction
Name | Type | is_array | initial_value |
AbilityArtillery | abilcode | No | |
AbilityArtillery_Copy | abilcode | No | |
AbilityArtilleryDummy | abilcode | No | |
AbilityArtilleryTarget | unitcode | No | |
AbilityBlessingOfMight | abilcode | No | |
AbilityBlessingOfMight_Copy | abilcode | No | |
AbilityBlessingOfMightBuff | buffcode | No | |
AbilityBlessingOfMightDummy | abilcode | No | |
AbilityBlessingOfMightGroup | group | No | |
AbilityBlessingOfMightHash | hashtable | No | |
AbilityCommandUnit | unitcode | No | |
AbilityFalricDummy | unitcode | No | |
AbilityReflect | abilcode | No | |
AbilityReflect_Copy | abilcode | No | |
AbilityShieldBash | abilcode | No | |
AbilityShieldBash_Copy | abilcode | No | |
AbilityShieldBashDummy | abilcode | No | |
AlterHINT | effect | No | |
Arthas_Discovery_Point | location | No | |
Arthas_Launch_Point | location | No | |
ArthasBackup | unit | No | |
ArthasDenials | real | No | |
ArthasReturnPoint | location | No | |
ArthasVariable | unit | No | |
BarracksTimer | timer | No | |
BarracksTrainUnit | boolean | No | |
BootingPlayer | boolean | No | false |
Boss_Group | group | No | |
Boss_Point | location | No | |
Boss_Point_B | location | No | |
Boss_Spawn_Chance | integer | No | |
Boss_Spawn_Chance_B | integer | No | |
Buildings1 | group | No | |
Buildings2 | group | No | |
Buildings3 | group | No | |
Buildings4 | group | No | |
Buildings5 | group | No | |
BuildingsGone | boolean | No | false |
BuildingsToAttackArray | group | Yes | |
camera_bug | camerasetup | No | |
CinArthas | unit | No | |
CinMalganis | unit | No | |
CinVillager1 | unit | No | |
CinVillager2 | unit | No | |
Citizen_Run_Init_A | integer | No | |
Citizen_Run_Init_B | integer | No | |
Citizen_Run_Init_C | integer | No | |
Citizen_Run_Speed | real | No | |
Citizen_Target | unit | No | |
Citizen_Target_Point | location | No | |
CitizenRunTrue | boolean | No | |
Citizens | group | Yes | |
Code | string | No | |
ColorlessCode | string | No | |
CurrentCamera | camerasetup | No | |
Cutscene_Active_Int | integer | No | |
Cutscene_Barracks_Int | integer | No | |
DeathsOfDeathSquad | real | No | 0.00 |
DEBUGArthasSize | real | No | 90.00 |
DestroyedBuilding | unit | No | |
Discover_Citizen_A | location | No | |
Discover_Citizen_B | location | No | |
Discover_Citizen_C | location | No | |
EndCinematicPlaying | boolean | No | false |
Escape | boolean | No | |
Failure_Group | group | No | |
Failure_Point | location | No | |
FailureCinSkip | boolean | No | false |
Falric | unit | No | |
FIRE01A2 | group | No | |
FIRE01B | group | No | |
FIRE01C | group | No | |
FIRE01D | group | No | |
FIRE01D2 | group | No | |
FIRE01E | group | No | |
FIRE01F | group | No | |
FIRE01G | group | No | |
FIRE01H | group | No | |
FIRE02A | group | No | |
FIRE02B | group | No | |
FIRE02B1 | group | No | |
FIRE02B2 | group | No | |
FIRE02C | group | No | |
FIRE02D | group | No | |
FIRE02D1 | group | No | |
FIRE02D2 | group | No | |
FIRE02E | group | No | |
FIRE02E1 | group | No | |
FIRE02E2 | group | No | |
FIRE02F | group | No | |
FIRE02F1 | group | No | |
FIRE02G | group | No | |
FIRE03A | group | No | |
FIRE03B1 | group | No | |
FIRE03B2 | group | No | |
FIRE03C1 | group | No | |
FIRE03C2 | group | No | |
FIRE03D | group | No | |
FIRE03E1 | group | No | |
FIRE03E2 | group | No | |
FIRE04A | group | No | |
FIRE04B1 | group | No | |
FIRE04B2 | group | No | |
Fire_Rat_Group | group | No | |
Fire_Rat_Point | location | No | |
Fire_Rat_Point_B | location | No | |
Fire_Rat_Sound_Chance | integer | No | |
Fire_Rat_Unit | unit | No | |
Fire_Rats_Init_Group | group | No | |
FIRERATS | group | No | |
GameOver | boolean | No | false |
Gate_Attack_Point | location | Yes | |
Gate_Attack_Unit | unit | No | |
Gate_Repel_Damage | integer | No | |
Gate_Repel_Damage_Group | group | No | |
Gate_Repel_Damage_Point | location | No | |
Gate_Repel_Damage_Unit | unit | No | |
Gate_Repel_Point | location | Yes | |
Gate_Repel_Unit | unit | No | |
Ghouls_Rove_Point_A | location | No | |
Ghouls_Rove_Point_B | location | No | |
Ghouls_Rove_Point_C | location | No | |
Ghouls_Spawn_Point_A | location | No | |
Ghouls_Spawn_Point_B | location | No | |
Ghouls_Spawn_Point_C | location | No | |
Ghouls_Target_Point_A | location | No | |
Ghouls_Target_Point_B | location | No | |
Ghouls_Target_Point_C | location | No | |
Gorger_60_Int | integer | No | |
Gorger_90_Int | integer | No | |
Gorger_Death_Int | integer | No | |
Gorger_Death_Point | location | No | |
Gorger_House_Unit | unit | No | |
Gorger_Killer_Point | location | No | |
Gorger_Spawn_Point | location | No | |
Gorger_Win_Group | group | No | |
Gorger_Win_Group_B | group | No | |
Gorger_Win_Point | location | No | |
Gorger_Win_Point_B | location | No | |
HardMode | boolean | No | |
Hero1 | unit | No | |
Hero2 | unit | No | |
HideUnits | group | No | |
ImpossibleMode | boolean | No | |
InsaneMode | boolean | No | |
InsaneMode_Copy | boolean | No | |
IntroCancel | boolean | No | false |
InvulBuilding_V | unit | No | |
JainaVariable | unit | No | |
JainFade | real | No | |
Lost_Patrol_Camp_A | location | No | |
Lost_Patrol_Camp_B | location | No | |
Lost_Patrol_Point | location | No | |
Lost_Patrol_Point_B | location | No | |
MalGanis_Auto_Int | integer | No | |
MalGanis_Death_Int | integer | No | |
MalGanis_Death_Point | location | No | |
MalGanis_Mid_Int | integer | No | |
MalganisAttackTimer | timer | No | |
MalganisCaptainX | real | No | |
MalganisCaptainY | real | No | |
MalganisConversions | real | No | |
MalganisCountdown | timerdialog | No | |
MalganisDeathSquad | group | No | |
MalganisDoingConvertion | boolean | No | |
MalganisFade | real | No | 100.00 |
MalganisFadeOut | real | No | |
MalganisFirstTeleCinSkip | boolean | No | false |
MalganisGloatCin | boolean | No | false |
MalganisTargetHouse | unit | No | |
MalganisTargetHouseX | real | No | |
MalganisTargetHouseY | real | No | |
MalganisTimer | timer | No | |
MalganisVariable | unit | No | |
MalMid | effect | No | |
Marker_Primary | minimapicon | No | |
MaySendCommands | boolean | No | true |
MedivhFade | real | No | |
MidCinematicPlaying | boolean | No | false |
MidDarkAgents | sound | No | |
Militia_1_NoGanis_Group | group | No | |
Militia_1_NoGanis_Group_B | group | No | |
Militia_1_NoGanis_Int | integer | No | |
Militia_1_NoGanis_Point | location | No | |
Militia_1_NoGanis_Point_B | location | No | |
Militia_1_NoGanis_Point_C | location | No | |
Militia_1_NoGanis_Point_D | location | No | |
Militia_Engage_Int | integer | No | |
Militia_Suit_Int | integer | No | |
Neutral_Smart_Order | boolean | No | |
Neutral_Smart_Unit | unit | No | |
NextSquad | integer | No | 1 |
Observ_Unit | unit | No | |
Observ_Units | group | No | |
P1 | player | No | |
P2 | player | No | |
Plague_Cloud_Buildings | group | No | |
PlaguedBuildings | group | No | |
Player_House_Kills | integer | No | |
PlayerCameraPosition | location | No | |
Quest_Prepare_Order_Int | integer | No | |
Quest_Stratholme | quest | No | |
Quest_Stratholme_A | questitem | No | |
Quest_Stratholme_B | questitem | No | |
Quest_Stratholme_C | questitem | No | |
Quest_Stratholme_D | questitem | No | |
Rain | weathereffect | No | |
RANDOMINTEGER | integer | No | |
RegionBucket | integer | No | 1 |
RegionLength | integer | No | |
RegionPicked | rect | No | |
RegionsArray | rect | Yes | |
Repair_Hint_Group | group | No | |
Repair_Hint_Point | location | No | |
Repair_Hint_Unit | unit | No | |
Repo_Int | integer | No | |
ResControlInt | integer | No | |
RevivalAltar | unit | No | UnitNull |
Salramm_Death_Int | integer | No | |
Salramm_Death_Point | location | No | |
Salramm_Ghoul_Count | integer | No | |
Salramm_Group | group | No | |
Salramm_House_Unit | unit | No | |
Salramm_Houses_Int | integer | No | |
Salramm_Int | integer | No | |
Salramm_Killer_Point | location | No | |
Salramm_Last_Int | integer | No | |
Salramm_Spawn_Point | location | No | |
Salramm_Win_Group | group | No | |
Salramm_Win_Group_B | group | No | |
Salramm_Win_Group_C | group | No | |
Salramm_Win_Point | location | No | |
Salramm_Win_Point_B | location | No | |
Save | integer | Yes | |
SaveCount | integer | No | |
SaveLoad_Ability1 | abilcode | Yes | |
SaveLoad_Ability2 | abilcode | Yes | |
SaveLoad_Ability3 | abilcode | Yes | |
SaveLoad_Ability4 | abilcode | Yes | |
SaveLoad_Alphabet | string | No | |
SaveLoad_AttributeAbility | abilcode | Yes | |
SaveLoad_BonusAttribute | integer | Yes | |
SaveLoad_CaseSensitive | boolean | No | |
SaveLoad_Compress | integer | Yes | |
SaveLoad_CustomHeroType | unitcode | No | |
SaveLoad_CustomHeroType_Copy | unitcode | No | |
SaveLoad_FileName | string | No | |
SaveLoad_HeroType | unitcode | Yes | |
SaveLoad_Initialized | boolean | No | |
SaveLoad_Items | itemcode | Yes | |
SaveLoad_Items_LastIndex | integer | No | |
SaveLoad_MissionNo | integer | No | |
SaveLoad_Uncompress | integer | Yes | |
SaveLoad_UsePlayername | boolean | No | |
Score_Catch | integer | No | |
SelectedUnits | group | No | |
SharedAltarAbility | abilcode | No | |
SharedDropoffGroup | group | No | |
SharedDropoffHall | unitcode | No | |
SharedDropoffHashtable | hashtable | No | |
SharedDropoffSawmill | unitcode | No | |
SharedRequirementDummyType | unitcode | Yes | |
SharedRequirementRegion | rect | No | |
SharedRequirementStructureType | unitcode | Yes | |
SharedRequirementUnit1 | unit | Yes | |
SharedRequirementUnit2 | unit | Yes | |
SharedResearchEnabledT2 | boolean | Yes | |
SharedResearchEnabledT3 | boolean | Yes | |
SharedResearchStringT1 | string | Yes | |
SharedResearchStringT2 | string | Yes | |
SharedResearchStringT3 | string | Yes | |
SharedResearchType | techcode | Yes | |
SquadFade | real | No | 100.00 |
Start_Citizens_Group | group | No | |
Start_Citizens_Point | location | No | |
Start_Citizens_Unit | unit | No | |
TargetArray | integer | Yes | |
TargetArrayLength | integer | No | |
TeachBarracks | unit | No | |
TeachBarracksE | effect | No | |
TeleportEffect | effect | No | |
TeleportFast | boolean | No | false |
Teleporting | boolean | No | false |
TempBool | boolean | No | |
TempInt | integer | No | |
TempInteger | integer | No | |
TempPlayer | player | No | |
TempPoint | location | No | |
TempReal | real | No | |
TempUGroup | group | No | |
TempUnit | unit | No | |
Text_CampaignName | string | No | |
Text_ChapterName | string | No | |
Text_ChapterNo | string | No | |
Text_IsStart | boolean | No | |
ThePlayer | player | No | Player01 |
TimerMaySendCommands | timer | No | |
TwoP_MaxLevel | integer | No | |
TwoP_MinLevel | integer | No | |
TwoP_ReturnHero1 | location | No | |
TwoP_ReturnHero2 | location | No | |
TwoP_XPRateInsane | real | No | |
UthersGroup | group | No | |
UtherVariable | unit | No | |
Validate | boolean | No | |
VictoryCinSkip | boolean | No | false |
VillagerToBeConverted | unit | No | |
VillagerToZombieGROUP | group | No | |
WaterfallRevealVis | fogmodifier | No | |
WaterfallSwitch | boolean | No | false |
WaygateCin1Playing | boolean | No | false |
WaygateCin2Playing | boolean | No | false |
WaygateCin3Playing | boolean | No | false |
WayGatesGroup | group | No |
//===========================================================================
function Trig_Malganis_Continuously_Attacks_Buildings_Actions takes nothing returns nothing
if udg_BootingPlayer or IsUnitDeadBJ(udg_MalganisVariable) then
return
endif
loop
exitwhen udg_MaySendCommands
call TriggerSleepAction( 0.1 )
endloop
set udg_MaySendCommands = false
call StartTimerBJ( udg_TimerMaySendCommands, false, 1.00 )
call CommandAI( Player(6), 3, 0 )
call CommandAI( Player(6), 2, R2I(udg_MalganisTargetHouseY) )
call CommandAI( Player(6), 1, R2I(udg_MalganisTargetHouseX) )
endfunction
//===========================================================================
function InitTrig_Malganis_Continuously_Attacks_Buildings takes nothing returns nothing
set gg_trg_Malganis_Continuously_Attacks_Buildings = CreateTrigger( )
call TriggerAddAction( gg_trg_Malganis_Continuously_Attacks_Buildings, function Trig_Malganis_Continuously_Attacks_Buildings_Actions )
endfunction
//===========================================================================
function Trig_Malganis_Booting_Player_Actions takes nothing returns nothing
if IsUnitDeadBJ(udg_MalganisVariable) then
return
endif
loop
exitwhen udg_MaySendCommands
call TriggerSleepAction( 0.1 )
endloop
set udg_MaySendCommands = false
call StartTimerBJ( udg_TimerMaySendCommands, false, 1.00 )
set udg_BootingPlayer = true
call CommandAI( Player(6), 4, 1 )
call EnableTrigger( gg_trg_Das_Boot_to_Arthas )
endfunction
//===========================================================================
function InitTrig_Malganis_Booting_Player takes nothing returns nothing
set gg_trg_Malganis_Booting_Player = CreateTrigger( )
call TriggerAddAction( gg_trg_Malganis_Booting_Player, function Trig_Malganis_Booting_Player_Actions )
endfunction