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

Memory save

Status
Not open for further replies.
Level 1
Joined
Apr 24, 2009
Messages
2
Hallo, can anybody say me how to save memory from one map and on other load it??(campaing) sorry for that stupid question I am beginner :grin:

THX for all answers :wink:
 
Level 5
Joined
Jul 6, 2008
Messages
65
it's kinda simple.
When u go into triggering
Do somethingl like this
Example


Event: Unit enters ( your region)
Condition: Boolen ( Entering unit is a hero equal to true
Action:Now as ur first action i would say u make a varible of type unit and named " player 1 hero " like that.'
Set Player 1 hero to Entering unit
Then Wait 0.01 seconds as next action.
Make a action : Store Player 1 hero in game cache named ( ) in ( ) named ( ) like that and now REMEMBER those named , in and named :p.
Wait 0.01 Seconds
Unit , Remove Player 1 hero from the game

there now it will be saved into a file on the players computer
in next map just enter another region and insted of store u load the unit from same folder and names and in that file.

Hope this will help ^^:mwahaha:
 
Status
Not open for further replies.
Top