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.

New Recruit (Mainly help with Scripts)

Page: 1 of 1
 harIII
09-15-2008, 9:29 AM
#1
I am making a mod for a member of the Lucasforums that will add several Sith throughout the K1 game and I thought that it would be neat to get a new Apprentice at the very end on the Star Forge. So far I am trying to apply scripts to the Dialog.

1. I can’t figure out how to turn the recruit hostile after you finish the dialog.
2. I also need a script to turn the recruit neutral or friendly and continue the conversation.
3. Then I need a script to have the recruit join you after at the end of the dialog.
4. inally I will need another script to give the recruit 80 units of Light Side points.

The idea is to enter one of the rooms in the Star Forge and meet up with the new apprentice. She will begin to speak to you and you will either take the Light Side or Dark Side dialog path. Whichever path you take, the apprentice will stop the dialog and attack you. Once you diminish the health to something less than 30 or so, the apprentice will begin to talk to you again. Then you will choose a Light Side or Dark Side path to convince the apprentice to join you.

My only problem is that I don’t know how to script.
 Darth Payne
09-15-2008, 10:31 AM
#2
You could always try and find the scripts that make Bastila do what your talking about.
 Trex
09-15-2008, 10:47 AM
#3
Well I can help you with some of the scripts. I mainly mod KOTOR 2, but I believe most of the scripts work the same.

1. This script should turn the recruit hostile.



void main(){

object oNPC1 = GetObjectByTag("recruit");

ChangeToStandardFaction(oNPC1, 1);

}

2. Do you mean after a certain amount of time, or after they reach a certain amount of health?

3. This should work.


void main()
{
RemoveAvailableNPC(7);
AddAvailableNPCByTemplate(7, "templatename");
DelayCommand(1.5,ShowPartySelectionGUI());
}



Be aware though that you will have to replace another member of the party, unless it's say Juhani and you never picked her up. You should also set the 'tag' of the the recruit to whoever you're replacing to avoid some issues.

The seven should be set to the corresponding slot of the person you're going to replace.

4. Try :


void main()
{

AdjustAlignment( GetFirstPC(),ALIGNMENT_LIGHT_SIDE,80);
}



If you get stuck on scripts, I highly recommend this thread: http://www.lucasforums.com/showthread.php?t=143412). I actually have it bookmarked.

Hope all that helps.
 harIII
09-16-2008, 9:20 AM
#4
Thank you so much. I will test this out tonight and hopefully everything will work out to be good.

Also I will continue to post needed scripts here for future needs.
Page: 1 of 1