Skip to content

Request: Delete character

It is possible to insert a function that allows to delete a character from servervault directory of a multiplayer server?
Thanks in advance for reply, Ali

Comments

  • BalanorBalanor Member Posts: 176
    No, there isn't a function. It's possible if the server is using NWNX, but otherwise it can't be done. It's been requested for EE, but as there is no Trello card for adding additional scripting functionality to the base game, don't hold your breath on it happening anytime soon.
  • SherincallSherincall Member Posts: 387
    This seems firmly in the NWNX territory (i.e. only useful for PWs). Make a request at https://github.com/nwnxee/unified/issues/
  • FinalStandFinalStand Member Posts: 87
    edited February 2018
    This is how one PWs and did this in vanilla NWN

    Player would talk to NPC and confirm they wanted to delete character. The NPC would log something like "[secret key] Player XYZ deleted Character ABC" to server log... Every night we had a script to parse log (when it was rotating it) and would delete 'XYZ/ABC.bic' from server vault if that string was found.











  • AlibertoAliberto Member Posts: 80
    Thanks for the reply, i had solved with the group on discord. It is a problem not explicitly linked to the deletion of the character. https://github.com/nwnxee/unified/issues/43

    I solved this way:

    #include "nwnx_admin"

    void DoDelete (object oPC);

    void DoDelete (object oPC) {
    NWNX_Administration_DeletePlayerCharacter (oPC, TRUE);
    }

    void main () {
    object oPC = GetPCSpeaker ();
    SetCommandable (FALSE, oPC);
    AssignCommand (oPC, ClearAllActions ());
    DelayCommand (2.0, DoDelete (oPC));
    }
Sign In or Register to comment.