Is naming NPC's via script possible

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

Is naming NPC's via script possible

Post by Michele »

Is naming NPC's via script possible.
I've seen fascinating things in the Silver Seed NPC creation script, just wondered if naming the NPC by code was also possible.

Func0612 0x612 (var var0000)
{
var NewNPC;
var NewNPCProps;


//Isstanar the Automaton 0x3b1 945
NewNPC = UI_create_new_object2(0x3b1, [0x0A79, 0x0ACC, 0, 1]);
UI_clear_item_flag(NewNPC, 18);
UI_set_alignment(NewNPC, 0);
UI_set_schedule_type(NewNPC, 16);
UI_set_npc_id(NewNPC, 0x0000);
NewNPCProps = UI_set_npc_prop(NewNPC, 0, 30);
NewNPCProps = UI_set_npc_prop(NewNPC, 1, 30);
NewNPCProps = UI_set_npc_prop(NewNPC, 2, 20);
NewNPCProps = UI_set_npc_prop(NewNPC, 4, 30);
NewNPCProps = UI_set_npc_prop(NewNPC, 3, 30);
UI_set_item_flag(NewNPC, 0x001D);

//More NPC's here

return;
}
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: Is naming NPC's via script possible

Post by marzo »

Is naming NPC's via script possible.
No, it is not.
------
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]
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: Is naming NPC's via script possible

Post by marzo »

Quote:

Is naming NPC's via script possible.


No, it is not.
It will be possible to do it on the next snapshot using set_npc_name intrinsic.
------
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]
Locked