Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
One guy told me that spell save/load bugs from chapter 1 to chapter 4 in the campaign I have been making one year. Here are the trigger, perhaps you know what is wrong?
Player chooses at chapter 1 his own unit spell. So player can actually have one of these three spells.
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)
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)) Not equal to 0
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)) Not equal to 0
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)) Not equal to 0
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))
Do you never get the spell or do you sometimes don't get the spell?
If it never happens, could it be that in the new map you don't create a game cache, so you don't have anything to refer to as game cache to load from? To solve that, you should set the game cache to a variable.
Avator is correct. You should store the cache into a variable.
So when you load the cache, you load the variable (or something, never really worked with caches).
Reason is simple, Last Created Game Cache refers to the cache created in that map. Since the cache is from another map, it doesn't work.
I believe this tutorial should help! Game Cache Tutorial
Sorry, I'm late but it took whole night yesterday to complete & test chapter 1. I actually tested whole thing myself and it seems like it bugs, but not totally. This makes things complicated. It doesn't work from chapter 1 to chapter 4. But it works in test map.
I tested with "WarCry" ability.
Here it doesn't work:
SAVE
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)
LOAD
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)) Not equal to 0
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)) Not equal to 0
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)) Not equal to 0
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
Here it does work:
SAVE
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)
LOAD
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)) Not equal to 0
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)) Not equal to 0
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)) Not equal to 0
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))
Well, I'll give you the whole game cache then. By the way, the one which doesn't work handle only one hero, that's why it's shorter than the one which works. It actually save/loads three character.
These ones doesn't work:
SAVE
Actions
-------- === CREATE GAME CACHE === --------
Game Cache - Create a game cache from TCOCache_1.w3v
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)
-------- === Hero Spells === --------
Game Cache - Store (Current research level of Meltdown for Player 1 (Red)) as TCO_Meltdown of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Impact Flare for Player 1 (Red)) as TCO_Impact_Flare of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Aura Of Fire 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 for Player 1 (Red)) as TCO_Fire_Attack of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Flame Explosion for Player 1 (Red)) as TCO_Flame_Explosion of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Shield Of Fire for Player 1 (Red)) as TCO_Shield_Of_Fire of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Chaotic Rift for Player 1 (Red)) as TCO_Chaotic_Rift of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Summon Fire Element for Player 1 (Red)) as TCO_Summon_Fire_Element 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 SPELL BOOKS === --------
Game Cache - Store Spell_System_Active as SpellSystemActive of Spells in GameCache
-------- Save Game Cache --------
Game Cache - Save GameCache
LOAD
Actions
-------- === LOAD GAME CACHE === --------
Game Cache - Create a game cache from TCOCache_1.w3v
Set GameCache = (Last created game cache)
-------- === LOAD SPELL BOOK === --------
Set Spell_System_Active = (Load SpellSystemActive of Spells from GameCache)
-------- === LOAD HERO SPELLS === --------
-------- === PHODOM === --------
-------- === Hero Spells === --------
Player - Set the current research level of Meltdown 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 to (Load TCO_Impact_Flare of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Aura Of Fire 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 to (Load TCO_Fire_Attack of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Flame Explosion to (Load TCO_Flame_Explosion of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Shield Of Fire 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 Chaotic Rift to (Load TCO_Chaotic_Rift of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Summon Fire Element to (Load TCO_Summon_Fire_Element of TCO_Spells from (Last created game cache)) for Player 1 (Red)
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)
-------- === Hero Spells === --------
Game Cache - Store (Current research level of Meltdown for Player 1 (Red)) as TCO_Meltdown of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Impact Flare for Player 1 (Red)) as TCO_Impact_Flare of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Aura Of Fire 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 for Player 1 (Red)) as TCO_Fire_Attack of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Flame Explosion for Player 1 (Red)) as TCO_Flame_Explosion of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Shield Of Fire for Player 1 (Red)) as TCO_Shield_Of_Fire of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Chaotic Rift for Player 1 (Red)) as TCO_Chaotic_Rift of TCO_Spells in (Last created game cache)
-------- === FRADZ === --------
-------- === Unit Spells === --------
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)
-------- === Hero Spells === --------
Game Cache - Store (Current research level of Thunder for Player 1 (Red)) as TCO_Thunder of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Invisible Strike 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 for Player 1 (Red)) as TCO_Lightning_Attack of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Flash Strike 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 for Player 1 (Red)) as TCO_Lightning_Storm of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Bless Of Lightning for Player 1 (Red)) as TCO_Bless_Of_Lightning of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Lightning Orb 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 for Player 1 (Red)) as TCO_Teleport_Strike of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Hydro Shell for Player 1 (Red)) as TCO_Hydro_Shield of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Speedy Boost for Player 1 (Red)) as TCO_Speedy_Boost of TCO_Spells in (Last created game cache)
-------- === GALEOTH === --------
-------- === Unit Spells === --------
Game Cache - Store (Level of Summon Ice Element (G, T, 2, CS) for AAAGaleoth) as TCO_Summon_Ice_Element of TCO_Spells in (Last created game cache)
-------- === Hero Spells === --------
Game Cache - Store (Current research level of Ice Bolt for Player 1 (Red)) as TCO_Ice_Bolt of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Frozen for Player 1 (Red)) as TCO_Frozen of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Frozen Cannon for Player 1 (Red)) as TCO_Frozen_Cannon of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Chain Heal for Player 1 (Red)) as TCO_Chain_Heal of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Magic Boost for Player 1 (Red)) as TCO_Magic_Boost of TCO_Spells in (Last created game cache)
Game Cache - Store (Current research level of Frozen Paradise for Player 1 (Red)) as TCO_Frozen_Paradise 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 SPELL BOOKS === --------
Game Cache - Store Spell_System_Active as SpellSystemActive of Spells in GameCache
-------- Save Game Cache --------
Game Cache - Save GameCache
LOAD
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)
-------- === LOAD HERO SPELLS === --------
-------- === PHODOM === --------
-------- === Hero Spells === --------
Player - Set the current research level of Meltdown 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 to (Load TCO_Impact_Flare of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Aura Of Fire 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 to (Load TCO_Fire_Attack of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Flame Explosion to (Load TCO_Flame_Explosion of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Shield Of Fire 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 Chaotic Rift to (Load TCO_Chaotic_Rift of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-------- === FRADZ === --------
-------- === Hero Spells === --------
Player - Set the current research level of Thunder to (Load TCO_Thunder of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Invisible Strike 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 to (Load TCO_Lightning_Attack of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Flash Strike 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 to (Load TCO_Lightning_Storm of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Bless Of Lightning 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 Lightning Orb 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 to (Load TCO_Teleport_Strike of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Hydro Shell 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 to (Load TCO_Speedy_Boost of TCO_Spells from (Last created game cache)) for Player 1 (Red)
-------- === GALEOTH === --------
-------- === Hero Spells === --------
Player - Set the current research level of Ice Bolt to (Load TCO_Ice_Bolt of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Frozen to (Load TCO_Frozen of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Frozen Cannon to (Load TCO_Frozen_Cannon of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Chain Heal to (Load TCO_Chain_Heal of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Magic Boost to (Load TCO_Magic_Boost of TCO_Spells from (Last created game cache)) for Player 1 (Red)
Player - Set the current research level of Frozen Paradise to (Load TCO_Frozen_Paradise of TCO_Spells from (Last created game cache)) for Player 1 (Red)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.