mob
Bobthebuilder
Login()
Question:
When you load a savefile, how do you make it where you load a mob datum.
Example Above
Code:
mob Question: When you load a savefile, how do you make it where you load a mob datum. Example Above |
Dec 18 2012, 4:04 pm
|
|
No no no, I mean how do you make it, where it sends src, to the datum Bobthebuilder ?
|
hmmm that? :
Bobthebuilder/Login() |
Hmm, it's similar to this.
Going from 1 mob datum, to the Load() then making that go to Bobthebuilder datum |
There are different ways to do so.
I usually handle saving/loading with something like this client Here's a simple example of using that world |
When the code runs new_arrival, and they click Load_Character, how do I get it to run a Player/Login()?
|
F["mob"] >> mob // this line loads the saved mob and sets it as your new mob Setting the client's mob automatically calls the new mob's Login() proc. |
Okay, here is some of my code, that could give an idea, what I'm trying to do.
When you create character, and they pick fire, they go to the FirePlayer datum Login(). When they are (del) it saves, and when they load a character, it auto goes to the datum that they were previously in. //Doesn't do the auto part if(Picknation=="Fire") |
In response to Spritzer
|
|
Spritzer wrote:
var/savefile/N=new("Players/[ckey].sav") You should not save your "character creator". |