SC2Mapster Forums

Development > Triggers

Cannot get ability levels to save/load properly in bank

  • 3 posts
    #1 Feb 08, 2013 at 15:55 UTC - 0 likes

    Hello, Hero, creator of Dragon Quest RPG, here. I am having trouble with my abilities. Currently when I save the dragon hero and then load them, the skills do not properly load there levels. I am wondering if there is something in the data editor I need to be changing in the abillities part of the data editor. Right now I have a "Learn skills" ability, and then in there you can learn Fireball, Fireclaws, Flame Egg, Inferno, and Nova. None of there levels get loaded. Sometimes if your lucky, Fireball will have a couple levels saved. Please help me out with this if you know any reasons why this would happen.

    Dragon RPG

    #2 Feb 08, 2013 at 23:19 UTC - 0 likes

    Sounds like a trigger issue to me. You need the triggers to save the exp of the hero and also the amount of points put into each ability. Remember it being covered before at least twice.

    #3 Feb 09, 2013 at 05:57 UTC - 0 likes

    @DrSuperEvil: Go

    All the trigger does is load the unit. Code looks like this:

    Save: Bank - Store unit Hero[1] as (handle of player 1) of section "FireDragon" in bank Dragon Quest Bank[1]

    Load: Bank - Restore )handle of player 1) of section "FireDragon" from bank Dragon Quest Bank[1] for player 1 at Start Location facing 0.0

    So there really isn't much room for error.

    Inside the bank files the hero save looks something like this.

    <Section name="FireDragon"> <Key name=""> <Item3 string="BasicArmor,3,1"/> <ItemCount int="6"/> <Type string="BabyDragon"/> <Shields fixed="0"/> <XP fixed="600"/> <LearnAbilCount int="1"/> <Item1 string="BasicClaws,3,0"/> <Life fixed="200.087"/> <Item4 string="BasicArmor,3,2"/> <Item2 string="BasicArmor,1,0"/> <LearnAbil0 string="LearnSkills,0,3"/> <Energy fixed="50"/> <Item0 string="BasicClaws,0,0"/> <Item5 string="ILEBCE,2,0"/> </Key> </Section>

    Any help would be much appreciated.

  • 3 posts

You must login to post a comment. Don't have an account? Register to get one!