Aller au contenu

Photo

Save Character to Server function


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Wall3T

Wall3T
  • Members
  • 461 messages

im running a lil server for me and my friends, and i use a custom on rest menu system.

 

the one thing i couldnt figure out.....how to add a save character function to it!

 

sure there *is* the one on the menu screen.... but that only goes toward the players vault..... what im looking for is way to have players save there characters in-game (or on-server?)

 

does anyone know of any such resource i could use? links, or an actual script would be very helpful!

 

and... if you need any further questions ....do ask!



#2
The Mad Poet

The Mad Poet
  • Members
  • 425 messages
void main()
{
    object oPC = GetPCSpeaker();

    ExportSingleCharacter(oPC);
}

If all you are trying to do is just allow people to save their character server side then this should do it. Just put it in a conversation node that saves "Save Character" or something like that.


  • Wall3T aime ceci

#3
kalbaern

kalbaern
  • Members
  • 824 messages

Add what I post below to your module's OnPlayerRest event script.

 

if (GetLastRestEventType() == REST_EVENTTYPE_REST_FINISHED)
{
    ExportSingleCharacter(oPC);
}

  • Wall3T aime ceci

#4
Wall3T

Wall3T
  • Members
  • 461 messages

wow okay.... thats a quick response. thank you both! ill end the topic here by saying thanks again!

 

andto clarify, what im looking for is not a way to export player characters to there Local vault, but to my server vault



#5
The Mad Poet

The Mad Poet
  • Members
  • 425 messages

And to help clarify ExportSingleCharacter

 

http://www.nwnlexico...SingleCharacter

 

It does export to servervault. 


  • kalbaern et Wall3T aiment ceci