I posted a thread yesterday about a bug with the Game Cache don't storing the Attribute Bonus ability ( http://www.hiveworkshop.com/forums/triggers-scripts-269/problem-attribute-bonus-191457/#post1867274 ).
Now i tried to setting the level of Ability Bonus ability using triggers and the Game Cache... But, for some reason, it is not working. The ability, in the next map, stay in the level 0 (even if i take 1 or more levels in the first map)
Trigger Map 1 (Runned by another action in another trigger (too big to post here...)
Game Cache
Events
Conditions
Actions
Game Cache - Create a game cache from YourCache.w3v
Set YourCache = (Last created game cache)
Game Cache - Store Twarokk as MainHero of Heroes1 in YourCache
Set AttributeBonusPoints = (Level of Attribute Bonus (Another) for Twarokk)
Game Cache - Store AttributeBonusPoints as AttributeBonusTwarokk of Status1 in YourCache
Game Cache - Save YourCache
---
Triggers Map 2:
Recreate GameCache*
Events
Map initialization
Conditions
Actions
Game Cache - Create a game cache from YourCache.w3v
Set YourCache = (Last created game cache)
Trigger - Run Load Twarokk <gen> (checking conditions)
Load Twarokk*
Events
Conditions
Actions
Game Cache - Restore MainHero of Heroes1 from (Last created game cache) for Player 1 (Red) at (Center of DUMMY RESTORE POINT <gen>) facing 90.00
Set Twarokk = (Last restored unit)
Set AttributeBonusPoints = (Load AttributeBonusTwarokk of Status1 from YourCache)
Unit - Set level of Attribute Bonus (Another) for Twarokk to AttributeBonusPoints
Game Cache - Save (Last created game cache)
----
And i don't think the problem is with the trigger that run the trigger of the map 1, because the problem only happens with the attribute bonus ability...
Someone have a idea?
Now i tried to setting the level of Ability Bonus ability using triggers and the Game Cache... But, for some reason, it is not working. The ability, in the next map, stay in the level 0 (even if i take 1 or more levels in the first map)
Trigger Map 1 (Runned by another action in another trigger (too big to post here...)
Game Cache
Events
Conditions
Actions
Game Cache - Create a game cache from YourCache.w3v
Set YourCache = (Last created game cache)
Game Cache - Store Twarokk as MainHero of Heroes1 in YourCache
Set AttributeBonusPoints = (Level of Attribute Bonus (Another) for Twarokk)
Game Cache - Store AttributeBonusPoints as AttributeBonusTwarokk of Status1 in YourCache
Game Cache - Save YourCache
---
Triggers Map 2:
Recreate GameCache*
Events
Map initialization
Conditions
Actions
Game Cache - Create a game cache from YourCache.w3v
Set YourCache = (Last created game cache)
Trigger - Run Load Twarokk <gen> (checking conditions)
Load Twarokk*
Events
Conditions
Actions
Game Cache - Restore MainHero of Heroes1 from (Last created game cache) for Player 1 (Red) at (Center of DUMMY RESTORE POINT <gen>) facing 90.00
Set Twarokk = (Last restored unit)
Set AttributeBonusPoints = (Load AttributeBonusTwarokk of Status1 from YourCache)
Unit - Set level of Attribute Bonus (Another) for Twarokk to AttributeBonusPoints
Game Cache - Save (Last created game cache)
----
And i don't think the problem is with the trigger that run the trigger of the map 1, because the problem only happens with the attribute bonus ability...
Someone have a idea?
