• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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