How To Make a Hostile NPC and Some Questions

Users who are viewing this thread

Redstone Knight

Grandmaster Knight
I tried to make a zombie mod based on Persistent World. My weapons, armors, clothes and vehicles are ready. I am going to make a map bu I do not know how to make a NPC. Before my mod, some persons tried to make a Persistent Zombies.

My other questions are:

1. Can other mod tutorials work with Persistent World ? (http://forums.taleworlds.com/index.php?topic=229342.0).
2. I will add items but I would like to change their crafting recipes. How can I do this ?
 
Redstone Knight said:
I tried to make a zombie mod based on Persistent World. My weapons, armors, clothes and vehicles are ready. I am going to make a map bu I do not know how to make a NPC. Before my mod, some persons tried to make a Persistent Zombies.
PW was never designed for NPCs (the module system basically rewritten from scratch without accounting for them in most scripts, since the engine code for AI has various issues with the custom factions system, huge scenes, and more). The default testing bots (available in the administrator panel) just attack everyone else on the server, no matter if human or bot, nearby or right across the scene, whether or not buildings, hills, or water is blocking the way, etc. There is a thread in this sub board explaining how to put all spawned bots in the same agent team so they don't attack each other, which you could use the search function at top right to find; but it would only be a very basic start, requiring lots of new code to be figured out to make a playable mode.
Redstone Knight said:
1. Can other mod tutorials work with Persistent World ? (http://forums.taleworlds.com/index.php?topic=229342.0).
That particular tutorial is not suited for PW because the ti_on_scene_prop_destroy trigger will only happen when the prop is irrevocably destroyed (until the mission or "server" is restarted). So, that example would be pretty pointless in a PW type mod because only the first person after a server restart would be able to destroy the pallet, everyone else for days afterwards would only see destroyed boards littered around, lowering performance for little gain.
Redstone Knight said:
2. I will add items but I would like to change their crafting recipes. How can I do this ?
Crafting recipes are set in the definition of the stockpile scene prop, as parameters to the spr_buy_item_triggers() generator function of the entry in module_scene_props.
 
Back
Top Bottom