Aller au contenu

Photo

Trying to change subrace.


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Lich Larloch

Lich Larloch
  • Members
  • 46 messages
I have a script made by someone else that does stuff when you reach a specifc level. I figured I would just add my change to the same script since I want it to happen at the same level. I have just edited the .NSS with notepad does that work?

This is the line I added:

SetSubRace(OBJECT_SELF, 67);

67 is the line of my subrace in the racialsubtypes.2da

Also tried

SetSubrace(oTarget, sHuman_subrace)

Target being the player object in the script
Human_subrace being Label in the subrace 2da

Thanks guys.

#2
Morbane

Morbane
  • Members
  • 1 883 messages
the .nss file has to be compiled to work

2da's function by row number not the label

#3
Lich Larloch

Lich Larloch
  • Members
  • 46 messages
Thanks that explains it. Hopefully I can get the toolset open, it crashes, or find a program that can compile scripts.

#4
Shaughn78

Shaughn78
  • Members
  • 637 messages
SetSubRace(object oCreature, string sSubRace) is a function left over from NWN 1. It does not work.