lfnetwork.com mark read register faq members calendar

Thread: Script that checks part member
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-26-2007, 05:19 AM   #1
Mindtwistah
Junior Member
 
Mindtwistah's Avatar
 
Join Date: Apr 2007
Location: Derka Derka
Posts: 470
Script that checks part member

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".


Mindtwistah is offline   you may: quote & reply,
Old 06-26-2007, 06:03 AM   #2
Master Zionosis
Relax On Air
 
Master Zionosis's Avatar
 
Join Date: Sep 2006
Location: High In The Sky
Posts: 1,280
Current Game: TR 8: Underworld
Contest winner - Modding 
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.

Code:
// 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.


Last edited by master zionosis; 06-26-2007 at 06:15 AM.
Master Zionosis is offline   you may: quote & reply,
Old 06-26-2007, 06:45 AM   #3
Mindtwistah
Junior Member
 
Mindtwistah's Avatar
 
Join Date: Apr 2007
Location: Derka Derka
Posts: 470
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".


Mindtwistah is offline   you may: quote & reply,
Old 06-26-2007, 07:45 AM   #4
Master Zionosis
Relax On Air
 
Master Zionosis's Avatar
 
Join Date: Sep 2006
Location: High In The Sky
Posts: 1,280
Current Game: TR 8: Underworld
Contest winner - Modding 
Quote:
Originally Posted by Mindtwistah
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.

Master Zionosis is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Script that checks part member

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:48 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.