Page 1 of 1

Add a new Face to a new NPC?

Posted: Fri Jul 08, 2016 11:14 pm
by Knight Captain
I have a new face shape I want to connect to a newly-rewritten NPC, and have gotten as far as importing the shape into ES. But where do I set the NPC to use this new face?

And how can I set the matching new paperdoll head shapes as well?

I've looked at the Laurianna and Laurianna_Dialog files but can't quite find what I'm looking for there.

Re: Add a new Face to a new NPC?

Posted: Sat Jul 09, 2016 2:54 am
by Knight Captain
I should have RTF ES documentation: "Drag and drop a face from Faces.vga in the main Exult Studio window to the face field in the NPC window."

Re: Add a new Face to a new NPC?

Posted: Sat Jul 09, 2016 5:37 am
by Knight Captain
I tried copying this bit of code from baiyanda.uc:

Code: Select all

	if (event == STARTED_TALKING)
	{
		BAYANDA->run_schedule();
		BAYANDA->clear_item_say();
		BAYANDA->show_npc_face0(0);
Changing it for Johnson, whose face I imported as Face 265 to match his NPC number:

Code: Select all

else if (event == STARTED_TALKING)
    {
        JOHNSON->run_schedule();
        JOHNSON->clear_item_say(); 
        JOHNSON->show_npc_face0(0);[code]

Yet that doesn't work. Instead I have to use a UI command to get this to work.

[code]UI_show_npc_face(0x109, 0);
Shouldn't my liberal borrowing from the working SIfixes code work?

Re: Add a new Face to a new NPC?

Posted: Sat Jul 09, 2016 8:33 pm
by Dale
I seem to recall having issue with this, too. I think I kept ending up with no portrait showing up at all, but my dialogue working properly. Really looking forward to digging back in once I can bleed you for all the help I'll need.

Keep up the good work!

Re: Add a new Face to a new NPC?

Posted: Sat Jul 09, 2016 8:49 pm
by Dominus
Hmm, need to look it up but Ihad it working for the SF island mod...