• 🏆 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!

Chapter Two not restoring Hero

Status
Not open for further replies.
Level 4
Joined
Jan 18, 2016
Messages
29
Hi guys, I'm currently creating a campaign and I've already the first map and started on the second map. But I just wanted to make sure I was doing it right in restoring the Hero from the first map into the second map. However it's not showing up. I'll post my triggers in hopes you guys can spot what I'm missing or did wrong.

ChapterOne (Triggers)
TRIGGER TITLE (Identify Hero)
Events
Map initialization
Actions
Set Hero_1 = Halanil 0000 <gen>
Trigger - Run Game Cache <gen> (checking conditions)

TRIGGER TITLE (Game Cache)
Actions
Game Cache - Create a game cache from GreinzerstraumRebellion.w3v

TRIGGER TITLE (Save Hero)
Actions
Game Cache - Create a game cache from GreinzerstraumRebellion.w3v
Game Cache - Store Hero_1 as Halanil of Chapter1 in (Last created game cache)
Game Cache - Save (Last created game cache)

TRIGGER TITLE (Victory and end cinematic)
*Here I'll just post the end of the triggers as before this is all cinematic triggers*
Actions
Game - Show custom campaign button 2
Game - Set the next level to ChapterTwo.w3x
Trigger - Run Save Hero <gen> (checking conditions)
Wait 1.00 seconds
Game - Victory Player 1 (Red) (Show dialogs, Show scores)

ChapterTwo (Triggers)

TRIGGER TITLE (Initialization)
Events
Map initialization
Actions
Trigger - Run Game Cache <gen> (checking conditions)

TRIGGER TITLE (Game Cache)
Actions
Game Cache - Create a game cache from GreinzerstraumRebellion.w3v
Trigger - Run Load Hero <gen> (checking conditions)

TRIGGER TITLE (Load Hero)
Actions
Game Cache - Restore Hero_1 of Chapter1 from (Last created game cache) for Player 1 (Red) at (Center of Restored <gen>) facing 0.00
Set Hero_1 = (Last restored unit)
If (Hero_1 Not equal to No unit) then do (Skip remaining actions) else do (Do nothing)
Unit - Create 1 Halanil for Player 1 (Red) at (Center of Not restored <gen>) facing Default building facing degrees
Set Hero_1 = (Last created unit)
Hero - Set Hero_1 Hero-level to 3, Hide level-up graphics
Hero - Learn skill for Hero_1: Human Paladin - Devotion Aura

So in the beginning of Chapter Two, what I'm getting is the newly created Hero instead of my restored unit. From the triggers, was there somewhere I messed up? Or something I'm missing?
 
Status
Not open for further replies.
Top