Hello. I've created a custom poison in my module, and so far I've been unsuccessful.
The resref of the item is cr_alch_nighthpo
The script name for the poison is cr_alch_nighthpo
The above script..
Hello. I've created a custom poison in my module, and so far I've been unsuccessful.
The resref of the item is cr_alch_nighthpo
The script name for the poison is cr_alch_nighthpo
The above script..
If you're using the tag-based scripting hook from OnItemActivated, ensure that the script name is the same as the tag (not necessarily the same as the resref).
If that's OK, try putting some SendMessageToPC statements in your script temporarily, to check that the script is being called, that the name of the target item is what you'd expect, and that the item property is added. That would pin down where it's failing.
Okay! Looks like the script is firing. Hm. I'm guessing it's just the adding item property part not working.
EDIT: I had to replace 15 with IP_CONST_ONHIT_SAVEDC_16!
Looks like an error in the Lexicon:
http://www.nwnlexico...pertyOnHitProps
"You must specify .... the save DC constant (IP_CONST_ONHIT_SAVEDC_*), which range From 14 to 26"
There is a link to IP_CONST_ONHIT_SAVEDC_* which contradicts this (they represent DC14 to DC26, but that isn't the value range), so I propose to delete the misleading statement about the range, unless anyone has better information.
Done.