PDA

View Full Version : Script that checks part member


Mindtwistah
06-26-2007, 05:19 AM
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, 06:03 AM
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, 06:45 AM
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, 07:45 AM
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.