• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Campaign - Saving Data

Status
Not open for further replies.
Level 7
Joined
Oct 13, 2008
Messages
301
So, I know you can transfer Resources & Names blah blah w/ Game Cache, But my map uses system that allows you to choose upgrades and ability boost-up's whenever you level up, And they differ because you can choose what you want to upgrade, For example, If you want to upgrade your hero's max HP, How do i save it to the second map that open's? Because you can also choose like ability upgrade, So i can't just simply give the hero the HP upgrade on the second map if the player chose the ability upgrade instead of the HP... D:. Any ideas?
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
Just save the level of upgrade as an Integer and save that in your Game Cache.

For example:
Set Upgrade[1] = 2 (Meaning the first upgradable statistic is at level 2)
Set Upgrade[2] = 5 (Meaning thesame for upgradable stat 2, which is at level 5)
Set Upgrade[3] = 3 (You get the idea)
Etc.
 
Level 7
Joined
Oct 13, 2008
Messages
301
Well that would work if the upgrades were 'upgrades', They're like triggered upgrades, Not the ones from the object editor. Cuz the system work's like this when ya level up, An invisible Idle worker is created with custom icon, And the idle worker has abilities which trigger the ugprade that is in the trigger's... D:
 
Status
Not open for further replies.
Top