Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Simple question

Page: 1 of 1
 Darth_Robinson
12-19-2005, 12:39 PM
#1
I'm adding some dialog to the game, but have been having a little trouble. I want an NPC to say something new when I have a specific party member with me, but for the life of me can't figure out how to make that happen. What is the script that I should use?
 Sikon
12-19-2005, 1:18 PM
#2
Use one of the c_con_*pm scripts as a condition for the dialog branch. The names are:

c_con_attonpm
c_con_baodurpm
c_con_disciplepm
c_con_g0t0pm
c_con_handmaidpm
c_con_hanharrpm
c_con_hk47pm
c_con_kreiapm
c_con_mandpm
c_con_mirapm
c_con_t3m4pm
c_con_visaspm

Not only do they check if the character in question is in the current party, they also check if the character is close enough to the player.
 Darth_Robinson
12-19-2005, 4:00 PM
#3
Thanks. I'm actually using KOTOR I, will it make a difference if I just put in a different name?
 Sikon
12-20-2005, 1:02 AM
#4
For KOTOR I, the scripts begin with the letter "k":

k_con_bastpm
k_con_canderpm
k_con_carthpm
k_con_hk47pm
k_con_joleepm
k_con_juhanipm
k_con_missionpm
k_con_t3m3pm
k_con_zaalpm

(Notice that "t3m3" is actually T3-M4.)
There is also a set of scripts that check if a character is not in the party, they end with "npm": k_con_bastnpm etc. Also, since KOTOR I only allows one condition per branch, you may wish to extract the scripts' sources (NSS files) from scripts.bif and insert them into your own scripts if you need additional conditions to be checked.
 Darth_Robinson
12-21-2005, 2:02 PM
#5
Thanks a lot. I thought that was it, but what I typed was 'k_con_t3m4pm'.
Page: 1 of 1