DarthJebus05 Posted February 15, 2008 Share Posted February 15, 2008 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 Link to comment Share on other sites More sharing options...
Marius Fett Posted February 15, 2008 Share Posted February 15, 2008 I think it's k_plev_escplot or something like that... Link to comment Share on other sites More sharing options...
DarthJebus05 Posted February 15, 2008 Author Share Posted February 15, 2008 I know it's that, but I can't find it's source script. Link to comment Share on other sites More sharing options...
Miles Edgeworth Posted February 15, 2008 Share Posted February 15, 2008 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. Link to comment Share on other sites More sharing options...
DarthJebus05 Posted February 15, 2008 Author Share Posted February 15, 2008 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? Link to comment Share on other sites More sharing options...
Marius Fett Posted February 15, 2008 Share Posted February 15, 2008 Stoffe just explained in a thread by mitchjo2345. It's the thread above this one. Link to comment Share on other sites More sharing options...
Miles Edgeworth Posted February 15, 2008 Share Posted February 15, 2008 Could I have the original thread link, please? Sure, here you go. 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. Link to comment Share on other sites More sharing options...
DarthJebus05 Posted February 15, 2008 Author Share Posted February 15, 2008 Sure, here you go. No, if you have a custom NPC, just put down the one that he/she replaces. Ha! Thank you so much, Miles. Much appreciated. Link to comment Share on other sites More sharing options...
DarthJebus05 Posted February 16, 2008 Author Share Posted February 16, 2008 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 Link to comment Share on other sites More sharing options...
Miles Edgeworth Posted February 16, 2008 Share Posted February 16, 2008 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 ); } Link to comment Share on other sites More sharing options...
Darkkender Posted February 16, 2008 Share Posted February 16, 2008 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. Link to comment Share on other sites More sharing options...
DarthJebus05 Posted February 16, 2008 Author Share Posted February 16, 2008 Thanks a lot guy, I believe thats all I need to make it work. Your help is appreciated. Link to comment Share on other sites More sharing options...
Taak Farst Posted February 16, 2008 Share Posted February 16, 2008 I am glad som1 posted this, it helped me figure out how to do smet i plan for Alderaan Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.