What sets the NPC "met" flag?

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
Karlos
Posts: 149
Joined: Thu May 14, 2020 1:34 pm

What sets the NPC "met" flag?

Post by Karlos »

What causes the "met" flag for NPCs to get set? It seems to happen automatically after I taled to anyone when I did some testing with the island patch, but it never gets set when I converse with the NPC created for my new game.

Any ideas what may be amiss here?


-Karl
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: What sets the NPC "met" flag?

Post by drcode »

I don't have the island patch in front of me, but perhaps we explictly called the usecode function (UI_set_item_flag, I think).

Another possibility: In SI, the Usecode functions do set this flag explicitly. Perhaps Exult sets it automatically in BG (which is where the island patch is running). If that's the case, maybe we should also set it automatically in new games.
Karlos
Posts: 149
Joined: Thu May 14, 2020 1:34 pm

Re: What sets the NPC "met" flag?

Post by Karlos »

The island patch only checks for that flag (for Amy, at least), but doesn't set it. I'll set it manually for now.


-Karl
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: What sets the NPC "met" flag?

Post by wjp »

In Black Gate the met flag is set when an NPCs face is shown on-screen.

In SI it's set explicitly by usecode.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: What sets the NPC "met" flag?

Post by Dominus »

AFAIK all the NPCs I put into the patch have that flag set from the beginning so the name is shown when you click on the NPC. Something else I wanted to change before releasing a new version of the patch.
--
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