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.

Script that checks part member

Page: 1 of 1
 Mindtwistah
06-26-2007, 5:19 AM
#1
What is the script for checking if T3-M4 is in your party? A script that you can insert in a dialog editor, at "script that determines if node is avaliable".
 Master Zionosis
06-26-2007, 6:03 AM
#2
There are two scripts you can use, one checks if T3M4 is in the current active party, and the other checks if T3M4 is available to be chosen in the party selection screen, you didn't state which so i posted both.

Below is the script that checks if T3M4 is available to be chosen at the party screen.

// This returns whether a NPC is in the list of available party members
int StartingConditional() {
return IsAvailableCreature(NPC_T3M4);
}

There are already preset scripts for both K1 and K2 which checks for party members in the current active party, you didn't say which game it is for so I'll put both:

K1: "k_con_t3m3pm" (without the quotes and it's NOT a typo)
K2: "c_con_t3m4pm" (without the quotes)

Hope this helps.
 Mindtwistah
06-26-2007, 6:45 AM
#3
It's for K1.

What if I want to check if an NPC is in my current active party?
For example, I make an own recruitable NPC that will replace T3-M4. His tag and resref is "myNPC".
 Master Zionosis
06-26-2007, 7:45 AM
#4
It's for K1.

What if I want to check if an NPC is in my current active party?
For example, I make an own recruitable NPC that will replace T3-M4. His tag and resref is "myNPC".

I told you how to do that for K1, there is already a preset script for both games, for K1 it's "k_con_t3m3pm" (without the quotes), Also you can't replace an original party member with your own tag, it will cause mega problems like clones appearing on the Ebon Hawk of your NPC, in order to get around that you have to use T3M4's tag for your NPC.
Page: 1 of 1