Saving heroes and his spells level

YaY_simulato

New Member
Reaction score
4
Heya! I have a custom campaing and im wondering how do i save my heroes level to a game chace and how do i save his teached abilities and their levels to a game chace?

+Rep for helpers! (If i can :D)

Thanks in advantage!
 

DK's Pride

New Member
Reaction score
7
Trigger:
  • Dembol Game Cache
    • Events
      • Unit - A unit enters Region001
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Mushroom Farmer
    • Actions
      • Set Gold = (Player 1 (Red) Current gold)
      • Set Lumber = (Player 1 (Red) Current lumber)
      • Game Cache - Store (Triggering unit) as Gregor of Heroes in Game_Cache
      • Game Cache - Store Gold as Gold of Resources in Game_Cache
      • Game Cache - Store Lumber as Lumber of Resources in Game_Cache
      • Game Cache - Save Game_Cache
      • Game - Set the next level to Dembol - City.w3x
      • Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)


This saves it all, or atleast it should xD. But u should check it out :p
 

YaY_simulato

New Member
Reaction score
4
I got it like this:

Trigger:
  • Save
    • Events
      • Unit - A unit enters Save <gen>
    • Conditions
    • Actions
      • Game Cache - Create a game cache from ZombieCrusade.w3v
      • Game Cache - Store Hero as Saved_Hero_Unit of ZombieAttack in (Last created game cache)
      • Game Cache - Store (Hero level of Hero) as Hero_Level of ZombieAttack in (Last created game cache)
      • Game Cache - Save (Last created game cache)
      • Wait 0.50 seconds
      • Trigger - Turn off (This trigger)


And the load is:

Trigger:
  • Load Hero
    • Events
    • Conditions
    • Actions
      • Game Cache - Restore Saved_Hero_Unit of ZombieAttack from (Last created game cache) for Player 1 (Red) at (Player 1 (Red) start location) facing 59.00
      • Game Cache - Reload all game cache data from disk
      • Set Hero = (Last restored unit)
      • If (Hero Not equal to No unit) then do (Skip remaining actions) else do (Do nothing)
      • Unit - Create 1 Paladin for Player 1 (Red) at (Player 1 (Red) start location) facing 59.00 degrees
      • Hero - Set (Last created unit) Hero-level to (Load Hero_Level of ZombieAttack from (Last created game cache)), Hide level-up graphics
      • Set Hero = (Last created unit)


And i dont have any idea how to save the abilities he has learned. Theres no need to save anything else. Still the Level part isnt working =/
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top