All you need to do for that is add a single line to your modules "OnPlayerRest" script at the bottom, just above the last curly bracket "}".
ExportSingleCharacter(oPC);
}
And if you want you can add a line that tells the player that they were just saved:
ExportSingleCharacter(oPC);
SendMessageToPC(oPC, "Your character has been saved.");
}
As far as making a module "OnPlayerRest" script from scratch, if that is what you are looking for, it completely depends on a lot of other things that you want to happen or not happen in your module when a player rests.
Hope that helps. Good luck.
Modifié par GhostOfGod, 10 janvier 2011 - 04:00 .