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

Save/Load Functions

Status
Not open for further replies.
Level 8
Joined
Jan 23, 2008
Messages
334
Im curious is it possible to have an RPG that updates without character wipes?


Like can you make a separate map that loads the old code and then when you save it gives you the new code for your hero? or am I just dreaming
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Sure, why not?

You simply make multiple save/load triggers in your map, and while entering the code you detect the "version" of the code. For example:

Enter "-load v2 abracadabra"
will run "Version 2 load trigger", which loads stuff differently from v1.

You could even give a newer version of your map the option to save your code to an earlier version (removing all new content from the code), like:
Enter "-save v1"
 
Status
Not open for further replies.
Top