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.

The 'Rescuer' script for the Leviathan?

Page: 1 of 1
 DarthJebus05
02-15-2008, 5:47 AM
#1
I'm looking for the script that makes Juhani/Canderous/Hk-47/etc the only member in the party so they can rescue the PC, Carth, Bastila and the others.

Anyone know this script?

Thanks,

Jebus
 Marius Fett
02-15-2008, 6:02 AM
#2
I think it's k_plev_escplot or something like that...
 DarthJebus05
02-15-2008, 6:03 AM
#3
I know it's that, but I can't find it's source script.
 Miles Edgeworth
02-15-2008, 8:01 AM
#4
Tupac Amaru explained this to me a few months ago. I'll see if I can find the post.

EDIT: Here we go:

This script will make Canderous the player character.void SwitchToNPC( int nNPC );

void main() {
DelayCommand(1.0, SwitchToNPC(NPC_CANDEROUS));
}

void SwitchToNPC( int nNPC ) {
SwitchPlayerCharacter( nNPC );
}
For other characters, replace NPC_CANDEROUS with the corresponding NPC's constant. They can be found in nwscript.nss. To switch back to the main PC, use NPC_PLAYER as parameter.
 DarthJebus05
02-15-2008, 8:08 AM
#5
Could I have the original thread link, please?

And thank you so much.

P.S. Do I have to add my NPC's tag to the nwsscript?
 Marius Fett
02-15-2008, 8:39 AM
#6
Stoffe just explained in a thread by mitchjo2345.

It's the thread above this one. :)
 Miles Edgeworth
02-15-2008, 10:32 AM
#7
Could I have the original thread link, please?
Sure, here you go. (http://lucasforums.com/showthread.php?t=180709)

P.S. Do I have to add my NPC's tag to the nwsscript?

No, if you have a custom NPC, just put down the one that he/she replaces.
 DarthJebus05
02-15-2008, 6:09 PM
#8
Sure, here you go. (http://lucasforums.com/showthread.php?t=180709)



No, if you have a custom NPC, just put down the one that he/she replaces.

Ha! Thank you so much, Miles. Much appreciated.
 DarthJebus05
02-16-2008, 12:23 AM
#9
Sorry, just one more question. What does this mean?:

To switch back to the main PC, use NPC_PLAYER as parameter.

Is it another script or what?

Thanks,

Jebus
 Miles Edgeworth
02-16-2008, 11:41 AM
#10
Sorry, just one more question. What does this mean?:

To switch back to the main PC, use NPC_PLAYER as parameter.

Is it another script or what?

Sort of, you'll need to make another script to change back, I think. It should look like this:

void SwitchToNPC( int nNPC );

void main() {
DelayCommand(1.0, SwitchToNPC(NPC_PLAYER));
}

void SwitchToNPC( int nNPC ) {
SwitchPlayerCharacter( nNPC );
}
 Darkkender
02-16-2008, 12:21 PM
#11
NPC_PLAYER is a constant defined in NWscript.nss as well as being defined in NPC.2da. These constants tell the game which character to load into the game.
 DarthJebus05
02-16-2008, 2:10 PM
#12
Thanks a lot guy, I believe thats all I need to make it work. Your help is appreciated.
 Taak Farst
02-16-2008, 3:01 PM
#13
I am glad som1 posted this, it helped me figure out how to do smet i plan for Alderaan
Page: 1 of 1