Skip to content

Request - NWNX Functions for PossessCreature

metagamermetagamer Member Posts: 26
edited November 2017 in Builders - Scripting
These functions would be great to have

// Change possession of oPC to oCreature
void PossessCreature(object oPC, object oCreature);

// unpossess creature formerly possessed with PossessCreature()
void UnPossessCreature(object oPC, object oCreature);
From nwnx_funcsext.nss: https://github.com/NWNX/nwnx2-linux/blob/master/plugins/funcsext/nwnx_funcsext.nss

Actually UnPossessCreature does not work but we just need PossessCreature to have possession and unpossession (with some easy trick).

However here the problem I faced in 1.69
- when a creature is possessed, the person could level it. If you do it, the server crashes (it does not crash IF the creature is created using the quick guide and the base-package-class. If you have just one more talent extra w.r.t. the package, we get crash)
- when a character posses a creature and he/she logs out, then the bic file is overwritten with the monster and the character is corrupted.
- it is possible to posses other character but, in this case, strange things happen and the server could crash (I do not know if it could be fixed)
- when you possess a creature and the creature dies, the client crashes

I guess you should check the system of animal companions/familiars and try to replicate it.
Sign In or Register to comment.