A Doubt

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

Re: A Doubt

Post by Knight Captain »

Monsters in Exult Studio, which seems to be some sort of shape classification. They're both numbered NPCs in my fix.
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: A Doubt

Post by Knight Captain »

If you look at the original Silver Seed game I don't believe Yurel's barks work there either. I do not recall seeing them, so this might be an original Origin bug.


var0000 = UI_get_npc_id(item);
if (!(event == PROXIMITY)) goto labelFunc03BD_0049;
if (!(UI_get_schedule_type(item) == 0x001D)) goto labelFunc03BD_0049;
var0001 = ["@Leave Yurel alone!@", "@Stay away from Yurel!@", "@Yurel wants to go home!@", "@Oh, woe!@", "@Yurel hungry!@", "@Help me!@"];
Func097F(item, var0001[UI_get_random(UI_get_array_size(var0001))], 0x0000);
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: A Doubt

Post by marzo »

As I said more than once, proximity barks depend on schedule: with the "correct" schedule he should use the barks, with other schedules (such as the one he is programmed with) it does not get used.

There is a reason why I changed Exult to only trigger proximity barks on certain schedules: I went through the originals and check that.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: A Doubt

Post by Knight Captain »

Marzo, Yurel is set to Patrol and that is what the original code looks for. Even in an unmodded Exult game it doesn't work, but I will confirm in DOS as well.

The code I have used to test is adapted from the Iolo.uc file, where we know it works. That's what makes me believe this is an issue with the Catman shape rather than some error I've made. Testing it with the newly added Ernesto seems to indicate it isn't something I'm doing wrong in the process of adding NPCs. Could it be the way the Silver Seed add-on was done that somehow kept an old flag somewhere?
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: A Doubt

Post by marzo »

Patrol only uses proximity barks with the correct path eggs; they need to have the correct qualiy for it (specifically, the remainder of quality divided by 32 must be 15). If no path eggs encountered in patrol schedule match this, then the proximity barks don't get triggered in patrol schedule.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: A Doubt

Post by Knight Captain »

15 and 47 seem to work, higher values seem to get stuck with all barks repeating and the NPC not moving (79, 111, 143, 175, 207, 239).

It looks like Quality 22 is what causes the Pikeman outside the cleared Fawn tower to swing his halberd. Is there a list of these qualities and actions?
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: A Doubt

Post by marzo »

I think it is only documented in the code; I can make a list later. But yeah, the other bits are flags for other stuff, including looking for enemies.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: A Doubt

Post by Knight Captain »

Locked