Skip to content

Doesn't Export Characters when called

I'm almost done my module! I've been doing extensive play testing, including in multiplayer! But there's one function that doesn't work and I haven't been able to figure out why.

At the end of the module is a door. Once you've received your reward for defeating the final villain you can go through this door. It's supposed to export all PC characters and then end the module. But it doesn't do that. It just ends the module. I had put in the ActionWait(5.0) because I thought it was just ending too quickly. It works in single player (despite what the documentation says). Does anyone have any suggestions?
void main()
{
    int finalEllis = GetLocalInt(GetModule(),"ratquest");

    if(finalEllis <= 2)
    {
        ExportAllCharacters();
        ActionWait(5.0);
        EndGame("");
    }
    else
    {
        ActionSpeakString("You need to talk to Captain Ellis.");
    }

}

Comments

  • MelkiorMelkior Member Posts: 216
    The export functions work differently depending upon whether you're in single player or multiplayer mode. In single player mode, both of them will save a copy of the character to the localvault, without overwriting the last saved version. The file name instead gets successive numbers in brackets at the end.
    In multiplayer, the save is made to the servervault and it overwrites the last saved character with the latest version. For ExportAllCharacters in multiplayer, this is done for every PC currently logged in. Check that you're looking in the correct place, and that you're checking the date and time when the file was written to see whether or not it's the latest version.
  • Dragonfolk2000Dragonfolk2000 Member Posts: 390
    How would I get it to save the characters to the local vault in multiplayer? ExportSingleCharacter? Or will that function the same way?
  • ForSeriousForSerious Member Posts: 471
    Looks like it does the same thing but to one player. I know what you're hoping for, but unless your server is set to local vault, it looks like it's not going to work for you.
  • MelkiorMelkior Member Posts: 216
    It's possible to save a localvault copy of the character by opening the Options menu and selecting the Save Character setting, but afaik there's no way to do it automatically.
Sign In or Register to comment.