Невелика шпаргалка для тих, хто працює із заселенням у Level Editor і більш-менш розуміє, для чого взагалі, потрібен цей код. Фактично створено для копіпасту та економії часу. Для новачків, може, теж буде не зайвим почитати.
Що необхідно врахувати:
У цьому прикладі логіка розділена за різними групами об'єктів і підпапками (smart, anomaly, npc_logic, monsters_logic та інші). Розділяти таким чином не обов'язково, але рекомендується діяти так само. Практика показує, що іншим модмейкерам, у цьому разі, буде легше орієнтуватися у файлах логіки вашого моду.
Кожен пресет є середньостатистичним набором для логіки. Ви, звісно, можете прибирати/додавати додаткові секції на кшталт collide, story_object.
Замість location, у шляху логіки прописуєте назву локації.
Smart Terrain
[smart_terrain] cfg = scripts\location\smart\smart_name.ltx
Anomal Zone
[anomal_zone] cfg = scripts\location\anomaly\anomal_zone.ltx
Camp
[camp] cfg = scripts\camp.ltx
Space Restrictor
[story_object] story_id = restr_story_id [logic] cfg = scripts\location\restrictors_logic\restr.ltx
Sleep Zone
[logic] cfg = scripts\sr_sleep.ltx
Physic Objects and Quest Items / Альтернатива параметру fixed_bones, використовується для квестових айтемів device_pda тощо.
[story_object] story_id = object_story_id [collide] ignore_static ignore_small_objects [logic] cfg = scripts\location\physic_objects\object.ltx [physics_common] fixed_bones = link
Animated Object
[story_object] story_id = anim_object_story_id [collide] ignore_static ignore_small_objects [logic] cfg = scripts\location\physic_objects\anim_object.ltx [animated_object]
Inventory Box
[story_object] story_id = box_story_id [logic] cfg = scripts\location\inventory_box\box.ltx
Actor Inventory Box
[story_object] story_id = actor_box_story_id [logic] cfg = scripts\actor_inventory_box.ltx [level_spot] actor_box
Door
[logic] cfg = scripts\door.ltx
Exclusive logic for Smart config
[exclusive] monster = location\monsters_logic\monster_l.ltx npc = location\npc_logic\npc_l.ltx