Aller au contenu

Photo

Subrace dialogue


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

#1
YeezY

YeezY
  • Members
  • 5 messages

Is this possible to do something only if player have one of Subraces? I mean, if u have Subrace "Drow" then NPC will talk with him, in other case - he will ignore him. I know there is something like GetSubRace but I dont know how to use it.

 

Can u explain how to use it? Write some example.



#2
Proleric

Proleric
  • Members
  • 2 345 messages
http://www.nwnlexico...itle=GetSubRace

So, for example, a conditional script in conversation might contain

return (GetSubRace(OBJECT_SELF) == "Drow");

If you understand scripting (see Lexicon Primer), the only special issue is dealing with the free format of the subrace name, discussed here:

http://nwn.wikia.com/wiki/Subrace

That could be avoided by having an initial conversation with the player, using SetSubRace to store their choice in a fixed format.
  • Grymlorde aime ceci

#3
meaglyn

meaglyn
  • Members
  • 804 messages

Probably safer to use GetPCSpeaker there though, instead of OBJECT_SELF. Especially since the OP was talking about an NPC conversation :)


  • Proleric et Grymlorde aiment ceci