Aller au contenu

Photo

Killing NPC, TLK file...


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

#1
SaveError00

SaveError00
  • Members
  • 14 messages

Okay, some new questions:

 

1- Is there an option, to kill NPC in some other area (in the same module)? What I mean: conversation with PC and NPC #1. They're talking and then, NPC#1 give us choice - they guys will kill NPC #2 or NPC#3. Those NPC's are in the other areas. Is it possible by normal script "kill" and NPC tag?

 

2- Is there an option to change year (1372 DR) but not a date, but this "DR" into some other word (like A.D. or something like that)? Where I could find in TLK file?



#2
Tchos

Tchos
  • Members
  • 5 054 messages

1: It doesn't matter where the NPC is, as long as it's in the same module.  Standard kill works.  Same goes for any other standard script, because they use either GetTarget or GetObjectByTag.

 

2: Don't know.



#3
kamal_

kamal_
  • Members
  • 5 250 messages

If they are in another module, you could not kill them during this conversation, but set a global variable. When the player enters the module/area where the npc is, in the OnEnter script for the module/area checks for this variable, and kill the npc if it's set. You could do the same if the npc is in the same module, and kill them on area enter, but it would be easier to just kill the npc during the conversation.

 

D.R. is probably set somewhere in the tlk file. You'd need to do a search for it and test. There are mods that aren't set in Faerun, so I presume this is something that's been done before, though I've never done it.