• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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