- Joined
- Aug 14, 2006
- Messages
- 7,614
Hello there.
I have a system that is vital for the campaign The Chosen Ones. It's a JASS made system by some Swedish guy who made it about 2 years ago. After updating the campaign from Alpha versions to Beta versions it mysteriously didn't work like before. I have been trying to fix it time to time without succeed. I thought I fixed already. It seems like my skills aren't enough to fix this so I'm now counting on you.
The system is about adding new abilities to spell books. This works correctly, but the part where the abilities are saved and at next chapter loaded doesn't work. They simply doesn't appear at all.
This system works in a test map, here's everything from the test map:
I'm at the moment testing saving and loading from chapter 2 to chapter 5. This doesn't work. Here are few pictures and triggers from these chapters:
I'm not here asking you to test the campaign and debugging anything but just tell me: what could be the possibilities why this system doesn't work? It worked before. What have I messed up this time?
The campaign is now standstill until this major bug is fixed. I don't want to create any new chapters if one of the major systems doesn't work properly.
Rep & credits to the ones who gives useful help.
I have a system that is vital for the campaign The Chosen Ones. It's a JASS made system by some Swedish guy who made it about 2 years ago. After updating the campaign from Alpha versions to Beta versions it mysteriously didn't work like before. I have been trying to fix it time to time without succeed. I thought I fixed already. It seems like my skills aren't enough to fix this so I'm now counting on you.
The system is about adding new abilities to spell books. This works correctly, but the part where the abilities are saved and at next chapter loaded doesn't work. They simply doesn't appear at all.
This system works in a test map, here's everything from the test map:
JASS:
function GetSpellBook takes nothing returns integer
return 'A6AU'
endfunction
function CreateSpell takes integer itemid, integer spellbookid, integer spellid returns nothing
local integer p = 0
set udg_Spell_System_last = udg_Spell_System_last + 1
set udg_Spell_System_item[udg_Spell_System_last] = itemid
set udg_Spell_System_abil[udg_Spell_System_last] = spellbookid
set udg_Spell_System_spell[udg_Spell_System_last] = spellid
loop
exitwhen p > 12
call SetPlayerAbilityAvailable(Player(p), udg_Spell_System_abil[udg_Spell_System_last], false)
set p = p + 1
endloop
endfunction
function UnitAddSpell takes unit u, integer itemid returns boolean
local integer i = 0
set udg_Spell_System_success = false
loop
exitwhen i > udg_Spell_System_last
if (udg_Spell_System_item[i] == itemid) then
if GetUnitAbilityLevel(u, udg_Spell_System_abil[i]) <= 0 then
call UnitAddAbility(u, udg_Spell_System_abil[i])
set udg_Spell_System_success = true
return true
else
call SetUnitAbilityLevel(u, udg_Spell_System_spell[i], GetUnitAbilityLevel(u, udg_Spell_System_spell[i]) + 1)
set udg_Spell_System_success = true
return true
endif
endif
set i = i + 1
endloop
return false
endfunction
function UnitRemoveSpell takes unit u, integer abilid returns boolean
local integer i = 0
loop
exitwhen i > udg_Spell_System_last
if udg_Spell_System_spell[i] == abilid then
if GetUnitAbilityLevel(u, udg_Spell_System_abil[i]) <= 0 then
return false
else
call UnitRemoveAbility(u, udg_Spell_System_abil[i])
set udg_Spell_System_success = true
return true
endif
endif
set i = i + 1
endloop
return false
endfunction
function StoreHeroSpells takes gamecache cache, string missionkey, string key, unit whichunit returns nothing
local integer i = 0
if udg_Spell_System_Active then
loop
exitwhen i > udg_Spell_System_last
if GetUnitAbilityLevel(whichunit, udg_Spell_System_abil[i]) > 0 then
call StoreInteger(cache, missionkey, key + "spell" + I2S(i), GetUnitAbilityLevel(whichunit, udg_Spell_System_spell[i]))
else
call StoreInteger(cache, missionkey, key + "spell" + I2S(i), 0)
endif
set i = i + 1
endloop
endif
endfunction
function RestoreHeroSpells takes gamecache cache, string missionkey, string key, unit whichunit returns nothing
local integer i = 0
if udg_Spell_System_Active then
loop
exitwhen i > udg_Spell_System_last
if HaveStoredInteger(cache, missionkey, key + "spell" + I2S(i)) then
if GetStoredInteger(cache, missionkey, key + "spell" + I2S(i)) > 0 then
call UnitAddAbility(whichunit, udg_Spell_System_abil[i])
//call BJDebugMsg("Loading spell " + I2S(i) + ": " + I2S(GetUnitAbilityLevel(bj_lastLoadedUnit, udg_Spell_System_spell[i])))
call SetUnitAbilityLevel(whichunit, udg_Spell_System_spell[i], GetStoredInteger(cache, missionkey, key + "spell" + I2S(i)))
endif
endif
set i = i + 1
endloop
endif
endfunction
function StoreHero takes gamecache cache, string missionkey, string key, unit whichunit returns nothing
call StoreHeroSpells(cache, missionkey, key, whichunit)
call UnitRemoveAbility(whichunit, GetSpellBook())
//call TriggerSleepAction(0.0)
call StoreUnit(cache, missionkey, key, whichunit)
endfunction
function RestoreHero takes gamecache cache, string missionkey, string key, player whichplayer, location whichloc, real angle returns unit
set bj_lastLoadedUnit = RestoreUnit(cache, missionkey, key, whichplayer, GetLocationX(whichloc), GetLocationY(whichloc), angle)
call UnitAddAbility(bj_lastLoadedUnit, GetSpellBook())
call RestoreHeroSpells(cache, missionkey, key, bj_lastLoadedUnit)
return bj_lastLoadedUnit
endfunction
-
Save Things
-
Events
-
Player - Player 1 (Red) types a chat message containing !S as An exact match
-
-
Conditions
-
Actions
-
-------- === CREATE GAME CACHE === --------
-
Game Cache - Create a game cache from TCOCache_12.w3v
-
Set GameCache = (Last created game cache)
-
-------- === SAVE HEROS === --------
-
Custom script: call StoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Phodom", udg_AAAPhodom )
-
Custom script: call StoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Fradz", udg_AAAFradz )
-
Custom script: call StoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Galeoth", udg_AAAGaleoth )
-
-------- === SAVE BOXES === --------
-
Game Cache - Store AAPhodom_Box as TCO_Phodom_Box of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAPhodom_Box2 as TCO_Phodom_Box2 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAPhodom_Box3 as TCO_Phodom_Box3 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAPhodom_Box4 as TCO_Phodom_Box4 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box as TCO_Fradz_Box of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box2 as TCO_Fradz_Box2 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box3 as TCO_Fradz_Box3 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box4 as TCO_Fradz_Box4 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAGaleoth_Box as TCO_Galeoth_Box of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAGaleoth_Box2 as TCO_Galeoth_Box2 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAGaleoth_Box3 as TCO_Galeoth_Box3 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAGaleoth_Box4 as TCO_Galeoth_Box4 of TCO_Heroes in (Last created game cache)
-
-------- === Campaign Status Bar === --------
-
Game Cache - Store SB_Dies_C as TCO_SB_Dies_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Optional_Q_C as TCO_SB_Optional_Q_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Elite_B_C as TCO_SB_Elite_B_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Epic_B_C as TCO_SB_Epic_B_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Digging_C as TCO_SB_Digging_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_GU_C as TCO_SB_GU_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Kill_C as TCO_SB_Kill_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Dies_C as TCO_SB_Dies_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Easy_C as TCO_SB_Easy_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Normal_C as TCO_SB_Normal_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Hard_C as TCO_SB_Hard_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_Extreme_C as TCO_SB_Extreme_C of TCO_Bar in (Last created game cache)
-
Game Cache - Store SB_TPTC_C[1] as TCO_SB_TPTC_C of TCO_Bar in (Last created game cache)
-
-------- === SAVE SPELLS === --------
-
-------- === PHODOM === --------
-
-------- 1 --------
-
Game Cache - Store (Level of Area Attack (P, X, 2, US) for AAAPhodom) as TCO_Area_Attack of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Level of Avatar (P, R, 2, US) for AAAPhodom) as TCO_Avatar of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Level of Warcry (P, R, 2, US) for AAAPhodom) as TCO_Warcry of TCO_Spells in (Last created game cache)
-
-------- 2 --------
-
Game Cache - Store (Current research level of Meltdown (Single Ability) for Player 1 (Red)) as TCO_Meltdown of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Impact Flare (Single Ability) for Player 1 (Red)) as TCO_Impact_Flare of TCO_Spells in (Last created game cache)
-
-------- 3 --------
-
Game Cache - Store (Current research level of Aura Of Fire (Curse Ability) for Player 1 (Red)) as TCO_Aura_Of_Fire of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Fire Attack (DISABLED CURRENTLY) for Player 1 (Red)) as TCO_Fire_Attack of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Summon Fire Element (Curse Ability) for Player 1 (Red)) as TCO_Summon_Fire_Element of TCO_Spells in (Last created game cache)
-
-------- 4 --------
-
Game Cache - Store (Current research level of Flame Explosion (AoE Ability) for Player 1 (Red)) as TCO_Flame_Explosion of TCO_Spells in (Last created game cache)
-
-------- 5 --------
-
Game Cache - Store (Current research level of Shield Of Fire (Heal Ability) for Player 1 (Red)) as TCO_Shield_Of_Fire of TCO_Spells in (Last created game cache)
-
-------- 6 --------
-
Game Cache - Store (Current research level of Chaotic Rift (Ultimate Ability) for Player 1 (Red)) as TCO_Chaotic_Rift of TCO_Spells in (Last created game cache)
-
-------- === FRADZ === --------
-
-------- 1 --------
-
Game Cache - Store (Level of Sword Dance (F, E, 2, US) for AAAFradz) as TCO_Sword_Dance of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Level of Illusory Double (F, Y, 2, US) for AAAFradz) as TCO_Illusory_Double of TCO_Spells in (Last created game cache)
-
-------- 2 --------
-
Game Cache - Store (Current research level of Thunder (Single Ability) for Player 1 (Red)) as TCO_Thunder of TCO_Spells in (Last created game cache)
-
-------- 3 --------
-
Game Cache - Store (Current research level of Invisible Strike (Curse Ability) for Player 1 (Red)) as TCO_Invisible_Strike of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Lightning Attack (Curse Ability) for Player 1 (Red)) as TCO_Lightning_Attack of TCO_Spells in (Last created game cache)
-
-------- 4 --------
-
Game Cache - Store (Current research level of Flash Strike (AoE Ability) for Player 1 (Red)) as TCO_Flash_Strike of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Lightning Storm (Aoe Ability) for Player 1 (Red)) as TCO_Lightning_Storm of TCO_Spells in (Last created game cache)
-
-------- 5 --------
-
Game Cache - Store (Current research level of Hydro Shell (Heal Ability) for Player 1 (Red)) as TCO_Hydro_Shield of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Blessing of Lightning (Heal Ability) for Player 1 (Red)) as TCO_Bless_Of_Lightning of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Speedy Boost (Heal Ability) for Player 1 (Red)) as TCO_Speedy_Boost of TCO_Spells in (Last created game cache)
-
-------- 6 --------
-
Game Cache - Store (Current research level of Lightning Orb (Ultimate Ability) for Player 1 (Red)) as TCO_Lightning_Orb of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Teleport Strike (Ultimate Ability) for Player 1 (Red)) as TCO_Teleport_Strike of TCO_Spells in (Last created game cache)
-
-------- === GALEOTH === --------
-
-------- 1 --------
-
Game Cache - Store (Level of Frozen (G, Z, 2, US) for AAAGaleoth) as TCO_Frozen of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Magical Hammer (Single Ability) for Player 1 (Red)) as TCO_Magical_Hammer of TCO_Spells in (Last created game cache)
-
-------- 2 --------
-
Game Cache - Store (Current research level of Ice Bolt (Single Ability) for Player 1 (Red)) as TCO_Ice_Bolt of TCO_Spells in (Last created game cache)
-
-------- 3 --------
-
Game Cache - Store (Current research level of Summon Ice Element (Curse Ability) for Player 1 (Red)) as TCO_Summon_Ice_Element of TCO_Spells in (Last created game cache)
-
-------- 4 --------
-
Game Cache - Store (Current research level of Frozen Cannon (NOT ANYMORE AVAIABLE) for Player 1 (Red)) as TCO_Frozen_Cannon of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Frozen Fang (AoE Ability) for Player 1 (Red)) as TCO_Frozen_Fang of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Glacial Ball (Aoe Ability) for Player 1 (Red)) as TCO_Glacial_Ball of TCO_Spells in (Last created game cache)
-
-------- 5 --------
-
Game Cache - Store (Current research level of Chain Heal (NOT ANYMORE AVAIABLE) for Player 1 (Red)) as TCO_Chain_Heal of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Bone Chiller (Basic Ability) for Player 1 (Red)) as TCO_Magic_Boost of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Glacial Armor (Heal Ability) for Player 1 (Red)) as TCO_Glacial_Armor of TCO_Spells in (Last created game cache)
-
-------- 6 --------
-
Game Cache - Store (Current research level of Frozen Paradise (Ultimate Ability) for Player 1 (Red)) as TCO_Frozen_Paradise of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Northrend Winds (Ultimate Ability) for Player 1 (Red)) as TCO_Northrend_Winds of TCO_Spells in (Last created game cache)
-
-------- === SAVE RESOURCES === --------
-
Game Cache - Store (Player 1 (Red) Current gold) as TCO_Gold of TCO_Resources in (Last created game cache)
-
Game Cache - Store (Player 1 (Red) Current lumber) as TCO_Wood of TCO_Resources in (Last created game cache)
-
-------- === SAVE LINK QUESTS === --------
-
-------- === SAVE SPELL BOOKS === --------
-
Game Cache - Store Spell_System_Active as SpellSystemActive of Spells in GameCache
-
-------- Save Game Cache --------
-
Save GameCache
-
Wait 2.00 seconds
-
Game - Set the next level to Test Map - The Chosen Ones.w3m
-
Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)
-
-
-
Load Things
-
Events
-
Player - Player 1 (Red) types a chat message containing !L as An exact match
-
-
Conditions
-
Actions
-
-------- === LOAD GAME CACHE === --------
-
Game Cache - Create a game cache from TCOCache_12.w3v
-
Set GameCache = (Last created game cache)
-
-------- === LOAD SPELL BOOK === --------
-
Set Spell_System_Active = (Load SpellSystemActive of Spells from GameCache)
-
-------- === Campaign Status Bar === --------
-
Set SB_Dies_C = (SB_Dies_C + (Load TCO_SB_Dies_C of TCO_Bar from (Last created game cache)))
-
Set SB_Optional_Q_C = (SB_Optional_Q_C + (Load TCO_SB_Optional_Q_C of TCO_Bar from (Last created game cache)))
-
Set SB_Elite_B_C = (SB_Elite_B_C + (Load TCO_SB_Elite_B_C of TCO_Bar from (Last created game cache)))
-
Set SB_Epic_B_C = (SB_Epic_B_C + (Load TCO_SB_Epic_B_C of TCO_Bar from (Last created game cache)))
-
Set SB_Digging_C = (SB_Digging_C + (Load TCO_SB_Digging_C of TCO_Bar from (Last created game cache)))
-
Set SB_GU_C = (SB_GU_C + (Load TCO_SB_GU_C of TCO_Bar from (Last created game cache)))
-
Set SB_Kill_C = (SB_Kill_C + (Load TCO_SB_Kill_C of TCO_Bar from (Last created game cache)))
-
Set SB_Dies_C = (SB_Dies_C + (Load TCO_SB_Dies_C of TCO_Bar from (Last created game cache)))
-
Set SB_Easy_C = (SB_Easy_C + (Load TCO_SB_Easy_C of TCO_Bar from (Last created game cache)))
-
Set SB_Normal_C = (SB_Normal_C + (Load TCO_SB_Normal_C of TCO_Bar from (Last created game cache)))
-
Set SB_Hard_C = (SB_Hard_C + (Load TCO_SB_Hard_C of TCO_Bar from (Last created game cache)))
-
Set SB_Extreme_C = (SB_Extreme_C + (Load TCO_SB_Extreme_C of TCO_Bar from (Last created game cache)))
-
Set SB_TPTC_C[1] = (SB_TPTC_C[1] + (Load TCO_SB_TPTC_C of TCO_Bar from (Last created game cache)))
-
-------- === LOAD HERO SPELLS === --------
-
-------- === PHODOM === --------
-
-------- 2 --------
-
Player - Set the current research level of Meltdown (Single Ability) to (Load TCO_Meltdown of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Impact Flare (Single Ability) to (Load TCO_Impact_Flare of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 3 --------
-
Player - Set the current research level of Aura Of Fire (Curse Ability) to (Load TCO_Aura_Of_Fire of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Fire Attack (DISABLED CURRENTLY) to (Load TCO_Fire_Attack of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Summon Fire Element (Curse Ability) to (Load TCO_Summon_Fire_Element of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 4 --------
-
Player - Set the current research level of Flame Explosion (AoE Ability) to (Load TCO_Flame_Explosion of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 5 --------
-
Player - Set the current research level of Shield Of Fire (Heal Ability) to (Load TCO_Shield_Of_Fire of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 6 --------
-
Player - Set the current research level of Chaotic Rift (Ultimate Ability) to (Load TCO_Chaotic_Rift of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- === FRADZ === --------
-
-------- 2 --------
-
Player - Set the current research level of Thunder (Single Ability) to (Load TCO_Thunder of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 3 --------
-
Player - Set the current research level of Invisible Strike (Curse Ability) to (Load TCO_Invisible_Strike of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Lightning Attack (Curse Ability) to (Load TCO_Lightning_Attack of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 4 --------
-
Player - Set the current research level of Flash Strike (AoE Ability) to (Load TCO_Flash_Strike of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Lightning Storm (Aoe Ability) to (Load TCO_Lightning_Storm of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 5 --------
-
Player - Set the current research level of Blessing of Lightning (Heal Ability) to (Load TCO_Bless_Of_Lightning of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Hydro Shell (Heal Ability) to (Load TCO_Hydro_Shield of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Speedy Boost (Heal Ability) to (Load TCO_Speedy_Boost of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 6 --------
-
Player - Set the current research level of Lightning Orb (Ultimate Ability) to (Load TCO_Lightning_Orb of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Teleport Strike (Ultimate Ability) to (Load TCO_Teleport_Strike of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- === GALEOTH === --------
-
-------- 2 --------
-
Player - Set the current research level of Ice Bolt (Single Ability) to (Load TCO_Ice_Bolt of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Magical Hammer (Single Ability) to (Load TCO_Magical_Hammer of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 3 --------
-
Player - Set the current research level of Summon Ice Element (Curse Ability) to (Load TCO_Summon_Ice_Element of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 4 --------
-
Player - Set the current research level of Frozen Cannon (NOT ANYMORE AVAIABLE) to (Load TCO_Frozen_Cannon of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Frozen Fang (AoE Ability) to (Load TCO_Frozen_Fang of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Glacial Ball (Aoe Ability) to (Load TCO_Glacial_Ball of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 5 --------
-
Player - Set the current research level of Chain Heal (NOT ANYMORE AVAIABLE) to (Load TCO_Chain_Heal of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Glacial Armor (Heal Ability) to (Load TCO_Glacial_Armor of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 6 --------
-
Player - Set the current research level of Frozen Paradise (Ultimate Ability) to (Load TCO_Frozen_Paradise of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Northrend Winds (Ultimate Ability) to (Load TCO_Northrend_Winds of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- === LOAD HEROES === --------
-
Set TempLoc = (Center of Phodom Load <gen>)
-
Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Phodom", Player(0), udg_TempLoc, 0.00 )
-
Set AAAPhodom = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
Set TempLoc = (Center of Fradz Load <gen>)
-
Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Fradz", Player(0), udg_TempLoc, 0.00 )
-
Set AAAFradz = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
Set TempLoc = (Center of Galeoth Load <gen>)
-
Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Galeoth", Player(0), udg_TempLoc, 0.00 )
-
Set AAAGaleoth = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- === LOAD BOXES === --------
-
Set TempLoc = (Center of PhoB1 Load <gen>)
-
Game Cache - Restore TCO_Phodom_Box of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box = (Last restored unit)
-
Game Cache - Restore TCO_Phodom_Box2 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box2 = (Last restored unit)
-
Game Cache - Restore TCO_Phodom_Box3 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box3 = (Last restored unit)
-
Game Cache - Restore TCO_Phodom_Box4 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box4 = (Last restored unit)
-
Game Cache - Restore TCO_Fradz_Box of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box = (Last restored unit)
-
Game Cache - Restore TCO_Fradz_Box2 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box2 = (Last restored unit)
-
Game Cache - Restore TCO_Fradz_Box3 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box3 = (Last restored unit)
-
Game Cache - Restore TCO_Fradz_Box4 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box4 = (Last restored unit)
-
Game Cache - Restore TCO_Galeoth_Box of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAGaleoth_Box = (Last restored unit)
-
Game Cache - Restore TCO_Galeoth_Box2 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAGaleoth_Box2 = (Last restored unit)
-
Game Cache - Restore TCO_Galeoth_Box3 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAGaleoth_Box3 = (Last restored unit)
-
Game Cache - Restore TCO_Galeoth_Box4 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAGaleoth_Box4 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- === LOAD UNIT SPELLS === --------
-
-------- === PHODOM === --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Area_Attack of TCO_Spells from (Last created game cache)) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Area Attack (P, X, 2, US) to AAAPhodom
-
Unit - Set level of Area Attack (P, X, 2, US) for AAAPhodom to (Load TCO_Area_Attack of TCO_Spells from (Last created game cache))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Avatar of TCO_Spells from (Last created game cache)) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Avatar (P, R, 2, US) to AAAPhodom
-
Unit - Set level of Avatar (P, R, 2, US) for AAAPhodom to (Load TCO_Avatar of TCO_Spells from (Last created game cache))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Warcry of TCO_Spells from (Last created game cache)) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Warcry (P, R, 2, US) to AAAPhodom
-
Unit - Set level of Warcry (P, R, 2, US) for AAAPhodom to (Load TCO_Warcry of TCO_Spells from (Last created game cache))
-
-
Else - Actions
-
-
-
-
-
-
-------- === FRADZ === --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Sword_Dance of TCO_Spells from (Last created game cache)) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Sword Dance (F, E, 2, US) to AAAFradz
-
Unit - Set level of Sword Dance (F, E, 2, US) for AAAFradz to (Load TCO_Sword_Dance of TCO_Spells from (Last created game cache))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Illusory_Double of TCO_Spells from (Last created game cache)) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Illusory Double (F, Y, 2, US) to AAAFradz
-
Unit - Set level of Illusory Double (F, Y, 2, US) for AAAFradz to (Load TCO_Illusory_Double of TCO_Spells from (Last created game cache))
-
-
Else - Actions
-
-
-
-
-------- === GALEOTH === --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Frozen of TCO_Spells from (Last created game cache)) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Frozen (G, Z, 2, US) to AAAGaleoth
-
Unit - Set level of Frozen (G, Z, 2, US) for AAAGaleoth to (Load TCO_Frozen of TCO_Spells from (Last created game cache))
-
-
Else - Actions
-
-
-------- === LOAD RESOURCES === --------
-
Player - Set Player 1 (Red) Current gold to (Load TCO_Gold of TCO_Resources from (Last created game cache))
-
Player - Set Player 1 (Red) Current lumber to (Load TCO_Wood of TCO_Resources from (Last created game cache))
-
-------- === LOAD LINK QUESTS === --------
-
-


-
Actions
-
-------- === CREATE GAME CACHE === --------
-
Game Cache - Create a game cache from TCOCache_2.w3v
-
Set GameCache = (Last created game cache)
-
-------- === SAVE HEROS === --------
-
Custom script: call StoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Fradz", udg_AAAFradz )
-
-------- === SAVE BOXES === --------
-
Game Cache - Store AAFradz_Box as TCO_Fradz_Box of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box2 as TCO_Fradz_Box2 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box3 as TCO_Fradz_Box3 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box4 as TCO_Fradz_Box4 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box5 as TCO_Fradz_Box5 of TCO_Heroes in (Last created game cache)
-
Game Cache - Store AAFradz_Box6 as TCO_Fradz_Box6 of TCO_Heroes in (Last created game cache)
-
-------- === SAVE SPELLS === --------
-
-------- === FRADZ === --------
-
-------- 1 --------
-
Game Cache - Store (Level of Sword Dance (F, E, 2, US) for AAAFradz) as TCO_Sword_Dance of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Level of Illusory Double (F, Y, 2, US) for AAAFradz) as TCO_Illusory_Double of TCO_Spells in (Last created game cache)
-
-------- 2 --------
-
Game Cache - Store (Current research level of Thunder (Single Ability) for Player 1 (Red)) as TCO_Thunder of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Discharge (Single Ability) for Player 1 (Red)) as TCO_Discharge of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Shock (Single Ability) for Player 1 (Red)) as TCO_Shock of TCO_Spells in (Last created game cache)
-
-------- 3 --------
-
Game Cache - Store (Current research level of Invisible Strike (Curse Ability) for Player 1 (Red)) as TCO_Invisible_Strike of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Lightning Attack (Curse Ability) for Player 1 (Red)) as TCO_Lightning_Attack of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Lightning Mastery (Curse Ability) for Player 1 (Red)) as TCO_Lightning_Mastery of TCO_Spells in (Last created game cache)
-
-------- 4 --------
-
Game Cache - Store (Current research level of Flash Strike (AoE Ability) for Player 1 (Red)) as TCO_Flash_Strike of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Lightning Storm (Aoe Ability) for Player 1 (Red)) as TCO_Lightning_Storm of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Energy Ball (Aoe Ability) for Player 1 (Red)) as TCO_Energy_Ball of TCO_Spells in (Last created game cache)
-
-------- 5 --------
-
Game Cache - Store (Current research level of Hydro Shell (Heal Ability) for Player 1 (Red)) as TCO_Hydro_Shield of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Blessing of Lightning (Heal Ability) for Player 1 (Red)) as TCO_Bless_Of_Lightning of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Speedy Boost (Heal Ability) for Player 1 (Red)) as TCO_Speedy_Boost of TCO_Spells in (Last created game cache)
-
-------- 6 --------
-
Game Cache - Store (Current research level of Lightning Orb (Ultimate Ability) for Player 1 (Red)) as TCO_Lightning_Orb of TCO_Spells in (Last created game cache)
-
Game Cache - Store (Current research level of Teleport Strike (Ultimate Ability) for Player 1 (Red)) as TCO_Teleport_Strike of TCO_Spells in (Last created game cache)
-
-------- === SAVE PROFESSIONS === --------
-
-------- === FRADZ === --------
-
-------- 1 --------
-
Game Cache - Store Resource__DIGTIMES_F as TCO_Digfradz of TCO_Profession in (Last created game cache)
-
Game Cache - Store (Current research level of Requires Bronze Shovel (BOTH) for Player 1 (Red)) as TCO_Digbronze of TCO_Professions in (Last created game cache)
-
Game Cache - Store (Current research level of Requires Silver Shovel (BOTH) for Player 1 (Red)) as TCO_Digsilver of TCO_Professions in (Last created game cache)
-
Game Cache - Store (Current research level of Requires Golden Shovel (BOTH) for Player 1 (Red)) as TCO_Diggold of TCO_Professions in (Last created game cache)
-
Game Cache - Store (Current research level of Requires Master's Instruction Teachings (BOTH) for Player 1 (Red)) as TCO_Digmaster of TCO_Professions in (Last created game cache)
-
-------- 2 --------
-
Game Cache - Store Resource__STEALLVL_F as TCO_StealF of TCO_Profession in (Last created game cache)
-
-------- 3 --------
-
Game Cache - Store (Current research level of Recipe of Potion Of Strength (BOTH) for Player 1 (Red)) as TCO_Potionstrength of TCO_Professions in (Last created game cache)
-
Game Cache - Store (Current research level of Recipe of Potion Of Agility (BOTH) for Player 1 (Red)) as TCO_Potionagility of TCO_Professions in (Last created game cache)
-
Game Cache - Store (Current research level of Recipe of Potion Of Intelligence (BOTH) for Player 1 (Red)) as TCO_Potionintelligence of TCO_Professions in (Last created game cache)
-
Game Cache - Store (Current research level of Recipe of Potion Of Health (BOTH) for Player 1 (Red)) as TCO_Potionhealth of TCO_Professions in (Last created game cache)
-
Game Cache - Store (Current research level of Recipe of Potion Of Mana (BOTH) for Player 1 (Red)) as TCO_Potionmana of TCO_Professions in (Last created game cache)
-
-------- === SAVE RESOURCES === --------
-
Game Cache - Store Resource__DIFFICULTY as TCO_Difficulty of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__SECONDS as TCO_Second of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__MINUTES as TCO_Minute of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__HOURS as TCO_Hour of TCO_Multiboard in (Last created game cache)
-
Set Resource__GAMEPOINT = (Resource__GAMEPOINT + Resource__GAMEPOINT_C)
-
Game Cache - Store Resource__GAMEPOINT as TCO_Gamepoint of TCO_Multiboard in (Last created game cache)
-
Set Resource__LIFE = (Player 1 (Red) Current lumber)
-
Game Cache - Store Resource__LIFE as TCO_Life of TCO_Multiboard in (Last created game cache)
-
Set Resource__GOLD = (Player 1 (Red) Current gold)
-
Game Cache - Store Resource__GOLD as TCO_Gold of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__HONORPOINT as TCO_Honorpoint of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__BOSSPOINT as TCO_Bosspoint of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__LUCK as TCO_Luck of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__KILLS as TCO_Kill of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__DEATHS as TCO_Death of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__GIVEUP as TCO_Giveup of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__EASY as TCO_Easy of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__NORMAL as TCO_Normal of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__HARD as TCO_Hard of TCO_Multiboard in (Last created game cache)
-
Game Cache - Store Resource__EXTREME as TCO_Extreme of TCO_Multiboard in (Last created game cache)
-
-------- === SAVE BOOLEANS === --------
-
-------- === SAVE SPELL BOOKS === --------
-
Game Cache - Store Spell_System_Active as SpellSystemActive of Spells in GameCache
-
-------- Save Game Cache --------
-
Save GameCache
-
-
Load Things
-
Events
-
Time - Elapsed game time is 2.00 seconds
-
-
Conditions
-
Actions
-
-------- === LOAD GAME CACHE === --------
-
Game Cache - Create a game cache from TCOCache_2.w3v
-
Set GameCache1 = (Last created game cache)
-
-------- === LOAD GAME CACHE === --------
-
Game Cache - Create a game cache from TCOCache_4.w3v
-
Set GameCache2 = (Last created game cache)
-
-------- === LOAD SPELL BOOK === --------
-
Set Spell_System_Active = (Load SpellSystemActive of Spells from GameCache2)
-
-------- === LOAD HERO SPELLS === --------
-
-------- === PHODOM === --------
-
-------- 2 --------
-
Player - Set the current research level of Meltdown (Single Ability) to (Load TCO_Meltdown of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Impact Flare (Single Ability) to (Load TCO_Impact_Flare of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 3 --------
-
Player - Set the current research level of Aura Of Fire (Curse Ability) to (Load TCO_Aura_Of_Fire of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Summon Fire Element (Curse Ability) to (Load TCO_Summon_Fire_Element of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Fire Mastery (Curse Ability) to (Load TCO_Fire_Mastery of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 4 --------
-
Player - Set the current research level of Flame Explosion (AoE Ability) to (Load TCO_Flame_Explosion of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Ground Zero (AoE Ability) to (Load TCO_Ground_Zero of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 5 --------
-
Player - Set the current research level of Shield Of Fire (Heal Ability) to (Load TCO_Shield_Of_Fire of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Heaven's Bless (Heal Ability) to (Load TCO_Warm_Light of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- 6 --------
-
Player - Set the current research level of Chaotic Rift (Ultimate Ability) to (Load TCO_Chaotic_Rift of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Phoenix Combo (Ultimate Ability) to (Load TCO_Phoenix_Combo of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-
-------- === FRADZ === --------
-
-------- 2 --------
-
Player - Set the current research level of Thunder (Single Ability) to (Load TCO_Thunder of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Discharge (Single Ability) to (Load TCO_Discharge of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Shock (Single Ability) to (Load TCO_Shock of TCO_Spells from GameCache1) for Player 1 (Red)
-
-------- 3 --------
-
Player - Set the current research level of Invisible Strike (Curse Ability) to (Load TCO_Invisible_Strike of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Lightning Attack (Curse Ability) to (Load TCO_Lightning_Attack of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Lightning Mastery (Curse Ability) to (Load TCO_Lightning_Mastery of TCO_Spells from GameCache1) for Player 1 (Red)
-
-------- 4 --------
-
Player - Set the current research level of Flash Strike (AoE Ability) to (Load TCO_Flash_Strike of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Lightning Storm (Aoe Ability) to (Load TCO_Lightning_Storm of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Energy Ball (Aoe Ability) to (Load TCO_Energy_Ball of TCO_Spells from GameCache1) for Player 1 (Red)
-
-------- 5 --------
-
Player - Set the current research level of Blessing of Lightning (Heal Ability) to (Load TCO_Bless_Of_Lightning of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Hydro Shell (Heal Ability) to (Load TCO_Hydro_Shield of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Speedy Boost (Heal Ability) to (Load TCO_Speedy_Boost of TCO_Spells from GameCache1) for Player 1 (Red)
-
-------- 6 --------
-
Player - Set the current research level of Lightning Orb (Ultimate Ability) to (Load TCO_Lightning_Orb of TCO_Spells from GameCache1) for Player 1 (Red)
-
Player - Set the current research level of Teleport Strike (Ultimate Ability) to (Load TCO_Teleport_Strike of TCO_Spells from GameCache1) for Player 1 (Red)
-
-------- === LOAD HEROES === --------
-
Set TempLoc = (Center of Phodom Load <gen>)
-
Custom script: call RestoreHero ( udg_GameCache2, "TCO_Heroes", "TCO_Phodom", Player(0), udg_TempLoc, 0.00 )
-
Set AAAPhodom = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
Set TempLoc = (Center of Fradz Load <gen>)
-
Custom script: call RestoreHero ( udg_GameCache1, "TCO_Heroes", "TCO_Fradz", Player(0), udg_TempLoc, 0.00 )
-
Set AAAFradz = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- === LOAD BOXES === --------
-
-------- 1 --------
-
Set TempLoc = (Center of PhoB1 Load <gen>)
-
Game Cache - Restore TCO_Phodom_Box of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 2 --------
-
Set TempLoc = (Center of PhoB2 Load <gen>)
-
Game Cache - Restore TCO_Phodom_Box2 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box2 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 3 --------
-
Set TempLoc = (Center of PhoB3 <gen>)
-
Game Cache - Restore TCO_Phodom_Box3 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box3 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 4 --------
-
Set TempLoc = (Center of PhoB4 <gen>)
-
Game Cache - Restore TCO_Phodom_Box4 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box4 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 5 --------
-
Set TempLoc = (Center of PhoB5 <gen>)
-
Game Cache - Restore TCO_Phodom_Box5 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box5 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 6 --------
-
Set TempLoc = (Center of PhoB6 <gen>)
-
Game Cache - Restore TCO_Phodom_Box6 of TCO_Heroes from (Last created game cache) for Player 1 (Red) at TempLoc facing 0.00
-
Set AAPhodom_Box6 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 1 --------
-
Set TempLoc = (Center of FraB1 <gen>)
-
Game Cache - Restore TCO_Fradz_Box of TCO_Heroes from GameCache1 for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 2 --------
-
Set TempLoc = (Center of FraB2 <gen>)
-
Game Cache - Restore TCO_Fradz_Box2 of TCO_Heroes from GameCache1 for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box2 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 3 --------
-
Set TempLoc = (Center of FraB3 <gen>)
-
Game Cache - Restore TCO_Fradz_Box3 of TCO_Heroes from GameCache1 for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box3 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 4 --------
-
Set TempLoc = (Center of FraB4 <gen>)
-
Game Cache - Restore TCO_Fradz_Box4 of TCO_Heroes from GameCache1 for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box4 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 5 --------
-
Set TempLoc = (Center of FraB5 <gen>)
-
Game Cache - Restore TCO_Fradz_Box5 of TCO_Heroes from GameCache1 for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box5 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- 6 --------
-
Set TempLoc = (Center of FraB6 <gen>)
-
Game Cache - Restore TCO_Fradz_Box6 of TCO_Heroes from GameCache1 for Player 1 (Red) at TempLoc facing 0.00
-
Set AAFradz_Box6 = (Last restored unit)
-
Custom script: call RemoveLocation(udg_TempLoc)
-
-------- === LOAD UNIT SPELLS === --------
-
-------- === PHODOM === --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Area_Attack of TCO_Spells from GameCache2) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Area Attack (P, X, 2, US) to AAAPhodom
-
Unit - Set level of Area Attack (P, X, 2, US) for AAAPhodom to (Load TCO_Area_Attack of TCO_Spells from GameCache2)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Avatar of TCO_Spells from (Last created game cache)) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Avatar (P, R, 2, US) to AAAPhodom
-
Unit - Set level of Avatar (P, R, 2, US) for AAAPhodom to (Load TCO_Avatar of TCO_Spells from GameCache2)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Warcry of TCO_Spells from (Last created game cache)) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Warcry (P, R, 2, US) to AAAPhodom
-
Unit - Set level of Warcry (P, R, 2, US) for AAAPhodom to (Load TCO_Warcry of TCO_Spells from GameCache2)
-
-
Else - Actions
-
-
-
-
-
-
-------- === FRADZ === --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Sword_Dance of TCO_Spells from GameCache1) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Sword Dance (F, E, 2, US) to AAAFradz
-
Unit - Set level of Sword Dance (F, E, 2, US) for AAAFradz to (Load TCO_Sword_Dance of TCO_Spells from GameCache1)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load TCO_Illusory_Double of TCO_Spells from GameCache1) Greater than or equal to 1
-
-
Then - Actions
-
Unit - Add Illusory Double (F, Y, 2, US) to AAAFradz
-
Unit - Set level of Illusory Double (F, Y, 2, US) for AAAFradz to (Load TCO_Illusory_Double of TCO_Spells from GameCache1)
-
-
Else - Actions
-
-
-
-
-------- === LOAD PROFESSIONS === --------
-
Set Resource__DIGTIMES_P = (Load TCO_Digphodom of TCO_Profession from (Last created game cache))
-
Set Resource__ALCLVL_P = (Load TCO_Potionlevel of TCO_Profession from (Last created game cache))
-
-------- === MULTIBOARD === --------
-
-------- Column: Player --------
-
Set Resource__DIFFICULTY = (Load TCO_Difficulty of TCO_Multiboard from (Last created game cache))
-
Set Resource__SECONDS = (Load TCO_Second of TCO_Multiboard from (Last created game cache))
-
Set Resource__MINUTES = (Load TCO_Minute of TCO_Multiboard from (Last created game cache))
-
Set Resource__HOURS = (Load TCO_Hour of TCO_Multiboard from (Last created game cache))
-
Set Resource__GAMEPOINT = (Load TCO_Gamepoint of TCO_Multiboard from (Last created game cache))
-
Set Resource__GOLD = (Load TCO_Gold of TCO_Multiboard from (Last created game cache))
-
Player - Set Player 1 (Red) Current gold to Resource__GOLD
-
Set Resource__LIFE = (Load TCO_Life of TCO_Multiboard from (Last created game cache))
-
Player - Set Player 1 (Red) Current lumber to Resource__LIFE
-
Set Resource__HONORPOINT = (Load TCO_Honorpoint of TCO_Multiboard from (Last created game cache))
-
Set Resource__BOSSPOINT = (Load TCO_Bosspoint of TCO_Multiboard from (Last created game cache))
-
Set Resource__LUCK = (Load TCO_Luck of TCO_Multiboard from (Last created game cache))
-
Set Resource__KILLS = (Load TCO_Kill of TCO_Multiboard from (Last created game cache))
-
Set Resource__DEATHS = (Load TCO_Death of TCO_Multiboard from (Last created game cache))
-
Set Resource__GIVEUP = (Load TCO_Giveup of TCO_Multiboard from (Last created game cache))
-
Set Resource__EASY = (Load TCO_Easy of TCO_Multiboard from (Last created game cache))
-
Set Resource__NORMAL = (Load TCO_Normal of TCO_Multiboard from (Last created game cache))
-
Set Resource__HARD = (Load TCO_Hard of TCO_Multiboard from (Last created game cache))
-
Set Resource__EXTREME = (Load TCO_Extreme of TCO_Multiboard from (Last created game cache))
-
-------- Column: Bosses Defeated --------
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
-
Game Cache - Store Resource__ELITEBOSS[(Integer A)] as TCO_Eliteboss of TCO_Multiboard in (Last created game cache)
-
-
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
-
Set Resource__ELITEBOSS[(Integer A)] = (Load TCO_Eliteboss of TCO_Multiboard from (Last created game cache))
-
-
-
-------- === LOAD PROFESSIONS === --------
-
-------- Treasure Hunter --------
-
Player - Set the current research level of Requires Bronze Shovel (BOTH) to (Load TCO_Digbronze of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Requires Silver Shovel (BOTH) to (Load TCO_Digsilver of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Requires Golden Shovel (BOTH) to (Load TCO_Diggold of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Requires Master's Instruction Teachings (BOTH) to (Load TCO_Digmaster of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
-------- Alchemist --------
-
Player - Set the current research level of Recipe of Potion Of Strength (BOTH) to (Load TCO_Potionstrength of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Recipe of Potion Of Agility (BOTH) to (Load TCO_Potionagility of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Recipe of Potion Of Intelligence (BOTH) to (Load TCO_Potionintelligence of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Recipe of Potion Of Health (BOTH) to (Load TCO_Potionhealth of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
Player - Set the current research level of Recipe of Potion Of Mana (BOTH) to (Load TCO_Potionmana of TCO_Professions from (Last created game cache)) for Player 1 (Red)
-
-
The campaign is now standstill until this major bug is fixed. I don't want to create any new chapters if one of the major systems doesn't work properly.
Rep & credits to the ones who gives useful help.
Last edited: