Player Resource Consortium

 

Author Topic: Trying to find some constants...  (Read 9046 times)

0 Members and 1 Guest are viewing this topic.

October 17, 2010, 11:52:05 PM

Whats up? Here's my latest situation: I'm trying to create an item using the Toolkit that essentially has the potential to add bonus spell slots for its owner to itself, the class id of the item properties being determined by the primary class of the owner. This whole schema will be triggered through the item's OnAcquire event.

The only problem is as follows: I'm trying to include the .nss file containing the IP_CONST_CLASS_* constants for the PRC classes into the item's tag script; however, I don't know which .nss file that is (if it even exists). Does anyone know what file this is, if any? Thank you for your attention.


October 18, 2010, 12:33:10 AM
Reply #1

Its in the prc_inclide hak pack. You have to manually add it to your custom content list. If you are not using the PRC 3.4 beta. You have to cancel when it tries to rebuild the module or it will crash.

I can't remember the exact script name.


October 18, 2010, 04:36:43 AM
Reply #2
  • Hero Member
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

Quote from: syphilitica69

Whats up? Here's my latest situation: I'm trying to create an item using the Toolkit that essentially has the potential to add bonus spell slots for its owner to itself, the class id of the item properties being determined by the primary class of the owner. This whole schema will be triggered through the item's OnAcquire event.

The only problem is as follows: I'm trying to include the .nss file containing the IP_CONST_CLASS_* constants for the PRC classes into the item's tag script; however, I don't know which .nss file that is (if it even exists). Does anyone know what file this is, if any? Thank you for your attention.


You won't find anything like IP_CONST_CLASS_* because there are no ip class constants in NWN. All item properties use standard CLASS_TYPE_* constants.


October 18, 2010, 08:01:25 AM
Reply #3
  • Adept
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile

Quote from: KenquinnTheInsaneOne

Its in the prc_inclide hak pack. You have to manually add it to your custom content list. If you are not using the PRC 3.4 beta. You have to cancel when it tries to rebuild the module or it will crash.

I can't remember the exact script name.


No crash anymore on module build, as of 3.4 beta. You can still cancel though, to save time.


October 18, 2010, 12:34:47 PM
Reply #4

Quote from: ElgarL
No crash anymore on module build, as of 3.4 beta. You can still cancel though, to save time.


I mentioned that "If you are not using the PRC 3.4 beta. You have to cancel when it tries to rebuild the module or it will crash."

Thank you for your work on that, and I am eagerly awaiting your other pet project. As for canceling to save time, you do not know pain until you have to build 3 60+ meg modules when updating.


October 20, 2010, 10:03:13 PM
Reply #5

Thanks again for the help, folks.