HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Merging Save/Load Codes

11-19-2006, 01:54 AM#1
superlaxplayer17
Hey, i've been using vexorian's save/load system in my latest map and i love it because it's easy to save integers, but i don't know how to merge two codes into one.
the reason i want to do this is because when i save a hero it will give the player the code, and then they have to save their gold seperately.
so when a player saves his gold/lumber seperately then they can load this gold onto any other hero they want.

example:
a person has a level 43 hero with 2000 gold and 17 lumber.
they do not want their character but like the gold/lumber they have.

so they start a new character and load the gold/lumber onto that character.
is there anyway i can stop this from happening by merging the two codes so you can't load them seperately?
Thanks,
superlaxplayer17
11-19-2006, 03:11 AM#2
Av3n
... Make the same function and then rename it (along with changing everything else as well)
Vex might your answer as well....

-Av3n
11-19-2006, 03:14 AM#3
superlaxplayer17
Quote:
Originally Posted by Av3n
... Make the same function and then rename it (along with changing everything else as well)
Vex might your answer as well....

-Av3n


i pmed vex and he said post it in the triggers section.

make them the same funciton...
like when they use the load ability on a target hero it calls a function that's the same for saving gold/lumber and the hero? how do i change them to be the same function
thanks Av3n

oh also
if i have to import a custom script into the map for the save/load system could i just add that to the one i already have for a jump system?
otherwise i'll just use elil's
11-19-2006, 03:45 AM#4
Av3n
... Make //behide at the end of each custom sricpt code then add the next one.

-Av3n