This system makes a copy of the PC for the corpse.
Thanks to Axe Murderer and OldMan's Beard, and many others on the Bioware scripting forums.
Also thanks to Nightwing and his server Dawn of Nordock.
If you find bugs, of course I wish to know about them so as I can fix them.
I was only able to test it under limited cercumstances, as I only have one working computer at the moment so multiplayer testing was not done with other people. It was designed for PW usage however, and should still work fine. (picking up your own body is interesting, but testing must be done :) )
Ver 1.1 fixed several bugs.
Ver 1.2 fixed a few more bugs, and added features for death token instead of variables. Also added more options for penalties:
* at death or at respawn or both.
*% or set penalty for gold and xp. (can be set individually)
ok, for a quick fix of the clone staying around after a PC exits add this line in the OnCLientExit script at line 23:
AssignCommand(oCopy, ActionDoCommand(SetPlotFlag(oCopy, FALSE)));
that is why there is a database file as_database
So you can set up any database that you want.
Just change the functions in that file to correspond to the DB system that you wish to use.
I have extra functions in the delete area for use with Knat's NBDE system.
Thanks for the offer however.
If you would like to make an addon for NWNX users, that would be awesome, just convert that file, and then users can import and overwrite it, as I can not see a reason to change that file in updates. It just contains the wrappers for DB usage. Sop as long as the function names are not changed, any DB system should be able to be used.
If you need more parameters however, that might be harder to convert, as you would need to supply default values for existing calls. _________________________
AmanShadar's Spawn System (Creatures, Placeables, Items, and Traps) AmanShadar's Death System AmanShadar's Ship System Critter Info Module
The code looks very nice, however the only thing that would put me off is the numerous calls to the campaign database quite often that would definantly cause some performance loss, and depending on the size and popularity of the mod could hinder performance a great deal.
I would be willing to help you convert it to SQLITE database, or even a switch to allow users to decide whether they want to use SQLITE/MYSQL or the default Bioware campaign DB, let me know mate i'm fairly good with NHWNX and SQLIITE.