Hello, I made a script. It works with 1.69 - by using “default.ncs” to call a main script on PC Heartbeat. This is bad practice I understand, but I don’t see another way of calling the main script periodically otherwise without having to open every module which defeats the purpose of an override.
Except in NWN:EE with the function SetEvent(https://nwnlexicon.com/index.php?title=SetEventScript).
Will this do what I think it will? The documentation is not very clear.
SetEvent(
oPC,
EVENT_SCRIPT_ON_CREATURE_HEARTBEAT,
my_script
);
Will this
- Set a persistant event on the oPC, that calls my_script with oPC as “OBJECT_SELF” in main_script every oPC heartbeat?
- Overwrite other events?
- Be impossible to remove again?
- Even work at all?
Here is the big thing: I don’t own NWN:EE, so I can’t actually compile the file and test it. The project is currently located here: https://wetransfer.com/downloads/7af661fba2fe803fcea06198ae1b3c3b20190721081835/29b225 for the next 7 days, or until the file gets compiled. It’s the file “dpa_pxpp_EE.nss”. When finished, I will upload the project to The Vault. Would anybody be so kind and compile that file for me? Provided the script even works at all.
The main script (“dpa_pxpp.ncs”) adjusts the module XP Scale to accurately offset the party size penalty on xp from killing. It’s for single player modules where the xp loss is a bummer and using a completely custom xp system might be detrimental to the authors vision or simply be too much of a hassle to implement. It’s fully configurable with it’s own .2da file and meant for players mainly, not really module creators and definitely not PW’s.
Does anyone have a better way of how to call it periodically in 1.69 other than with “default.ncs”? I tried using my own “nw_c2_default7.ncs” in the override folder and it was already there- probably from CEP or other hak/override. Even then, the module I played (Lord of Terror) never called the script, which makes me think the “On(NPC)Death” file is even more often overwritten that “default.ncs”. Any ideas on what to do here? Opening each module and adding the event is the very last resort, and I wont do that since “default.ncs” works fine - until it doesn’t, of course.
This is also my first post on the forums, so hi! Hope you guys can help a noob.