Вторник, 07.05.2024, 20:53
Приветствую Вас Гость | RSS

stalker

Каталог статей

Главная » Статьи » Мои статьи

Новая группировка
Практика
Базовый уровень

1. Для начала в game_relations.ltx и в таблицу отношений группировок в конце и в заголовке добавляем название своей группировки и коэффициенты отношений к ней у других группировок. Также, не забываем прописать её собственное отношение к другим группировкам:
[communities_relations]
;|actor  |act_dol|act_fre|stalker|monolit|militar|killer |ecolog |dolg   |freedom|bandit |zombied|strange|trader|arena_enemy|wind|
;=================================================================================================================================
actor = 0,       0,       0,       0,  -5000,  -5000,  -5000,      0,       0,       0,  -5000,  -5000,       0,      0,  -5000, 0
actor_dolg = 0,       0,       0,      0,  -5000,   -500,  -5000,   5000,    600,  -5000,  -5000,  -5000,       0,      0,  -5000
actor_freedom = 0,       0,       0,       0,  -5000,  -5000,  -5000,  -1500,  -5000,   5000,       0,  -5000,       0,     0,  -5000, 0

stalker    = 0,       0,       0,       0,  -5000,  -5000,  -5000,      0,       0,       0,  -5000,  -5000,       0,      0,  -5000, 0
monolith = -5000,  -5000,  -5000,  -5000,   5000,  -5000,  -5000,  -5000,  -5000,  -5000,   5000,   5000,  -5000,     0,  -5000, 0
military = -5000,  -5000,  -5000,  -5000,  -5000,   5000,  -5000,      0,  -5000,  -5000,  -5000,  -5000,        0,     0,  -5000, 0
killer = -5000,  -5000,      0,  -5000,  -5000,  -5000,   5000,  -5000,  -5000,  -5000,       0,  -5000,  -5000,      0,  -5000, 0
ecolog = 0,     600,  -5000,      0,  -5000,   1000,  -5000,   5000,    500,  -5000,   -500,  -5000,       0,      0,      0, 0
dolg = 0,    600,  -5000,      0,  -5000,   -500,  -5000,   5000,   5000,  -5000,  -5000,  -5000,       0,      0,      0, 0
freedom = 0,  -5000,     600,       0,  -5000,  -5000,  -5000,  -1500,  -5000,   5000,       0,  -5000,       0,      0,      0, 0
bandit = -5000,  -5000,       0,  -5000,  -5000,   -500,      0,  -5000,  -5000,       0,       0,  -5000,  -5000,      0,  -5000, 0
zombied    = -5000,  -5000,  -5000,  -5000,   5000,  -5000,  -5000,  -5000,  -5000,  -5000,  -5000,   5000,  -5000,     0,  -5000, 0
stranger = 0,       0,       0,      0,  -5000,  -5000,  -5000,      0,       0,       0,   -500,  -5000,       0,      0,      0, 0
trader = 0,       0,       0,       0,       0,        0,       0,       0,       0,       0,       0,       0,      0,      0,      0
arena_enemy = -5000,  -5000,  -5000,  -5000,  -5000,  -5000,      0,      0,      0,  -5000,  -5000,      0,      0,      0,     0, 0

wind = 0,       0,       0,       0,  -5000,  -5000,  -5000,      0,       0,       0,  -5000,  -5000,       0,      0,  -5000, 0

Также, изменим эту строку, добавив туда имя и номер группировки:
;названия группировок
communities = actor, 0, actor_dolg, 1, actor_freedom, 2, stalker, 5, monolith, 6, military, 7, killer, 8, ecolog, 9, dolg, 10,
freedom, 11, bandit, 12, zombied, 13, stranger, 14, trader, 15, arena_enemy, 16, wind, 18,

Отсчет идет построчно начиная сверху. Хотя есть небольшой нюанс. У первых трех строк - нумерация начинается с нуля, с остальных группировок она идет как надо. Для wind выставили 18, так как мы эту группировку отделили от других.

Далее, в разделе [communities_sympathy] в конце добавляем свою группировку и коэффициент "впечатлительности" - чем он меньше, тем меньше отношение группировки будет меняться к вам в целом:
[communities_sympathy]
actor        =        0.0
actor_dolg    =        0.0
actor_freedom    =        0.0
stalker        =        0.0
monolith    =        0.0
military    =        0.0
killer        =        0.0
ecolog        =        0.0
dolg        =        0.1
freedom        =        0.1
bandit        =        0.0
zombied        =        0.0
trader        =        0.0
stranger    =        0.0
arena_enemy    =            0.0
wind         =         0.0

2. После этого в файле death_manager.script ищем строку local community_list и в скобках добавляем название своей группировки:
function init_drop_settings()
    local community_list = { "stalker", "dolg", "freedom", "bandit", "military", "zombied", "ecolog", "killer", "monolith",
"arena_enemy", "actor_dolg", "wind" }

3. В файле death_items_by_communities.ltx пишем [x]:stalker (вместо x - название вашей группировки):
[...]
af_dummy_spring            = 0
af_fuzz_kolobok            = 0

;Еда
vodka                    = 0

[arena_enemy]
[actor_dolg]

[wind]: stalker
bread                    = 0
kolbasa                    = 0
vodka                    = 0
energy_drink            = 0.3

4. Если предусматривается респавн бойцов новой группировки, в se_respawn.script прописываем в local simMaxCount = { после строчек с зомбированными сталкерами строку:
wind_novice = 20, wind_regular = 20, wind_veteran = 20, wind_master = 6,

5. Чтобы при убийстве непися новой группировки игра не вылетала в xr_statistic.script,

после строки:
zombied_novice = 1, zombied_experienced = 2, zombied_veteran = 3, zombied_master = 4,

пишем
dark_stalker_novice = 1, dark_stalker_experienced = 2, dark_stalker_veteran = 3, dark_stalker_master = 4,


6. Ну а в character_desc_x.xml выбираем любого NPC (или группу) и меняем группировку на свою:
<!---esc_wolf--->
    <specific_character id="esc_wolf" team_default = "1">
        <name>esc_wolf_name</name>
        <icon>ui_npc_u_stalker_neytral_balon_1</icon>
        <bio>esc_wolf_bio</bio>

        <class>esc_wolf</class>
        <community>wind</community>
        [...]

7. Чтобы у персонажа в графе "Группировка" отображалось не "wind", а "Ветер", зарегистрируем соответствующую строку в файле string_table_general.xml:

<string_table>
    <string id="wind">
        <text>Ветер</text>
    </string>
    <string id="actor">
        <text>Одиночка</text>
    </string>
    [...]

8. Существует возможность создать для нашей новой группировки места, где они будут ходить (*_terrain брать из m_stalker.ltx):

То есть, к примеру, существует секция:
[stalker_terrain]
    255,000,255,255
    008,001,255,255 ;Разрешено ходить по опасным местам на баре
    012,001,255,255 ;Разрешено ходить по опасным местам на Милитари

Тогда можно создать новую, по аналогии:
[wind_terrain]
    255,000,255,255
    008,001,255,255 ;Разрешено ходить по опасным местам на баре
    012,001,255,255 ;Разрешено ходить по опасным местам на Милитари
    010,001,255,255    ;Разрешено ходить по опасным местам на янтаре


Здесь, очевидно, указаны координаты самого уровня. Для каждого уровня существует своя начальная координата.
Продвинутый уровень

Такой метод достаточно примитивен. Это не полноценная группировка. Нам нужны соответствующие диалоги, возможность получения квестов и вступления в группировку, уникальные NPC.
Квесты

Добавим квесты, которые нужно выполнить для группировки. Пока - простые поручения распространенных типов.

Во-первых, пропишите в список диалогов персонажа следующие строки:
        <actor_dialog>[что-нибудь]_dialog</actor_dialog>
        <actor_dialog>[что-нибудь]_reward</actor_dialog>

Примеры названий: tm_trader_dialog, tm_wolf_dialog...

Внимание! Метод не проверен.

Этим мы добавили ему ветку диалога "Есть работа?", а также ветку для награды за квест/отказа от него. Теперь зарегистрируем в task_manager.ltx набор новых заданий.
[list]

[...]

;--------Wind------------------------
;----------Kill Stalker----
wind_kill_stalker
;----------Find Item----   
wind_find_item

[...]

;tasks for Wind   

[wind_find_item]
type = find_item
community = actor
text = [ссылка на текст с рассказом заказчика о задании]
description = [ссылка на текст с описанием задания]
parent = [имя NPC-заказчика]
target = scientific_outfit
reward_money = 5000
reward_reputation = +5
reward_rank = 4
reward_item = wpn_sig_m1
time = 86400


[wind_kill_stalker]
type = kill_stalker
community = actor
text = [ссылка на текст с рассказом заказчика о задании]
description = [ссылка на текст с описанием задания]
parent = [имя NPC-заказчика]
target = sim_stalker_master_master
reward_money = 4000
reward_reputation = +5
reward_rank = 9
reward_item = ammo_5.56x45_ap, ammo_5.56x45_ap, ammo_5.56x45_ap
time = 86400

Не забудьте прописать описания заданий в текстовые массивы. Подробнее о редактировании task_manager.ltx читайте в уроке, посвященном однотипным квестам.

Да, и зарегистрируйте сами ветки диалогов в файле dialogs.xml. Вот пример того, как это сделано для заданий "Долга":
    <dialog id="tm_dolg_dialog" priority="-1">
        <init_func>task_manager.init_dolg_task_dialog</init_func>
    </dialog>
    <dialog id="tm_dolg_reward" priority="0">
        <init_func>task_manager.init_dolg_reward_dialog</init_func>
        <precondition>task_manager.has_active_vendor_task</precondition>
    </dialog>

Соответственно, пройдем туда, куда указывает строка task_manager.init_dolg_task_dialog - в task_manager.script:
function init_dolg_task_dialog(dlg)     
    get_random_task():init_task_dialog(dlg, "dolg")

По аналогии делаем и с нашим "Ветром".
Вступление в группировку

Реализуем возможность вступления в группировку.

Прописываем в dialogs.script такие action'ы:
-----------------------------------------------------------------------------------
-- Community
-----------------------------------------------------------------------------------

[...]

function actor_set_wind (actor, npc)
printf ("ACTOR NOW IN WIND COMMUNITY"
if db.actor then
db.actor:set_character_community ("actor_wind", 0, 0)
end
return true
end

После чего создадим диалог, и сделаем в нем фразу с action'ом вида <action>actor_set_wind</action>. Советую изучить урок, посвященный диалогам.
Новые NPC

Лучше всего всё вышеприведенное повесить на нового, уникального персонажа. Способ его спавна описан здесь.
Категория: Мои статьи | Добавил: maslovmarkson (13.04.2010)
Просмотров: 5061 | Комментарии: 71 | Рейтинг: 0.0/0
Всего комментариев: 8
8 Elenanab  
0
Wow, this is a beneficial web page. Check out also my site

https://djchs.co.kr/bbs/board.php?bo_table=qna&wr_id=115777 най добрия дерматолог в българия

dd=+

7 Elenanab  
0
You've got possibly the best internet sites. Have a look at also my own site!

https://dragonballpowerscaling.com/index.php/User:KelvinQ926 най добрия дерматолог в българия

dd=+

6 gHgwem  
0
How towards Application a Mount Buller Holiday vacation


If yourself are taking into consideration a Mount Buller family vacation, yourself are picking a location holiday vacation that sets oneself aside towards the take it easy. It does not acquire prolonged for refreshing targeted visitors toward Mt Buller and Mansfield toward routinely drop inside of appreciate with the natural environment and globe of a calm oasis that tends to make for the suitable family vacation any season of 12 months. If yourself are fascinated within just coming up with a family vacation that is a very little substitute and a notch or 2 around the ordinary holiday, then oneself really should test a Mt. Buller holiday vacation for your up coming vacation. Below on your own will discover out something yourself require in direction of notice that will guidance by yourself application your Mansfield family vacation or upcoming particular vacation http://www.noclegi-w-rewalu-2016.com.pl/noclegi-w-rewalu/rewal-pokoje-w-maju-nad-morze - Rewal pokoje.
Mansfield Lodging will be in between your initial variables in the direction of monitor off of your in direction of do record. The to start with point on your own will need towards glimpse if oneself will be getting ease of Mt. Buller working day excursions will be the Alzburg vacation resort. This vacation resort deals all of the features yourself will need in direction of crank out your getaway a single that will be remembered for good. Oneself will drop in just appreciate all in excess of yet again at Alzburg the moment your self consider aspect within just their Mt Buller lodging systems, and yourself will be geared up toward reserve your up coming holiday below just before yourself even depart.
http://s11.postimg.org/wxsjmdbz7/jodlowa.jpg
Snowboarding could possibly be your match of conclusion and may well be the sole motive your self are contemplating this getaway. If therefore, your self will have to have towards consider a Mansfield lodging support that will aid on your own in just the preparations required for a Mansfield Ski Employ or Mt Buller carry tickets. Even though snowboarding is a fairly well known game inside the Place, if participants of your bash are not prepared for the slopes, by yourself may possibly furthermore search for hotels that will assistance oneself prepare Mt. Buller working day excursions that will satisfaction any traveler http://www.noclegi-w-rewalu-2016.com.pl/noclegi-w-rewalu/noclegi-w-rewalu-co-zabrac-na-plaze - Noclegi w Rewalu.
The summer months weeks offer you an abundance of possibilities for both Mt Buller working day excursions or resolution out of doors pursuits. Your self can love horse driving, mountain cycling, climbing, or even rock increasing if yourself are the hectic design and style. Snowboarding is not the simply game within the winter season, and yourself could possibly way too take into consideration snow shoeing, ice skating, or even tobogganing.
Within just addition towards a huge selection of actual physical routines that yourself can love, yourself too need toward track down Mansfield lodging that is around or centrally uncovered in the direction of the higher browsing and eating amenities inside the local. The community sections of Merrijig and Mansfield are property towards a selection of eating places that will give decisions that will make sure you any individual. Whether or not your self are seeking for a wonderful eating natural environment, or a informal eatery or café, on your own will locate it right here. Within addition, there is a substantial professional heart listed here dwelling in direction of banking companies, marketplaces, and pharmacies in the direction of meet up with any demands of yours that could possibly occur up all through your holiday http://www.pokoje-w-rewalu-2016.com.pl/plaza/pokoje-w-rewalu-wyprawa-z-maluchem - Pokoje w Rewalu.
As oneself can view, there are a selection of motives that generate Mt. Buller and Mansfield a vacation spot of determination for presently's traveler. If your self are searching for a vacation spot holiday vacation that is higher than regular within text of knowledge, start off designing your Mansfield lodging currently!

5 Alexidomfipt  
0
Portland Plano Riverside Santa Ana San Francisco San Diego Oakland Omaha New York



To Jamal family, I am very sorry for your loss... To Darwin,Lon, my thoughts and prayers have been with you everyday... He loved and cherished the three of you!

January 24, 2017
Stockton

https://www.youtube.com/watch?v=ZY-r-A58Er4 - Gerardo,Raphael,Loyd,Norris,Edmond,Oliver,Ty,Devon,Salvatore,Gustavo,Grady,Rudolp h,Dante,Zachery,Alphonso,Bryant,Benny,Sammy,Ervin,Art,Otto,Delmar,
Your friends Alton,Solomon,Timmy,Clint,Laurence,Arturo,Angelo,Denny,Hans,Kim,Boyd,Elliott,Budd y,Bennett,Ervin,Abraham,Courtney,Cary,Alonzo,Cole,Pete,Ethan,Humberto,Gus,Darius, Benito,Noah,Garry,Bret,Abel,Logan,Ferdinand,Garth,Bernardo,Luther,Collin,Joaquin, Denver,Owen,Willis,Bryce,Ulysses,Shaun,Trevor,Shelton,Rod,Agustin,Winston,Preston ,.

4 QuentinSnast  
0
this is the apropriate place to publish my topic. So if i'm wrong then delete this article - Новая группировка - Мои статьи - Каталог статей - SupComStalker.

This self-published selection is surprisingly comprehensive, offering everything you need to know to get started with WordPress SEO. It covers the basics and then some from keyword research to keyword analysis; permalinks to tags. It also offers tips for writing search-engine optimized content and how to optimize your content within the WordPress platform. http://bbs.dgjtjy.cn/home.php?mod=space&uid=83650 - real estate wordpress theme best This book isn’t designed for web development beginners but it is targeted toward those who aren’t so familiar with using WordPress. So, it makes some assumptions about your skill level: you know HTML and CSS already — you just need a friendly hand to point you in the right direction with WordPress. http://zhoubaitong.com/home.php?mod=space&uid=352437 - wordpress theme zeal

You can build a e-commerce/shop using the WooCommerce plugin without any problems, because the theme is WooCommerce ready wordpress real estate crm. And you can also create a multilingual portal, it is integrated and works perfect with WPML Multilingual Plugin wordpress real estate templates idx. http://bbs.fzuky.com/space-uid-712072.html - wordpress theme zerif pro The theme comes with lots of custom widgets, that will help you to build a really big and fantastic portal. Real estate wordpress theme with idx. You can use widgets as: Wordpress real estate websites, Advanced property search, Recent Agents, Recent Agencies, Recent Properties, Most commented blog posts and much more wordpress real estate themes free. You can select a header type for your site, the theme comes with a dark a light version for header wordpress real estate sites. http://www.2310889.com/home.php?mod=space&uid=88296 - wordpress theme zillah

Read more - real estate wordpress themes free
http://www.Todayhot.com.cn/space-uid-474402.html - real estate wordpress theme free download

3 Karennex  
0
Привет.
Приглашаю Вас на Правильный Lineage High Five сервер
Сервер понравится тем кто любит размерянную игру с замыслом на тотальное покорение.
Вероятно не понравится предпочитающим набежать и всех нагнуть.
Скользящим мимо любителям побегать по серверам неделькам, ловить нечего, т.к. старички их моментально накажут :)

Адрес http://l2immortal.com

2 rlotoman  
0
Уникальное лото 6 из 36
Наши игроки управляют своим шансом на выигрыш!
В нашей лотерее управление счастливым шансом в руках каждого участника.
Самое главное, что выигрышную комбинацию определяют сами игроки!
Достаточно только выбрать 6 чисел из 36 и назвать одно из них счастливым, как оно действительно осчастливит владельца лотерейного билета.
http://6-36.ru

1 groreagofep  
0
Уникальное лото 6 из 36
Чем же наше лото уникальное ?
Тем что Наши игроки управляют своим шансом на выигрыш!
Выигрыш в лотерею – невероятно редкая удача, счастливый шанс, выпадающий, возможно, один раз в жизни.
В нашей лотерее управление счастливым шансом в руках каждого участника.
Самое главное, что выигрышную комбинацию определяют сами игроки!
Достаточно только выбрать 6 чисел из 36 и назвать одно из них счастливым, как оно действительно осчастливит владельца лотерейного билета.
http://6-36.ru

Имя *:
Email *:
Код *:
Меню сайта
Форма входа
Категории раздела
Мои статьи [12]
Создание [3]
здесь все про создание чего-либо в stalker
Поиск
Наш опрос
Оцените мой сайт
Всего ответов: 402