Upgraded Village Scene

正在查看此主题的用户

Thanks to both of you for your references. I'll concentrate on castles and towns till some new wind comes in here. 
 
it would be possible to avoid making many many many scenes for doing this
but it would require to bound buildings to entry points, and when the layer builds one of the new building, then the building in the scene would change its Z coordinates (it means every new building would be in the "original scene" but underground, and when the player builds one, it comes out on the ground, with new Z coordinates)

I think i mentionned it earier in this thread, but i really dont have any spare time to work on M&B right now. My master at univ. is taking way too much of my time.
If you're trully interested, i could give you some links and contacts of people who helped me trying to make this happen. I started it but didnt have time to continue this project. Here again, sorry!
 
moving the buildings up and down seems like a pain in the but, to be honest. When developing 1257ad manor system  to remove the unbuild buildings from the scene we used mainly commands - replace_scene_props and replace_scene_items_with_scene_props. It's way faster and no hassle needed - at-least when you have a large amount of build-able buildings in the scene. Downside is that it will remove all scene props of it's kind - so in worse case scenario a new scene props for the build-able buildings would need to be declared.
 
DrTomas 说:
moving the buildings up and down seems like a pain in the but, to be honest. When developing 1257ad manor system  to remove the unbuild buildings from the scene we used mainly commands - replace_scene_props and replace_scene_items_with_scene_props. It's way faster and no hassle needed - at-least when you have a large amount of build-able buildings in the scene. Downside is that it will remove all scene props of it's kind - so in worse case scenario a new scene props for the build-able buildings would need to be declared.

This seems very interesting, though i dont really understand : where do you add "replace_scene_items_with_scene_props"? i mean in which file? How do you know when those props will de replaced, or what triggers it? I used to be a simple scener, then i took an arrow in the knee. Forgive my lack of knowledge about the textual scening modifications...
 
You will need to do a call via mission trigger, triggering it just before it starts(via ti_before_mission_start flag). Just see how script_remove_siege_objects is called and do based on that.

You obviously will need to write a small script to see which props to remove, which not to. The game tracks the modifications for villages already, so shouldin't be a hard to do so.

Feel free to poke me if you have more questions :smile:
 
后退
顶部 底部