• 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.

[Trigger] Save/Load + ranking system

Status
Not open for further replies.
Level 3
Joined
Nov 3, 2008
Messages
35
Trying to do a save/load system and character selction system that "unlocks" playable units. Baised on ua2 & notd, but in GUI triggers.

Doesn't save items, doesn't save level, only rank and (not associated to level) XP. At Certain ranks rank 1, rank 3, rank 8, unlocks unit 1, unit 2, unit 3 etc.

Having no luck =/ this is uberly difficult... and help would be amazing

Legendel

:infl_thumbs_up:
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
When a rank is achieved, check if it's the rank that unlockes a unit. If it does:
  • Set UnlockedUnit[x] = True
(the array is the unit # unlocked. (Unit 1, Unit 2, Unit 3, etc.)

Then save this Boolean in a Game Cache.
At the start of the map (where you probably can select a unit), load the Game Cache and check which units have been unlocked (UnlockedUnit[x] = True/False). The units that have been unlocked can be added to the selectable units.
 
Status
Not open for further replies.
Top