i'm making a campaign which there we can choose a hero that we will use until the end of the campaign
so i use trigger like this to save the hero

thanks before
so i use trigger like this to save the hero
-
Chose Hero
-

Events
-


Player - Player 1 (Red) types a chat message containing ok as An exact match
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Pick Sword <gen> contains TheChooser) Equal to True
-
-



Then - Actions
-




Game Cache - Create a game cache from Rise of Illidan.w3v
-




Unit - Remove TheChooser from the game
-




Unit - Create 1 Gilaras Bloodseeker for Player 1 (Red) at (Center of Choosing Start <gen>) facing Default building facing (270.0) degrees
-




Set ChosenHero = (Last created unit)
-




Game Cache - Store ChosenHero as BHero of Prologue in (Last created game cache)
-




Game Cache - Store Gilaras as BName of Prologue in (Last created game cache)
-




Game Cache - Save (Last created game cache)
-




Selection - Select (Last created unit) for Player 1 (Red)
-




Trigger - Run Retreat <gen> (ignoring conditions)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Pick Archer <gen> contains TheChooser) Equal to True
-
-





Then - Actions
-






Game Cache - Create a game cache from Rise of Illidan.w3v
-






Unit - Remove TheChooser from the game
-






Unit - Create 1 Victoria Hawkwing for Player 1 (Red) at (Center of Choosing Start <gen>) facing Default building facing (270.0) degrees
-






Set ChosenHero = (Last created unit)
-






Game Cache - Store ChosenHero as BHero of Prologue in (Last created game cache)
-






Game Cache - Store Victoria as BName of Prologue in (Last created game cache)
-






Game Cache - Save (Last created game cache)
-






Selection - Select (Last created unit) for Player 1 (Red)
-






Trigger - Run Retreat <gen> (ignoring conditions)
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Pick Break <gen> contains TheChooser) Equal to True
-
-







Then - Actions
-








Game Cache - Create a game cache from Rise of Illidan.w3v
-








Unit - Remove TheChooser from the game
-








Unit - Create 1 Eldin Sunchaser for Player 1 (Red) at (Center of Choosing Start <gen>) facing Default building facing (270.0) degrees
-








Set ChosenHero = (Last created unit)
-








Game Cache - Store ChosenHero as BHero of Prologue in (Last created game cache)
-








Game Cache - Store Eldin as BName of Prologue in (Last created game cache)
-








Game Cache - Save (Last created game cache)
-








Selection - Select (Last created unit) for Player 1 (Red)
-








Trigger - Run Retreat <gen> (ignoring conditions)
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Pick Priest <gen> contains TheChooser) Equal to True
-
-









Then - Actions
-










Game Cache - Create a game cache from Rise of Illidan.w3v
-










Unit - Remove TheChooser from the game
-










Unit - Create 1 Tyoril Sunstrider for Player 1 (Red) at (Center of Choosing Start <gen>) facing Default building facing (270.0) degrees
-










Set ChosenHero = (Last created unit)
-










Game Cache - Store ChosenHero as BHero of Prologue in (Last created game cache)
-










Game Cache - Store Tyoril as BName of Prologue in (Last created game cache)
-










Game Cache - Save (Last created game cache)
-










Selection - Select (Last created unit) for Player 1 (Red)
-










Trigger - Run Retreat <gen> (ignoring conditions)
-
-









Else - Actions
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












(Pick Sorc <gen> contains TheChooser) Equal to True
-
-











Then - Actions
-












Game Cache - Create a game cache from Rise of Illidan.w3v
-












Unit - Remove TheChooser from the game
-












Unit - Create 1 Anaya Magefire for Player 1 (Red) at (Center of Choosing Start <gen>) facing Default building facing (270.0) degrees
-












Set ChosenHero = (Last created unit)
-












Game Cache - Store ChosenHero as BHero of Prologue in (Last created game cache)
-












Game Cache - Store Anaya as BName of Prologue in (Last created game cache)
-












Game Cache - Save (Last created game cache)
-












Selection - Select (Last created unit) for Player 1 (Red)
-












Trigger - Run Retreat <gen> (ignoring conditions)
-
-











Else - Actions
-












Cinematic - Send transmission to (All players) from No unit named |c0080FF00Hint|r: Play No sound and display Please stand on des.... Modify duration: Set to 4.00 seconds and Wait
-
-
-
-
-
-
-
-
-
-
-
-

thanks before


now it's really