- Joined
- Jan 4, 2020
- Messages
- 3
Hello!
Let me just begin by saying that I literally have no prior experience with triggers whatsoever. I'm primarily self-taught and harvested much of my knowledge regarding these from the Hive itself, custom campaign structures, or other YouTube videos.
Recently, I've been encouraged to make my own campaign—I've finished the first chapter successfully, although I am having some issues regarding storing and restoring heroes through game caches.
I have created a couple of triggers since the campaign features two heroes, I have scoured whatever resource related to the topic at hand that I can, but I never seem to be able to do it properly.
Here are the triggers:
MAP 1:
Initialization:
MAP 2:
Initialization:
Load HERO 1:
Thank you for your time!
Let me just begin by saying that I literally have no prior experience with triggers whatsoever. I'm primarily self-taught and harvested much of my knowledge regarding these from the Hive itself, custom campaign structures, or other YouTube videos.
Recently, I've been encouraged to make my own campaign—I've finished the first chapter successfully, although I am having some issues regarding storing and restoring heroes through game caches.
I have created a couple of triggers since the campaign features two heroes, I have scoured whatever resource related to the topic at hand that I can, but I never seem to be able to do it properly.
Here are the triggers:
MAP 1:
Initialization:
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Game Cache - Create a game cache from MainCache.w3v
-
Set MainCache = (Last created game cache)
-
Game Cache - Save MainCache
-
-
Events
-
Conditions
-
Actions
-
Game Cache - Store Vereesa 0125 <gen> as Vereesa of FirstMap in MainCache
-
Game Cache - Store (Level of Vereesa 0125 <gen>) as VereesaLevel of FirstMap in MainCache
-
Game Cache - Store (Hero experience of Vereesa 0125 <gen>) as VereesaEXP of FirstMap in MainCache
-
Game Cache - Store (Level of Arcane Shot for Vereesa 0125 <gen>) as VereesaQ of FirstMap in MainCache
-
Game Cache - Store (Level of Arcane Arrows for Vereesa 0125 <gen>) as VereesaW of FirstMap in MainCache
-
Game Cache - Store (Level of General's Aura for Vereesa 0125 <gen>) as VereesaE of FirstMap in MainCache
-
Game Cache - Store (Level of Rain of Arrows for Vereesa 0125 <gen>) as VereesaR of FirstMap in MainCache
-
Game Cache - Save MainCache
-
-
Events
-
Conditions
-
Actions
-
Game Cache - Store Daerith 0132 <gen> as Daerith of FirstMap in MainCache
-
Game Cache - Store (Level of Daerith 0132 <gen>) as DaerithLevel of FirstMap in MainCache
-
Game Cache - Store (Hero experience of Daerith 0132 <gen>) as DaerithEXP of FirstMap in MainCache
-
Game Cache - Store (Level of Arcane Rain for Daerith 0132 <gen>) as DaerithQ of FirstMap in MainCache
-
Game Cache - Store (Level of Summon Great Water Elemental for Daerith 0132 <gen>) as DaerithW of FirstMap in MainCache
-
Game Cache - Store (Level of Brilliance Aura for Daerith 0132 <gen>) as DaerithE of FirstMap in MainCache
-
Game Cache - Store (Level of Arcane Barrage for Daerith 0132 <gen>) as DaerithR of FirstMap in MainCache
-
Game Cache - Save MainCache
-
-
Events
-
Conditions
-
Actions
-
Trigger - Run Save HERO 1 <gen> (checking conditions)
-
Trigger - Run Save HERO 2 <gen> (checking conditions)
-
MAP 2:
Initialization:
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Game Cache - Create a game cache from MainCache.w3v
-
Set Main Cache = (Last created game cache)
-
Trigger - Run Reload HERO 1 <gen> (checking conditions)
-
Trigger - Run Reload HERO 2 <gen> (checking conditions)
-
Load HERO 1:
-
Events
-
Conditions
-
Actions
-
Game Cache - Restore Vereesa of FirstMap from MainCache for Player 3 (Teal) at (Center of Region 007 <gen>) facing 270.00
-
Set Vereesa = (Last restored unit)
-
Set VereesaLevel = (Load VereesaLevel of FirstMap from MainCache)
-
Set VereesaEXP = (Load VereesaEXP of FirstMap from MainCache)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Vereesa Equal to No unit
-
-
Then - Actions
-
Set Vereesa = Vereesa 0318 <gen>
-
Trigger - Run Vereesa Level <gen> (ignoring conditions)
-
-
Else - Actions
-
Unit - Remove Vereesa 0318 <gen> from the game
-
-
-
-
Events
-
Conditions
-
Actions
-
Game Cache - Restore Daerith of FirstMap from MainCache for Player 3 (Teal) at (Center of Region 008 <gen>) facing 270.00
-
Set Daerith = (Last restored unit)
-
Set DaerithLevel = (Load DaerithLevel of FirstMap from MainCache)
-
Set DaerithEXP = (Load DaerithEXP of FirstMap from MainCache)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Daerith Equal to No unit
-
-
Then - Actions
-
Set Daerith = Daerith 0317 <gen>
-
Trigger - Run Daerith Level <gen> (ignoring conditions)
-
-
Else - Actions
-
Unit - Remove Daerith 0317 <gen> from the game
-
-
-
Thank you for your time!