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.

2 Scripting Questions

Page: 1 of 1
 Fallen Guardian
08-12-2011, 12:36 AM
#1
Alright, so I have two questions for all of you well versed in the world of scripting.

First: Is there a way to forcibly take an NPC out of your party and put one in. Sort of like the party selection screen except it's all done through scripts without the players consent.


Second: In the conditional script to check if you are wearing Sith armor on Taris it checks for that one specific item. Is there a way to make it so it, for example, just checks every G_A_Class4something or do I have to make it check every uti separately?
 TimBob12
08-12-2011, 5:43 AM
#2
For your first question there are the script functions


AddPartyMember()
RemoveFromParty()


which are probably your best bet.
 Dak Drexl
08-12-2011, 10:28 AM
#3
newbiemodder made a script for this, though I haven't gotten to the point of trying it out in k1 yet...

http://www.lucasforums.com/showthread.php?t=207533)
 Fallen Guardian
08-12-2011, 1:37 PM
#4
Okay, thanks guys.
 Qui-Gon Glenn
08-13-2011, 6:25 AM
#5
Are wildcards ( * ) supported in kotor scripting? Never tried to use one, but it sure would be the easy answer to #2.
Page: 1 of 1