• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Anyone know what's wrong?

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,601
Hey.

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))
            • Else - Actions
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
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.
 
Level 37
Joined
Aug 14, 2006
Messages
7,601
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))
            • Else - Actions
 
Level 37
Joined
Aug 14, 2006
Messages
7,601
Are they same? :D

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
    • Set GameCache = (Last created game cache)
    • -------- === SAVE HEROS === --------
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Phodom", udg_AAAPhodom, true )
    • -------- === SAVE BOXES === --------
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Phodom_Box", udg_AAPhodom_Box, false )
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Phodom_Box2", udg_AAPhodom_Box2, false )
    • -------- === SAVE SPELLS === --------
    • -------- === PHODOM === --------
    • -------- === Unit 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)
    • -------- === 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)
    • -------- === 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)
    • -------- === LOAD BOXES === --------
    • Set TempLoc = (Center of PhoB1 Load <gen>)
    • Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Phodom_Box", Player(0), udg_TempLoc, 0.00 )
    • Set AAPhodom_Box = (Last restored unit)
    • Custom script: call RemoveLocation(udg_TempLoc)
    • Set TempLoc = (Center of PhoB2 Load <gen>)
    • Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Phodom_Box2", Player(0), udg_TempLoc, 0.00 )
    • Set AAPhodom_Box2 = (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)) 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
These ones work:

  • 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, true )
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Fradz", udg_AAAFradz, true )
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Galeoth", udg_AAAGaleoth, true )
    • -------- === SAVE BOXES === --------
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Phodom_Box", udg_AAPhodom_Box, false )
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Phodom_Box2", udg_AAPhodom_Box2, false )
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Fradz_Box", udg_AAFradz_Box, false )
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Fradz_Box2", udg_AAFradz_Box2, false )
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Galeoth_Box", udg_AAGaleoth_Box, false )
    • Custom script: call StoreHero( udg_GameCache, "TCO_Heroes", "TCO_Galeoth_Box2", udg_AAGaleoth_Box2, false )
    • -------- === SAVE SPELLS === --------
    • -------- === PHODOM === --------
    • -------- === Unit 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)
    • -------- === 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)
    • -------- === 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>)
    • Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Phodom_Box", Player(0), udg_TempLoc, 0.00 )
    • Set AAPhodom_Box = (Last restored unit)
    • Custom script: call RemoveLocation(udg_TempLoc)
    • Set TempLoc = (Center of PhoB2 Load <gen>)
    • Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Phodom_Box2", Player(0), udg_TempLoc, 0.00 )
    • Set AAPhodom_Box2 = (Last restored unit)
    • Custom script: call RemoveLocation(udg_TempLoc)
    • Set TempLoc = (Center of FraB1 Load <gen>)
    • Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Fradz_Box", Player(0), udg_TempLoc, 0.00 )
    • Set AAFradz_Box = (Last restored unit)
    • Custom script: call RemoveLocation(udg_TempLoc)
    • Set TempLoc = (Center of FraB2 Load <gen>)
    • Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Fradz_Box2", Player(0), udg_TempLoc, 0.00 )
    • Set AAFradz_Box2 = (Last restored unit)
    • Custom script: call RemoveLocation(udg_TempLoc)
    • Set TempLoc = (Center of GalB1 Load <gen>)
    • Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Galeoth_Box", Player(0), udg_TempLoc, 0.00 )
    • Set AAGaleoth_Box = (Last restored unit)
    • Custom script: call RemoveLocation(udg_TempLoc)
    • Set TempLoc = (Center of GalB2 Load <gen>)
    • Custom script: call RestoreHero ( udg_GameCache, "TCO_Heroes", "TCO_Galeoth_Box2", Player(0), udg_TempLoc, 0.00 )
    • Set AAGaleoth_Box2 = (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)) 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
    • -------- === 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)) Not equal to 0
      • 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
    • -------- === GALEOTH === --------
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Load TCO_Summon_Ice_Element of TCO_Spells from (Last created game cache)) Not equal to 0
      • Then - Actions
        • Unit - Add Summon Ice Element (G, T, 2, CS) to AAAGaleoth
        • Unit - Set level of Summon Ice Element (G, T, 2, CS) for AAAGaleoth to (Load TCO_Summon_Ice_Element 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))
 
Status
Not open for further replies.
Top