Thread: SaveNPC
View Single Post
  #1  
Old 01-05-2009, 04:21 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
SaveNPC

Largely an offline dev item:
the opposite of putnpc. Saves a big long string to a text file, clientside, offline. A sufficiently clever scripter can use this to make an offline file-save method:
savenpc file1.cwg,{if(created){setstring hp,#s(hp); setstring mp,#s(mp); setlevel2 #L,#v(playerx),#v(playery);};

Then you could load by putnpc with file1.cwg. :-D

It's not EVERYTHING, but it's enough. If you design your offline game with all the toweapons in one level, you can have the savenpc detour the player through the loader level...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote