Code:
proc
savePlayer(client/mob, savefile/a=("player.sav"))
client/mob.Read << health
Problem description:
That's the code for it to save, what I'm having trouble with however, is getting it to open and read it, anybody got an idea?</<>
ID:140112
![]() May 4 2010, 11:27 am
|
|
I'm sorr, it's just I am eager to dive into programming for BYOND. And yes I'm reading through the guide and working along with it. I'm just trying to take things one step at a time, and the thing with what it says in the guide is it deals with writing and saving for objects in atom, not writing for a save file in general. Although perhaps you may be onto something, maybe I need to write for specific mobs and be a bit less general... >_>
|
Why don't you read the guide:
http://www.byond.com/docs/guide/
I'm sure you'd learn all of this there. Instead of asking billions of questions about simple things like Login, saving and such. or search the Forums a bit =)