Add a new Face to a new NPC?

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Add a new Face to a new NPC?

Post 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.
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: Add a new Face to a new NPC?

Post 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."
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: Add a new Face to a new NPC?

Post 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?
Dale
Posts: 176
Joined: Thu May 14, 2020 1:34 pm

Re: Add a new Face to a new NPC?

Post 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!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Add a new Face to a new NPC?

Post by Dominus »

Hmm, need to look it up but Ihad it working for the SF island mod...
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Locked