Сповіщення
Очистити все

Складний квест на оборону табору


Ранг:
Майстер
Роль:
Гість
Записи:
750
Приєднався:
2 роки тому
 
Зараз ми зробимо складний квэст на оборону лагеря!

Що нам потрібно?

  • system.ltx
  • character_desc_escape.xml
  • spawn_sections.ltx
  • npc_profile.xml
  • прямі руки
  • голова на плечах

При зміні угруповання будьте уважні, назву потрібно поміняти скрізь, щоби все працювало.

Створення та підготовка файлів

Інфопоршни

Зареєстрований пустий файл для info_portions .

Відкриваємо файл system.ltx , знаходимо ось це - [info_portions] . Потрібно допикати в кінець рядка files цього розділу, через кому info_new .

config/gameplay створимо файл з назвою info_new.xml , в ньому пишемо це:

<?xml  version = "1.0"  encoding = "windows-1251"  ?> 
 
<game_information_portions> _ 
 
</game_information_portions >

 

Діалоги

Зареєстрований пустий файл для діалогів

В system.ltx находимо розділ [dialogs] і поділяємо те, що робили з info_portions - дописуємо в кінці рядки files - dialogs_new .

Зробимо цей файл в config/gameplay

Назва: dialogs_new.xml , а в ньому така система:

<?xml  version = "1.0"  encoding = "windows-1251"  ?> 
<game_dialogs >
 
</game_dialogs >

 

Інфо для квіту

Зареєструємо XML файл для квоту:

Haxoдим в config/gameplay файл з назвою game_tasks.xml , а в ньому після #include "gameplay\game_tasks_by_vendor.xml" вставляємо

#include "gameplay\tasks_new.xml"

Створимо файл у папці gameplay з назвою tasks_new.xml . У нього поки пикати нічого не треба.

 

Профілі

Зареєстрований файл з профілями.

Допишіть в розділ specific_characters_files (там де [profiles] ) - new_profils_chareng

Створимо в папці gameplay файл з назвою new_profils_chareng.xml

У ньому пишемо:

<?xml version='1.0' encoding="windows-1251"?>

<xml>

</xml>

Файл для скрипту

Створимо в папці gamedata/scripts файл з назвою new_dialog.script .

 

Заповнення файлів

Профілі

Зробимо профілі нападаючих на табір NPC.

Відкриваємо файл: new_profils_chareng.xml і в ньому пишемо між <xml> і </xml>:

 
<!------------------------------------------------ ------------------------------------------> 
   <specific_character  id = "esc_bandit_ataka_1" team_default = "1" > 
      <name > esc_bandit_ataka_1 </name >
       <icon > ui_npc_u_stalker_bandit_master </icon >
       <bio > esc_bandit_novice_bio </bio >
 
      <class > esc_bandit_ataka_1 </class >
       <community > bandit </community >  <terrain_sect > stalker_bandit_terrain </terrain_sect >
 
      <rank > 81 </rank >
       <reputation > -67 </reputation >
 
      <snd_config > characters_voice\human_02\bandit\ </snd_config >
       <crouch_type > 1 </crouch_type >
 
      <panic_treshold > 0 </panic_treshold >
 
      <visual > actors\bandit\stalker_bandit_master </visual >
       <supplies >
         [spawn] \n
         wpn_ak74u \n
         ammo_5.45x39_fmj = 1 \n
#include "gameplay\character_items.xml" \n
#include "gameplay\character_drugs.xml" \n
#include "gameplay\character_food.xml"      
      </supplies >
 
#include "gameplay\character_criticals_3.xml"
#include "gameplay\character_dialogs.xml"   
</specific_character >
 
<!------------------------------------------------ ------------------------------------------> 
   <specific_character  id = "esc_bandit_ataka_2" team_default = "1" > 
      <name > GENERATE_NAME_bandit </name >
       <icon > ui_npc_u_stalker_bandit_4 </icon >
       <bio > esc_bandit_novice_bio </bio >
 
      <class > esc_bandit_ataka_2 </class >
       <community > bandit </community >  <terrain_sect > stalker_bandit_terrain </terrain_sect >
 
      <rank > 59 </rank >
       <reputation > -60 </reputation >
 
      <snd_config > characters_voice\human_01\bandit\ </snd_config >
       <crouch_type > 1 </crouch_type >
 
      <panic_treshold > 0 </panic_treshold >
 
      <visual > actors\bandit\stalker_bandit_4 </visual >
       <supplies >
         [spawn] \n
         wpn_fort \n
         ammo_9x18_fmj = 1 \n
         device_torch \n
         wpn_bm16 \n
         ammo_12x70_buck \n
#include "gameplay\character_items.xml" \n
#include "gameplay\character_drugs.xml" \n
#include "gameplay\character_food.xml"               
      </supplies >
 
#include "gameplay\character_criticals_3.xml"      
#include "gameplay\character_dialogs.xml"   
   </specific_character >
 
<!------------------------------------------------ ------------------------------------------> 
   <specific_character  id = "esc_bandit_ataka_3" team_default = "1" > 
      <name > GENERATE_NAME_bandit </name >
       <icon > ui_npc_u_stalker_bandit_3 </icon >
       <bio > esc_bandit_novice_bio </bio >
 
      <class > esc_bandit_ataka_3 </class >
       <community > bandit </community >  <terrain_sect > stalker_bandit_terrain </terrain_sect >
 
      <rank > 32 </rank >
       <reputation > -56 </reputation >
 
      <snd_config > characters_voice\human_01\bandit\ </snd_config >
       <crouch_type > 1 </crouch_type >
       <panic_treshold > 0 </panic_treshold >
 
      <visual > actors\bandit\stalker_bandit_3 </visual >
       <supplies >
         [spawn] \n
         wpn_pm \n
         ammo_9x18_fmj = 1 \n
#include "gameplay\character_items.xml" \n
#include "gameplay\character_drugs.xml" \n
#include "gameplay\character_food.xml"         
      </supplies >
 
#include "gameplay\character_criticals_3.xml"
 
      <start_dialog > hello_dialog </start_dialog >
 </specific_character >
 
 
 
 
<!------------------------------------------------ ------------------------------------------> 
   <specific_character  id = "esc_bandit_ataka_4" team_default = "1" > 
      <name > GENERATE_NAME_bandit </name >
       <icon > ui_npc_u_stalker_bandit_5 </icon >
       <bio > esc_bandit_novice_bio </bio >
 
      <class > esc_bandit_ataka_4 </class >
       <community > bandit </community >  <terrain_sect > stalker_bandit_terrain </terrain_sect >
 
      <rank > 81 </rank >
       <reputation > -67 </reputation >
 
      <snd_config > characters_voice\human_02\bandit\ </snd_config >
       <crouch_type > 1 </crouch_type >
 
      <panic_treshold > 0 </panic_treshold >
 
      <visual > actors\bandit\stalker_bandit_5 </visual >
       <supplies >
         [spawn] \n
         wpn_pm \n
         ammo_9x18_pmm = 1 \n
#include "gameplay\character_items.xml" \n
#include "gameplay\character_drugs.xml" \n
#include "gameplay\character_food.xml"      
      </supplies >
 
#include "gameplay\character_criticals_3.xml"
#include "gameplay\character_dialogs.xml"   
</specific_character >
 
<!------------------------------------------------ ------------------------------------------> 
   <specific_character  id = "esc_bandit_ataka_5" team_default = "1" > 
      <name > GENERATE_NAME_bandit </name >
       <icon > ui_npc_u_stalker_bandit_4 </icon >
       <bio > esc_bandit_novice_bio </bio >
 
      <class > esc_bandit_ataka_5 </class >
       <community > bandit </community >  <terrain_sect > stalker_bandit_terrain </terrain_sect >
 
      <rank > 59 </rank >
       <reputation > -60 </reputation >
 
      <snd_config > characters_voice\human_01\bandit\ </snd_config >
       <crouch_type > 1 </crouch_type >
 
      <panic_treshold > 0 </panic_treshold >
 
      <visual > actors\bandit\stalker_bandit_4 </visual >
       <supplies >
         [spawn] \n
         wpn_pm \n
         ammo_9x18_fmj = 1 \n
         device_torch \n
         wpn_bm16 \n
         ammo_12x70_buck \n
#include "gameplay\character_items.xml" \n
#include "gameplay\character_drugs.xml" \n
#include "gameplay\character_food.xml"               
      </supplies >
 
#include "gameplay\character_criticals_3.xml"      
#include "gameplay\character_dialogs.xml"   
   </specific_character >
 
<!------------------------------------------------ ------------------------------------------> 
   <specific_character  id = "esc_bandit_ataka_6" team_default = "1" > 
      <name > GENERATE_NAME_bandit </name >
       <icon > ui_npc_u_stalker_bandit_3 </icon >
       <bio > esc_bandit_novice_bio </bio >
 
      <class > esc_bandit_ataka_6 </class >
       <community > bandit </community >  <terrain_sect > stalker_bandit_terrain </terrain_sect >
 
      <rank > 32 </rank >
       <reputation > -56 </reputation >
 
      <snd_config > characters_voice\human_01\bandit\ </snd_config >
       <crouch_type > 1 </crouch_type >
       <panic_treshold > 0 </panic_treshold >
 
      <visual > actors\bandit\stalker_bandit_3 </visual >
       <supplies >
         [spawn] \n
         wpn_pm \n
         ammo_9x18_fmj = 1 \n
#include "gameplay\character_items.xml" \n
#include "gameplay\character_drugs.xml" \n
#include "gameplay\character_food.xml"         
      </supplies >
 
#include "gameplay\character_criticals_3.xml"
 
      <start_dialog > hello_dialog </start_dialog >
 </specific_character >

Відкриваємо файл: npc_profile.xml , і в ньому пишемо:

 
   <character  id = "esc_bandit_ataka_1" > 
      <class > esc_bandit_ataka_1 </class >
       <specific_character > esc_bandit_ataka_1 </specific_character >
    </character >
 
   <character  id = "esc_bandit_ataka_2" > 
      <class > esc_bandit_ataka_2 </class >
       <specific_character > esc_bandit_ataka_2 </specific_character >
    </character >
 
   <character  id = "esc_bandit_ataka_3" > 
      <class > esc_bandit_ataka_3 </class >
       <specific_character > esc_bandit_ataka_3 </specific_character >
    </character >
 
   <character  id = "esc_bandit_ataka_4" > 
      <class > esc_bandit_ataka_4 </class >
       <specific_character > esc_bandit_ataka_4 </specific_character >
    </character >
 
   <character  id = "esc_bandit_ataka_5" > 
      <class > esc_bandit_ataka_5 </class >
       <specific_character > esc_bandit_ataka_5 </specific_character >
    </character >
 
   <character  id = "esc_bandit_ataka_6" > 
      <class > esc_bandit_ataka_6 </class >
       <specific_character > esc_bandit_ataka_6 </specific_character >
    </character >

Відкриваємо spawn_sections.ltx , і в самому кінці пишемо:

[ esc_bandit_ataka_1 ] : stalker_trader
 character_profile = esc_bandit_ataka_1 
spec_rank = veteran 
community = bandit 
use_single_item_rule = off 
can_select_items = off 
custom_data = scripts\esc_bandit_ata
 
[ esc_bandit_ataka_2 ] : stalker_trader
 character_profile = esc_bandit_ataka_2 
spec_rank = veteran 
community = bandit 
use_single_item_rule = off 
can_select_items = off 
custom_data = scripts\esc_bandit_ata
 
[ esc_bandit_ataka_3 ] : stalker_trader
 character_profile = esc_bandit_ataka_3 
spec_rank = veteran 
community = bandit 
use_single_item_rule = off 
can_select_items = off 
custom_data = scripts\esc_bandit_ata
 
[ esc_bandit_ataka_4 ] : stalker_trader
 character_profile = esc_bandit_ataka_4 
spec_rank = veteran 
community = bandit 
use_single_item_rule = off 
can_select_items = off 
custom_data = scripts\esc_bandit_ata
 
[ esc_bandit_ataka_5 ] : stalker_trader
 character_profile = esc_bandit_ataka_5 
spec_rank = veteran 
community = bandit 
use_single_item_rule = off 
can_select_items = off 
custom_data = scripts\esc_bandit_ata
 
[ esc_bandit_ataka_6 ] : stalker_trader
 character_profile = esc_bandit_ataka_6 
spec_rank = veteran 
community = bandit 
use_single_item_rule = off 
can_select_items = off 
custom_data = scripts\esc_bandit_ata
 


   
Цитата