I have three questions:
1) How can I hide faction in the game?I have been searching and I didn´t found anything that is effective.
2) Can you spawn one prop in a scene?. Example, the character is in a certain place on the map and want to invoke a cannon and appears.
3) It is possible spawn civilians in a scene, or guards at a particular scene (like the citizens of the cities of the native)
Thanks,
Cheers.
1) I described the best procedure you should follow in NW in this very topic
https://www.fsegames.eu/forum/index.php?topic=20171.msg872073#msg872073 2) Absolutely! Let's take your example: spawn a cannon on a player that has pressed a certain button. First of all, bear in mind that spawning stuff MUST be always done serverside, so whatever you're going to do, do it on a server-side trigger (multiplayer_is_server), = your keyword to find or add serverside stuff, or inside server event. Afterwards, you are going to need to call the following commands. Let's assume it's a trigger and you know which agent you're dealing with:
(agent_is_active, ":agent_id"),
(agent_is_alive, ":agent_id"),
(agent_get_position, pos1, ":agent_id"),
(set_spawn_position, pos1),
(spawn_scene_prop, "spr_scene_prop_name"),
That's really all you need. You can modify the position, rotate the prop, put it in a loop, etc... But I dont want to ruin all the fun that comes with modding and coding
Feel free to ask any questions that come to your mind though. You can also spawn items instead of scene props. In this case, all you need to do is use the following code:
(agent_is_active, ":agent_id"),
(agent_is_alive, ":agent_id"),
(agent_get_position, pos1, ":agent_id"),
(set_spawn_position, pos1),
(spawn_item, "itm_rockets", 0, 300), #300 seconds(5 minutes) is the time after that the items gets despawned if it remains on the ground
3) Yes, you could look into commands like spawn_agent or spawn_horse , but i cannot really say how or if they work in NW as I never used them before. You might want to ask to the creators of the Anglo-Zulu war and ask them how they implemented swarms of bots. For citizens, not sure if that's really possible since we're in a multiplayer game and bots are usually hostile. You might have to use some AI paths or script some AI behaviour yourself if you want them to perform certain actions. Still, there could be some good guides on the TW forum that could really help you. For instance, I just went onto the Mod Development section and found this awesome tool
http://forums.taleworlds.com/index.php/topic,317313.0.html