Page 1 of 1

Mod questions

Posted: Sat May 30, 2009 10:30 am
by total immortal
I am trying to play around with a mod where newly created NPC's can join you. If anything, I know the newly created automatons have a usecode where they will join you when you talk to them. I have changed some NPC's to that just as a generic fix, but does anyone know how to make a code to make newly created NPC's join your party?

Re: Mod questions

Posted: Sat May 30, 2009 2:24 pm
by Donfrow
It sounds like what you're looking for is UI_add_to_party(actor npc) or npc->add_to_party()

If that's the case, in whatever condition you want the NPC to join the party add that intrinsic with the NPC's number(make sure it's negative).

Re: Mod questions

Posted: Mon Jun 01, 2009 7:01 am
by Wizardry Dragon
In the character's dialogue, you'll want to do something like this, from Dupre's UCC in TFL:

case "join" (remove):
say("@It would be both an honor and a pleasure to join thee on thine adventures once again.@");
item->add_to_party();
add("leave");

Cheers, Wizardry Dragon
Lead Designer, The Feudal Lands
www.thefeudallands.ca