lfnetwork.com mark read register faq members calendar

Thread: Recruitng NPC's
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-30-2012, 11:36 PM   #1
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,287
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
Recruitng NPC's

So, in BOS:SR when you get Kobayashi in the party he replaces Canderous temporarily. However, once Kobayashi leaves the party Canderous comes back like he'd never left. What I want to know, is how I could achieve that. Thoughts?


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,
Old 07-01-2012, 08:32 AM   #2
harIII
Veteran
 
harIII's Avatar
 
Join Date: Feb 2008
Posts: 983
Helpful! 
If you tell me what module you recruit Kobayashi I think I may be able to figure it out. As far as I know I'm wondering if the game will remember what Canderous' attributes are when he was kicked out which will explain why they are the same when he comes back. I'm not too sure because I've never had a companion return before.
harIII is offline   you may: quote & reply,
Old 07-01-2012, 08:39 AM   #3
Hassat Hunter
Forumite
 
Join Date: Jan 2010
Posts: 560
Yeah, it's the same NPC. So that's how the stats are the same.
Just re-add using the exact same tag and in the module where you left him (spawning a new (which needs to be done in another module) will undo it after all).
Hassat Hunter is online now   you may: quote & reply,
Old 07-01-2012, 12:20 PM   #4
JCarter426
Senior Member
 
JCarter426's Avatar
 
Join Date: Feb 2008
Location: Look to your left.
Posts: 1,636
Too recruit an NPC by object - in other words, to add a specific creature in the game world to your party:
Code:
AddAvailableNPCByObject( int nNPC, object oCreature );
The engine is capable of saving object data, of course - but everything except the player and party are restricted to whatever module they were spawned in. As soon as Canderous exits your party, he's no different; he was spawned in that module, so he has to stay in that module. As long as he isn't destroyed, his information is saved and you can get him back by going to that module and recruiting him with the above script.

Of course, if you are doing it in K2, you can just add them to the puppet table and not have to worry about all that; if you add them to the table but don't assign them as a puppet, their information is stored from module to module even if they aren't present.
Code:
AddAvailablePUPByObject( int nPUP, object oPuppet );
nPUP must be 0, 1, or 2; the remote takes up slot 0.



Last edited by JCarter426; 07-01-2012 at 12:34 PM.
JCarter426 is offline   you may: quote & reply,
Old 07-02-2012, 12:42 AM   #5
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,287
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
Quote:
Originally Posted by JCarter426 View Post
Too recruit an NPC by object - in other words, to add a specific creature in the game world to your party:
Code:
AddAvailableNPCByObject( int nNPC, object oCreature );
The engine is capable of saving object data, of course - but everything except the player and party are restricted to whatever module they were spawned in. As soon as Canderous exits your party, he's no different; he was spawned in that module, so he has to stay in that module. As long as he isn't destroyed, his information is saved and you can get him back by going to that module and recruiting him with the above script.

Of course, if you are doing it in K2, you can just add them to the puppet table and not have to worry about all that; if you add them to the table but don't assign them as a puppet, their information is stored from module to module even if they aren't present.
Code:
AddAvailablePUPByObject( int nPUP, object oPuppet );
nPUP must be 0, 1, or 2; the remote takes up slot 0.
So if I added the NPC as a puppet, it wouldn't spawn on the Hawk correct? And I could just use a normal recruit function whenever I wanted them back?

Quote:
Originally Posted by Hassat Hunter View Post
You could get around the module limitation technically by first going to another module, spawning him/her there and THEN removing them from the party.
Handy if you want that party member added for just a map, say, cleaning a base.

So, for example;
Talking to the new party member.
Getting taken to a new module where to use him, which is a one-shot (say, end of Taris).
Spawn, remove, add new NPC as member, leaving the old member behind.
Add to the .dlg that when the stuff is done, the new is removed and he/she re-added and re-warp somewhere else.

Of course, that's just one example, more could be done with that...
Interesting. Thanks HH.


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,
Old 07-01-2012, 01:29 PM   #6
Hassat Hunter
Forumite
 
Join Date: Jan 2010
Posts: 560
You could get around the module limitation technically by first going to another module, spawning him/her there and THEN removing them from the party.
Handy if you want that party member added for just a map, say, cleaning a base.

So, for example;
Talking to the new party member.
Getting taken to a new module where to use him, which is a one-shot (say, end of Taris).
Spawn, remove, add new NPC as member, leaving the old member behind.
Add to the .dlg that when the stuff is done, the new is removed and he/she re-added and re-warp somewhere else.

Of course, that's just one example, more could be done with that...
Hassat Hunter is online now   you may: quote & reply,
Old 07-02-2012, 10:35 AM   #7
JCarter426
Senior Member
 
JCarter426's Avatar
 
Join Date: Feb 2008
Location: Look to your left.
Posts: 1,636
Quote:
Originally Posted by Hassat Hunter View Post
You could get around the module limitation technically by first going to another module, spawning him/her there and THEN removing them from the party.
Handy if you want that party member added for just a map, say, cleaning a base.

So, for example;
Talking to the new party member.
Getting taken to a new module where to use him, which is a one-shot (say, end of Taris).
Spawn, remove, add new NPC as member, leaving the old member behind.
Add to the .dlg that when the stuff is done, the new is removed and he/she re-added and re-warp somewhere else.

Of course, that's just one example, more could be done with that...
Yeah, I was thinking this too - a bit more warping involved, but it could be worth it.
Quote:
Originally Posted by Fallen Guardian View Post
So if I added the NPC as a puppet, it wouldn't spawn on the Hawk correct? And I could just use a normal recruit function whenever I wanted them back?
Correct. Remove them from the party table, add them to the puppet table, and you can even delete them safely and recover them later at any point. You can spawn an available puppet just like you can with a party member; as long as they are in the table, their information is stored.


JCarter426 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Recruitng NPC's

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:31 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.