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
I think it's k_plev_escplot or something like that...
I know it's that, but I can't find it's source script.
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.
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?
Stoffe just explained in a thread by mitchjo2345.
It's the thread above this one. :)
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.
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.
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
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 );
}
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.
Thanks a lot guy, I believe thats all I need to make it work. Your help is appreciated.
I am glad som1 posted this, it helped me figure out how to do smet i plan for Alderaan