WB Coding Creating an stationary tavern/castle NPC

Currently viewing this thread:

Is there an tutorial for this? Basically my intention is to create an npc that will never move from the set center (town). The purpose of this npc is simply discussing about the lore. An tutorial for creating an stationary npc that you can buy some units from would also be helpful.
 
Inside the troop entry there is actually a place to declare this exact situation, take this for example
["summoner","I summon servants","Summoner",tf_hero|tf_guarantee_shield|tf_guarantee_armor|tf_guarantee_boots, scn_town_1_tavern|entry(1), reserved, fac_commoners,[itm_leather_jacket, itm_hide_boots, itm_lute],def_attrib|level(5),wp(20),knows_common, mage_face1],

The fifth entry scn_town_1_tavern|entry(1) is the scene followed by the entry number of which they will be spawned at.

It's super useful for one off NPCs with static locations.
 
Upvote 0

Eärendil Ardamírë

Subforum Moderator
WBWF&SM&B
You need to watch out that the scene entry point has a specific flag and that visitors are not reset at the respective mission template. It's a very old way to do it and might not work anymore with the settings of your mission templates.

Not a perfect solution but you could make use of one of those two tutorials. You basically just need to remove the recruitment option and let them have some more dialogues:
 
Last edited:
Upvote 0
Inside the troop entry there is actually a place to declare this exact situation, take this for example
["summoner","I summon servants","Summoner",tf_hero|tf_guarantee_shield|tf_guarantee_armor|tf_guarantee_boots, scn_town_1_tavern|entry(1), reserved, fac_commoners,[itm_leather_jacket, itm_hide_boots, itm_lute],def_attrib|level(5),wp(20),knows_common, mage_face1],

The fifth entry scn_town_1_tavern|entry(1) is the scene followed by the entry number of which they will be spawned at.

It's super useful for one off NPCs with static locations.
Did this, belligerent drunk appears always in that tavern. Added that in module troops
 
Upvote 0
Top Bottom