Голосование

Как вы относитесь к играм в жанре "симулятор колонии"?












Оформление



Пользователей
  • Всего: 29196
  • Последний: hoy545
Сейчас на форуме
Пользователи: 1
Гостей: 575
Всего: 576

0 Пользователей и 1 Гость просматривают эту тему.

Тема: Как добавить в игру новую книгу?  (Прочитано 7333 раз)

  • Сообщений: 47
    • Просмотр профиля
0
« : 03 Сентября, 2009, 22:06 »
Хочу спросить у зубров модостроения как добавить новую книгу в игру?
Как выбрать ей параметры: например, читаемая или дает постоянный эффект, какие скиллы меняет и т.д

Если такая тема уже существует, то прошу модераторов удалить мою и дать ссылку на существующию тему.

Сам пытался пользоваться поиском, но он целые сутки не работает  :( По ходу сайт слишком загруженный

« Последнее редактирование: 17 Сентября, 2009, 21:38 от Express »
  • Сообщений: 47
    • Просмотр профиля
0
« Ответ #1 : 17 Сентября, 2009, 21:39 »
Неужели не у кого нету мыслей на этот счет...
В игру, что вообще невозможно добавить новую книгу?

  • Сообщений: 190
  • ЗАБАНЕН!
    • Просмотр профиля
    • http://gandalfs-klan.ucoz.ru/
0
« Ответ #2 : 26 Июля, 2010, 10:13 »
новую книгу сделать можно

  • Сообщений: 3727
  • За создание технических проектов различного характера За регистрацию на форуме не позже сентября 2008 года Призер конкурса Мастер полигона и текселя
    • Просмотр профиля
0
« Ответ #3 : 26 Июля, 2010, 18:02 »
новую книгу сделать можно
написать так каждый могёт,ты напиши лучше как.

«Самая большая проблема для теории эволюции — как возникла жизнь. Поскольку для создания белков нужна РНК, для создания РНК нужна ДНК, а для создания ДНК нужны белки. То есть эта проблема серьёзнее, чем "что возникло раньше — курица или яйцо"».
Джеффри Томкинс, Ph.D. (генетика), Университет Клемсона.
  • Сообщений: 9
    • Просмотр профиля
0
« Ответ #4 : 28 Августа, 2010, 01:48 »
Так никто способа добавить новую книгу и не нашел? Тогда схожий вопрос - как модифицировать старую книгу, чтоб она давала другой стат?

  • Сообщений: 4024
  • За регистрацию на форуме не позже декабря 2011 года и не менее 3000 постов
    • Просмотр профиля
+1
« Ответ #5 : 28 Августа, 2010, 04:03 »
Книгу не нужно модифицировать или еще что с ней делать, сама книга ничего не дает - это только иконка....
Просто её наличие в инвентаре запускает триггер в модуле-симпл-тригерс, который по прошествии определенного времени прибавляет заданный навык. В о бшем если в модульке разбираешься набери название какой нибудь книжки и пошарь по всему коду, посмотри какие тригеры эта книжка запускает, добавить-изменить не сложно будет.
А если не разбираешься, тогда забей на это дело, не стоит оно того, пусть лучше ГГ не грамотный будет "Во многих знания многия печали...." :)

вот книгочтение как оно есть в варбанде: (1, [(neg|map_free),
       (gt, "$g_player_reading_book", 0),
       (player_has_item, "$g_player_reading_book"),
       (store_attribute_level, ":int", "trp_player", ca_intelligence),
       (item_get_slot, ":int_req", "$g_player_reading_book", slot_item_intelligence_requirement),
       (le, ":int_req", ":int"),
       (item_get_slot, ":book_reading_progress", "$g_player_reading_book", slot_item_book_reading_progress),
       (item_get_slot, ":book_read", "$g_player_reading_book", slot_item_book_read),
       (eq, ":book_read", 0),
       (val_add, ":book_reading_progress", 7),
       (item_set_slot, "$g_player_reading_book", slot_item_book_reading_progress, ":book_reading_progress"),
       (ge, ":book_reading_progress", 1000),
       (item_set_slot, "$g_player_reading_book", slot_item_book_read, 1),
       (str_store_item_name, s1, "$g_player_reading_book"),
       (str_clear, s2),
       (try_begin),
         (eq, "$g_player_reading_book", "itm_book_tactics"),
         (troop_raise_skill, "trp_player", "skl_tactics", 1),
         (str_store_string, s2, "@ Your tactics skill has increased by 1."),
       (else_try),
         (eq, "$g_player_reading_book", "itm_book_persuasion"),
         (troop_raise_skill, "trp_player", "skl_persuasion", 1),
         (str_store_string, s2, "@ Your persuasion skill has increased by 1."),
       (else_try),
         (eq, "$g_player_reading_book", "itm_book_leadership"),
         (troop_raise_skill, "trp_player", "skl_leadership", 1),
         (str_store_string, s2, "@ Your leadership skill has increased by 1."),
       (else_try),
         (eq, "$g_player_reading_book", "itm_book_intelligence"),
         (troop_raise_attribute, "trp_player", ca_intelligence, 1),
         (str_store_string, s2, "@ Your intelligence has increased by 1."),
       (else_try),
         (eq, "$g_player_reading_book", "itm_book_trade"),
         (troop_raise_skill, "trp_player", "skl_trade", 1),
         (str_store_string, s2, "@ Your trade skill has increased by 1."),
       (else_try),
         (eq, "$g_player_reading_book", "itm_book_weapon_mastery"),
         (troop_raise_skill, "trp_player", "skl_weapon_master", 1),
         (str_store_string, s2, "@ Your weapon master skill has increased by 1."),
       (else_try),
         (eq, "$g_player_reading_book", "itm_book_engineering"),
         (troop_raise_skill, "trp_player", "skl_engineer", 1),
         (str_store_string, s2, "@ Your engineer skill has increased by 1."),
       (try_end),
       
       (try_begin),
         (eq, "$g_infinite_camping", 0),
         (dialog_box, "@You have finished reading {s1}.{s2}", "@Book Read"),
       (try_end), 
             
       (assign, "$g_player_reading_book", 0),        
       ]),

  • Сообщений: 9
    • Просмотр профиля
0
« Ответ #6 : 30 Августа, 2010, 09:48 »
Спасибо, но как я понял описанное выше из моих познаний в инглише относится только к книге которую требуется reading, т.е. прочесть... А как дают навыки те, на которых написано что достаточно иметь их в инвентаре?

  • Сообщений: 4
    • Просмотр профиля
0
« Ответ #7 : 10 Декабря, 2010, 16:43 »
Самый лучший урок!!! :) Всё объяснили, всё всем пнятно!!! :thumbup:

  • Сообщений: 230
    • Просмотр профиля
0
« Ответ #8 : 15 Ноября, 2012, 15:25 »
Ещё один способ добавить книгу (на все навыки и параметры, а также имеющие двойной эффект: чтение и ношение на каждой) - идея из какого-то мода, уже не помню названия, реализация практической части - лично от меня (плюс, продажа книг и пленных у трактирщиков в качестве бонуса :)

Места в сообщении не хватало для полного раскрытия темы (50к символов), поэтому даю ссылку на гугл-документ, где подробно описаю что и как (правда лирических отступлений там меньше, ибо рабочее пространство - https://docs.google.com/document/d/1Z1wqRLHSZpul-JfWUSb0Sx7EPswfY7b3m0XhWD4jobk/edit#
Впрочем, благодаря помощи товарища HunterWolf вторую часть добавляю ниже :) ).

----
Книги: новые книги на каждый навык и параметр, объединение бонусов от чтения и ношения.
---

module_constants.py

Указываем границы где какие книги - что можно читать, что даёт бонус при ношении, а что вообще книгами не является.

reference_and_readable_books_begin _and_end

До
reference_books_begin = "itm_book_wound_treatment_reference"
reference_books_end   = trade_goods_begin
readable_books_begin = "itm_book_tactics"
readable_books_end   = reference_books_begin

После
reference_books_begin = "itm_book_trade"
reference_books_end   = trade_goods_begin
readable_books_begin = "itm_book_strength"
readable_books_end   = trade_goods_begin

module_dialogs.py

Добавляем трактирщикам пункты диалога по продаже книг (затем в инвентарь добавим и сами книги; до кучи ещё и продажу пленных, чтобы не бегать в поисках посредников =)

tavernkeeper_talk_-_books_and_prisonner

До
[anyone,"tavernkeeper_job_result_2", [], "I'll keep my ears open for other opportunities. You may want to ask again from time to time.", "close_window",[]],
 [anyone|plyr,"tavernkeeper_talk", [], "I guess I should leave now.", "close_window",[]],

После
[anyone,"tavernkeeper_job_result_2", [], "I'll keep my ears open for other opportunities. You may want to ask again from time to time.", "close_window",[]],
 [anyone|plyr,"tavernkeeper_talk", [[store_num_regular_prisoners,reg(0)],[ge,reg(0),1]], "(Prisonner)", "tavernkeeper_pretalk",[[change_screen_trade_prisoners]]],
 [anyone|plyr,"tavernkeeper_talk", [], "(Book)", "tavernkeeper_pretalk",[[change_screen_trade]]],
 [anyone|plyr,"tavernkeeper_talk", [], "I guess I should leave now.", "close_window",[]],

module_game_menus.py

Добавляем в меню действий лагеря чтение новых книг.

camp_action_read_book

До
("camp_action_read_book",0,
  "Choose a book to read:",
  "none",
  [],
    [
     ("action_read_book_1",[(player_has_item, "itm_book_tactics"),
                            (item_slot_eq, "itm_book_tactics", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_tactics"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_tactics"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_2",[(player_has_item, "itm_book_persuasion"),
                            (item_slot_eq, "itm_book_persuasion", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_persuasion"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_persuasion"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_3",[(player_has_item, "itm_book_leadership"),
                            (item_slot_eq, "itm_book_leadership", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_leadership"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_leadership"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_4",[(player_has_item, "itm_book_intelligence"),
                            (item_slot_eq, "itm_book_intelligence", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_intelligence"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_intelligence"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_5",[(player_has_item, "itm_book_trade"),
                            (item_slot_eq, "itm_book_trade", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_trade"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_trade"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_6",[(player_has_item, "itm_book_weapon_mastery"),
                            (item_slot_eq, "itm_book_weapon_mastery", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_weapon_mastery"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_weapon_mastery"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_7",[(player_has_item, "itm_book_engineering"),
                            (item_slot_eq, "itm_book_engineering", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_engineering"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_engineering"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("camp_action_4",[],"Back to camp menu.",
      [(jump_to_menu, "mnu_camp"),
       ]
      ),
     ]
 ),

После
("camp_action_read_book",0,
  "Choose a book to read:",
  "none",
  [],
    [
     ("action_read_book_101",[(player_has_item, "itm_book_strength"),
                            (item_slot_eq, "itm_book_strength", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_strength"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_strength"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_102",[(player_has_item, "itm_book_agility"),
                            (item_slot_eq, "itm_book_agility", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_agility"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_agility"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_103",[(player_has_item, "itm_book_intelligence"),
                            (item_slot_eq, "itm_book_intelligence", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_intelligence"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_intelligence"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_104",[(player_has_item, "itm_book_charisma"),
                            (item_slot_eq, "itm_book_charisma", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_charisma"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_charisma"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),

("action_read_book_1",[(player_has_item, "itm_book_trade"),
                            (item_slot_eq, "itm_book_trade", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_trade"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_trade"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_2",[(player_has_item, "itm_book_leadership"),
                            (item_slot_eq, "itm_book_leadership", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_leadership"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_leadership"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_3",[(player_has_item, "itm_book_prisoner_management"),
                            (item_slot_eq, "itm_book_prisoner_management", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_prisoner_management"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_prisoner_management"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_8",[(player_has_item, "itm_book_persuasion"),
                            (item_slot_eq, "itm_book_persuasion", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_persuasion"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_persuasion"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_9",[(player_has_item, "itm_book_engineer"),
                            (item_slot_eq, "itm_book_engineer", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_engineer"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_engineer"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_10",[(player_has_item, "itm_book_first_aid"),
                            (item_slot_eq, "itm_book_first_aid", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_first_aid"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_first_aid"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
    ("action_read_book_11",[(player_has_item, "itm_book_surgery"),
                            (item_slot_eq, "itm_book_surgery", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_surgery"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_surgery"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_12",[(player_has_item, "itm_book_wound_treatment"),
                            (item_slot_eq, "itm_book_wound_treatment", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_wound_treatment"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_wound_treatment"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_13",[(player_has_item, "itm_book_inventory_management"),
                            (item_slot_eq, "itm_book_inventory_management", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_inventory_management"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_inventory_management"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_14",[(player_has_item, "itm_book_spotting"),
                            (item_slot_eq, "itm_book_spotting", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_spotting"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_spotting"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_15",[(player_has_item, "itm_book_pathfinding"),
                            (item_slot_eq, "itm_book_pathfinding", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_pathfinding"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_pathfinding"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_16",[(player_has_item, "itm_book_tactics"),
                            (item_slot_eq, "itm_book_tactics", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_tactics"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_tactics"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_17",[(player_has_item, "itm_book_tracking"),
                            (item_slot_eq, "itm_book_tracking", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_tracking"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_tracking"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_18",[(player_has_item, "itm_book_trainer"),
                            (item_slot_eq, "itm_book_trainer", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_trainer"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_trainer"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_23",[(player_has_item, "itm_book_looting"),
                            (item_slot_eq, "itm_book_looting", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_looting"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_looting"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_24",[(player_has_item, "itm_book_horse_archery"),
                            (item_slot_eq, "itm_book_horse_archery", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_horse_archery"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_horse_archery"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_25",[(player_has_item, "itm_book_riding"),
                            (item_slot_eq, "itm_book_riding", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_riding"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_riding"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_26",[(player_has_item, "itm_book_athletics"),
                            (item_slot_eq, "itm_book_athletics", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_athletics"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_athletics"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_27",[(player_has_item, "itm_book_shield"),
                            (item_slot_eq, "itm_book_shield", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_shield"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_shield"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
      ("action_read_book_28",[(player_has_item, "itm_book_weapon_master"),
                            (item_slot_eq, "itm_book_weapon_master", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_weapon_master"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_weapon_master"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_34",[(player_has_item, "itm_book_power_draw"),
                            (item_slot_eq, "itm_book_power_draw", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_power_draw"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_power_draw"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_35",[(player_has_item, "itm_book_power_throw"),
                            (item_slot_eq, "itm_book_power_throw", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_power_throw"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_power_throw"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_36",[(player_has_item, "itm_book_power_strike"),
                            (item_slot_eq, "itm_book_power_strike", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_power_strike"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_power_strike"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("action_read_book_37",[(player_has_item, "itm_book_ironflesh"),
                            (item_slot_eq, "itm_book_ironflesh", slot_item_book_read, 0),
                            (str_store_item_name, s1, "itm_book_ironflesh"),
                            ],"{s1}.",
      [(assign, "$temp", "itm_book_ironflesh"),
       (jump_to_menu, "mnu_camp_action_read_book_start"),
       ]
      ),
     ("camp_action_4",[],"Back to camp menu.",
      [(jump_to_menu, "mnu_camp"),
       ]
      ),
     ]
 ),

module_items.py

Добавляем новые книги в список вещей (а то какие-то нематериальные объекты получаются :)

До
# A treatise on The Method of Mechanical Theorems Archimedes

#This book must be at the beginning of readable books

["book_tactics","De Re Militari", [("book_a",0)], itp_type_book, 0, 4000,weight(2)|abundance(100),imodbits_none],
["book_persuasion","Rhetorica ad Herennium", [("book_b",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_leadership","The Life of Alixenus the Great", [("book_d",0)], itp_type_book, 0, 4200,weight(2)|abundance(100),imodbits_none],
["book_intelligence","Essays on Logic", [("book_e",0)], itp_type_book, 0, 2900,weight(2)|abundance(100),imodbits_none],
["book_trade","A Treatise on the Value of Things", [("book_f",0)], itp_type_book, 0, 3100,weight(2)|abundance(100),imodbits_none],
["book_weapon_mastery", "On the Art of Fighting with Swords", [("book_d",0)], itp_type_book, 0, 4200,weight(2)|abundance(100),imodbits_none],
["book_engineering","Method of Mechanical Theorems", [("book_open",0)], itp_type_book, 0, 4000,weight(2)|abundance(100),imodbits_none],

#Reference books
#This book must be at the beginning of reference books

["book_wound_treatment_reference","The Book of Healing", [("book_c",0)], itp_type_book, 0, 3500,weight(2)|abundance(100),imodbits_none],
["book_training_reference","Manual of Arms", [("book_open",0)], itp_type_book, 0, 3500,weight(2)|abundance(100),imodbits_none],
["book_surgery_reference","The Great Book of Surgery", [("book_c",0)], itp_type_book, 0, 3500,weight(2)|abundance(100),imodbits_none],

После
# A treatise on The Method of Mechanical Theorems Archimedes

#This book must be at the beginning of readable books

["book_strength","Strength", [("book_e",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_agility","Agility", [("book_e",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_intelligence","Intelligence (Essays on Logic)", [("book_e",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_charisma","Charisma", [("book_e",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],

#Reference books
#This book must be at the beginning of reference books

["book_trade","Trade (A Treatise on the Value of Things)", [("book_f",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_leadership","Leadership (The Life of Alixenus the Great)", [("book_d",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_prisoner_management","Prisoner_management", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_persuasion","Persuasion (Rhetorica ad Herennium)", [("book_b",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_engineer","Engineer (Method of Mechanical Theorems)", [("book_open",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_first_aid","First_aid", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_surgery","Surgery (The Great Book of Surgery)", [("book_c",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_wound_treatment","Wound_treatment (The Book of Healing)", [("book_c",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_inventory_management","Inventory_management", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_spotting","Spotting", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_pathfinding","Pathfinding", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_tactics","Tactics (De Re Militari)", [("book_a",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_tracking","Tracking", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_trainer","Trainer (Manual of Arms)", [("book_open",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_looting","Looting", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_horse_archery","Horse_archery", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_riding","Riding", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_athletics","Athletics", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_shield","Shield", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_weapon_master", "Weapon Master (On the Art of Fighting with Swords)", [("book_d",0)], itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_power_draw","Power_draw", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_power_throw","Power_throw", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_power_strike","Power_strike", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],
["book_ironflesh","Ironflesh", [("book_a",0)], itp_merchandise|itp_type_book, 0, 5000,weight(2)|abundance(100),imodbits_none],

module_scripts.py

Ставим требование интеллекта книгам на 9 - как раз среднее значение образования в те времена ("ученье - свет" =)

Setting book intelligence requirements

До
      # Setting book intelligence requirements
     (item_set_slot, "itm_book_tactics", slot_item_intelligence_requirement, 9),
     (item_set_slot, "itm_book_persuasion", slot_item_intelligence_requirement, 8),
     (item_set_slot, "itm_book_leadership", slot_item_intelligence_requirement, 7),
     (item_set_slot, "itm_book_intelligence", slot_item_intelligence_requirement, 10),
     (item_set_slot, "itm_book_trade", slot_item_intelligence_requirement, 11),
     (item_set_slot, "itm_book_weapon_mastery", slot_item_intelligence_requirement, 9),
     (item_set_slot, "itm_book_engineering", slot_item_intelligence_requirement, 12),

     (item_set_slot, "itm_book_wound_treatment_reference", slot_item_intelligence_requirement, 10),
     (item_set_slot, "itm_book_training_reference", slot_item_intelligence_requirement, 10),
     (item_set_slot, "itm_book_surgery_reference", slot_item_intelligence_requirement, 10),   
    ]),

После
     # Setting book intelligence requirements

(item_set_slot, "itm_book_strength", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_agility", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_intelligence", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_charisma", slot_item_intelligence_requirement, 9),

     (item_set_slot, "itm_book_trade", slot_item_intelligence_requirement, 9),
     (item_set_slot, "itm_book_leadership", slot_item_intelligence_requirement, 9),
      (item_set_slot, "itm_book_prisoner_management", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_persuasion", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_engineer", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_first_aid", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_surgery", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_wound_treatment", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_inventory_management", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_spotting", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_pathfinding", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_tactics", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_tracking", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_trainer", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_looting", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_horse_archery", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_riding", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_athletics", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_shield", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_weapon_master", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_power_draw", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_power_throw", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_power_strike", slot_item_intelligence_requirement, 9),
       (item_set_slot, "itm_book_ironflesh", slot_item_intelligence_requirement, 9),   
    ]),

Добавляем текстовое пояснение к книгам (а то можно и не понять что это за чудо перед нами нарисовалось :D )

game_get_item_extra_text

До
          (try_begin),
           (eq, ":item_no", "itm_book_wound_treatment_reference"),
           (str_store_string, s1, "@wound treament"),
         (else_try),
           (eq, ":item_no", "itm_book_training_reference"),
           (str_store_string, s1, "@training"),
         (else_try),
           (eq, ":item_no", "itm_book_surgery_reference"),
           (str_store_string, s1, "@surgery"),
         (try_end),
         (set_result_string, "@+1 to {s1} while in inventory"),
         (set_trigger_result, 0xFFEEDD),
       (try_end),
     (try_end),
 ]),

После
         (try_begin),
           (eq, ":item_no", "itm_book_trade"),
           (str_store_string, s1, "@trade"),
         (else_try),
           (eq, ":item_no", "itm_book_leadership"),
           (str_store_string, s1, "@leadership"),
         (else_try),
           (eq, ":item_no", "itm_book_prisoner_management"),
           (str_store_string, s1, "@prisoner_management"),
         (else_try),
           (eq, ":item_no", "itm_book_persuasion"),
           (str_store_string, s1, "@persuasion"),
         (else_try),
           (eq, ":item_no", "itm_book_engineer"),
           (str_store_string, s1, "@engineer"),
         (else_try),
           (eq, ":item_no", "itm_book_first_aid"),
           (str_store_string, s1, "@first_aid"),
         (else_try),
           (eq, ":item_no", "itm_book_surgery"),
           (str_store_string, s1, "@surgery"),
         (else_try),
           (eq, ":item_no", "itm_book_wound_treatment"),
           (str_store_string, s1, "@wound treament"),
         (else_try),
           (eq, ":item_no", "itm_book_inventory_management"),
           (str_store_string, s1, "@inventory_management"),
         (else_try),
           (eq, ":item_no", "itm_book_spotting"),
           (str_store_string, s1, "@spotting"),
         (else_try),
           (eq, ":item_no", "itm_book_pathfinding"),
           (str_store_string, s1, "@pathfinding"),
         (else_try),
           (eq, ":item_no", "itm_book_tactics"),
           (str_store_string, s1, "@tactics"),
         (else_try),
           (eq, ":item_no", "itm_book_tracking"),
           (str_store_string, s1, "@tracking"),
         (else_try),
           (eq, ":item_no", "itm_book_trainer"),
           (str_store_string, s1, "@trainer"),
         (else_try),
           (eq, ":item_no", "itm_book_looting"),
           (str_store_string, s1, "@looting"),
         (else_try),
           (eq, ":item_no", "itm_book_horse_archery"),
           (str_store_string, s1, "@horse_archery"),
         (else_try),
           (eq, ":item_no", "itm_book_riding"),
           (str_store_string, s1, "@riding"),
         (else_try),
           (eq, ":item_no", "itm_book_athletics"),
           (str_store_string, s1, "@athletics"),
         (else_try),
           (eq, ":item_no", "itm_book_shield"),
           (str_store_string, s1, "@shield"),
         (else_try),
           (eq, ":item_no", "itm_book_weapon_master"),
           (str_store_string, s1, "@weapon_master"),
         (else_try),
           (eq, ":item_no", "itm_book_power_draw"),
           (str_store_string, s1, "@power_draw"),
         (else_try),
           (eq, ":item_no", "itm_book_power_throw"),
           (str_store_string, s1, "@power_throw"),
         (else_try),
           (eq, ":item_no", "itm_book_power_strike"),
           (str_store_string, s1, "@power_strike"),
         (else_try),
           (eq, ":item_no", "itm_book_ironflesh"),
           (str_store_string, s1, "@ironflesh"),
         (try_end),
         (set_result_string, "@+1 to {s1} while in inventory"),
         (set_trigger_result, 0xFFEEDD),
       (try_end),
     (try_end),
 ]),

« Последнее редактирование: 15 Ноября, 2012, 17:37 от Oltopeteeh »
  • Фракция: Наемники
Уважаю креатив, ценю позитив, люблю Mount&Blade =)
  • Сообщений: 7578
  • За наиболее важные для развития сайта идеи За особо выдающиеся авторские тексты За регистрацию на форуме не позже декабря 2011 года и не менее 3000 постов И создали они сайт... Призер конкурса Футболка по версии Всадников
    • Просмотр профиля
0
« Ответ #9 : 15 Ноября, 2012, 16:29 »
Oltopeteeh, Можете прислать мне в личку в виде отдельных сообщений(там то же ограничение) я запощу несколько сообщений подряд, что бы было наглядно, только сразу в коде и с желаемым вами оформлением (оформление тоже в общем коде ) иначе не смогу запостить вместе bb-кодом

Моя конфигурация:
Нормальная, мне хватает.
  • Сообщений: 230
    • Просмотр профиля
0
« Ответ #10 : 15 Ноября, 2012, 17:46 »
Добавляем бонус от книг (всё своё ношу с собой :) )

game_get_skill_modifier_for_troop

До
    (try_begin),
    (eq, ":skill_no", "skl_wound_treatment"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_wound_treatment_reference"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_trainer"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_training_reference"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_surgery"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_surgery_reference"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (try_end),
    (set_trigger_result, ":modifier_value"),
    ]),

После
    (try_begin),
    (eq, ":skill_no", "skl_trade"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_trade"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_leadership"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_leadership"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_prisoner_management"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_prisoner_management"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_persuasion"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_persuasion"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_engineer"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_engineer"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_first_aid"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_first_aid"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_surgery"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_surgery"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_wound_treatment"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_wound_treatment"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_inventory_management"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_inventory_management"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_spotting"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_spotting"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_pathfinding"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_pathfinding"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_tactics"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_tactics"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_tracking"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_tracking"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_trainer"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_trainer"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_looting"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_looting"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_horse_archery"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_horse_archery"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_riding"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_riding"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_athletics"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_athletics"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_shield"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_shield"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_weapon_master"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_weapon_master"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_power_draw"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_power_draw"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_power_throw"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_power_throw"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_power_strike"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_power_strike"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (else_try),
    (eq, ":skill_no", "skl_ironflesh"),
    (call_script, "script_get_troop_item_amount", ":troop_no", "itm_book_ironflesh"),
    (gt, reg0, 0),
    (val_add, ":modifier_value", 1),
    (try_end),

module_simple_triggers.py

Ускоряем чтение книг (по приблизительным расчетам, 6-кратное ускорение позволяет прочесть книгу за полный день отдыха :-)

book_reading_progress ( )

В комментарии старое значение (оставляю для истории мода и упрощения вылова багов :)
#        (val_add, ":book_reading_progress", 7),
     (val_add, ":book_reading_progress", 42),

Бонус от прочтения книг (знающий причины и следствия лучше разбирается в том, чт твориться прямо сейчас :) )

player_reading_book_-_skill has increased by 1

До
      (try_begin),
       (eq, "$g_player_reading_book", "itm_book_tactics"),
       (troop_raise_skill, "trp_player", "skl_tactics", 1),
       (str_store_string, s2, "@ Your tactics skill has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_persuasion"),
       (troop_raise_skill, "trp_player", "skl_persuasion", 1),
       (str_store_string, s2, "@ Your persuasion skill has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_leadership"),
       (troop_raise_skill, "trp_player", "skl_leadership", 1),
       (str_store_string, s2, "@ Your leadership skill has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_intelligence"),
       (troop_raise_attribute, "trp_player", ca_intelligence, 1),
       (str_store_string, s2, "@ Your intelligence has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_trade"),
       (troop_raise_skill, "trp_player", "skl_trade", 1),
       (str_store_string, s2, "@ Your trade skill has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_weapon_mastery"),
       (troop_raise_skill, "trp_player", "skl_weapon_master", 1),
       (str_store_string, s2, "@ Your weapon master skill has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_engineering"),
       (troop_raise_skill, "trp_player", "skl_engineer", 1),
       (str_store_string, s2, "@ Your engineer skill has increased by 1."),
     (try_end),

После
      (try_begin),
       (eq, "$g_player_reading_book", "itm_book_trade"),
       (troop_raise_skill, "trp_player", "skl_trade", 1),
       (str_store_string, s2, "@ Your skill_trade has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_leadership"),
       (troop_raise_skill, "trp_player", "skl_leadership", 1),
       (str_store_string, s2, "@ Your skill_leadership has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_prisoner_management"),
       (troop_raise_skill, "trp_player", "skl_prisoner_management", 1),
       (str_store_string, s2, "@ Your skill_prisoner_management has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_persuasion"),
       (troop_raise_skill, "trp_player", "skl_persuasion", 1),
       (str_store_string, s2, "@ Your skill_persuasion has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_engineer"),
       (troop_raise_skill, "trp_player", "skl_engineer", 1),
       (str_store_string, s2, "@ Your skill_engineer has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_first_aid"),
       (troop_raise_skill, "trp_player", "skl_first_aid", 1),
       (str_store_string, s2, "@ Your skill_first_aid has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_surgery"),
       (troop_raise_skill, "trp_player", "skl_surgery", 1),
       (str_store_string, s2, "@ Your skill_surgery has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_wound_treatment"),
       (troop_raise_skill, "trp_player", "skl_wound_treatment", 1),
       (str_store_string, s2, "@ Your skill_wound_treatment has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_inventory_management"),
       (troop_raise_skill, "trp_player", "skl_inventory_management", 1),
       (str_store_string, s2, "@ Your skill_inventory_management has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_spotting"),
       (troop_raise_skill, "trp_player", "skl_spotting", 1),
       (str_store_string, s2, "@ Your skill_spotting has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_pathfinding"),
       (troop_raise_skill, "trp_player", "skl_pathfinding", 1),
       (str_store_string, s2, "@ Your skill_pathfinding has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_tactics"),
       (troop_raise_skill, "trp_player", "skl_tactics", 1),
       (str_store_string, s2, "@ Your skill_tactics has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_tracking"),
       (troop_raise_skill, "trp_player", "skl_tracking", 1),
       (str_store_string, s2, "@ Your skill_tracking has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_trainer"),
       (troop_raise_skill, "trp_player", "skl_trainer", 1),
       (str_store_string, s2, "@ Your skill_trainer has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_looting"),
       (troop_raise_skill, "trp_player", "skl_looting", 1),
       (str_store_string, s2, "@ Your skill_looting has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_horse_archery"),
       (troop_raise_skill, "trp_player", "skl_horse_archery", 1),
       (str_store_string, s2, "@ Your skill_horse_archery has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_riding"),
       (troop_raise_skill, "trp_player", "skl_riding", 1),
       (str_store_string, s2, "@ Your skill_riding has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_athletics"),
       (troop_raise_skill, "trp_player", "skl_athletics", 1),
       (str_store_string, s2, "@ Your skill_athletics has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_shield"),
       (troop_raise_skill, "trp_player", "skl_shield", 1),
       (str_store_string, s2, "@ Your skill_shield has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_weapon_master"),
       (troop_raise_skill, "trp_player", "skl_weapon_master", 1),
       (str_store_string, s2, "@ Your skill_weapon_master has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_power_draw"),
       (troop_raise_skill, "trp_player", "skl_power_draw", 1),
       (str_store_string, s2, "@ Your skill_power_draw has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_power_throw"),
       (troop_raise_skill, "trp_player", "skl_power_throw", 1),
       (str_store_string, s2, "@ Your skill_power_throw has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_power_strike"),
       (troop_raise_skill, "trp_player", "skl_power_strike", 1),
       (str_store_string, s2, "@ Your skill_power_strike has increased by 1."),
     (else_try),
       (eq, "$g_player_reading_book", "itm_book_ironflesh"),
       (troop_raise_skill, "trp_player", "skl_ironflesh", 1),
       (str_store_string, s2, "@ Your skill_ironflesh has increased by 1."),
     (else_try),
    (eq, "$g_player_reading_book", "itm_book_strength"),
       (troop_raise_attribute, "trp_player", ca_strength, 1),
       (str_store_string, s2, "@ Your strength has increased by 1."),
     (else_try),
    (eq, "$g_player_reading_book", "itm_book_agility"),
       (troop_raise_attribute, "trp_player", ca_agility, 1),
       (str_store_string, s2, "@ Your agility has increased by 1."),
     (else_try),
    (eq, "$g_player_reading_book", "itm_book_intelligence"),
       (troop_raise_attribute, "trp_player", ca_intelligence, 1),
       (str_store_string, s2, "@ Your intelligence has increased by 1."),
     (else_try),
    (eq, "$g_player_reading_book", "itm_book_charisma"),
       (troop_raise_attribute, "trp_player", ca_charisma, 1),

---
module_troops.py
---

Добавляем новые книги торговцам книг (специалисты получают новинки быстрее, чем простые смертные :) )

tavern_bookseller
 
До
["tavern_bookseller_1","Book_Merchant","Book_Merchant",tf_hero|tf_is_merchant|tf_randomize_face, 0, reserved, fac_commoners,[itm_fur_coat,itm_hide_boots,
              itm_book_tactics, itm_book_persuasion, itm_book_wound_treatment_reference, itm_book_leadership,
              itm_book_intelligence, itm_book_training_reference, itm_book_surgery_reference],def_attrib|level(5),wp(20),knows_common,merchant_face_1,merchant_face_2],
 ["tavern_bookseller_2","Book_Merchant","Book_Merchant",tf_hero|tf_is_merchant|tf_randomize_face, 0, reserved, fac_commoners,[itm_fur_coat,itm_hide_boots,
              itm_book_wound_treatment_reference, itm_book_leadership, itm_book_intelligence, itm_book_trade,
              itm_book_engineering, itm_book_weapon_mastery],def_attrib|level(5),wp(20),knows_common,merchant_face_1, merchant_face_2],

После
["tavern_bookseller_1","Book_Merchant","Book_Merchant",tf_hero|tf_is_merchant|tf_randomize_face, 0, reserved, fac_commoners,[itm_fur_coat,itm_hide_boots,
              itm_book_trade, itm_book_leadership, itm_book_prisoner_management, itm_book_persuasion, itm_book_engineer, itm_book_first_aid, itm_book_surgery, itm_book_wound_treatment, itm_book_inventory_management, itm_book_spotting, itm_book_pathfinding, itm_book_tactics, itm_book_strength,  itm_book_agility],def_attrib|level(5),wp(20),knows_common,merchant_face_1,merchant_face_2],

["tavern_bookseller_2","Book_Merchant","Book_Merchant",tf_hero|tf_is_merchant|tf_randomize_face, 0, reserved, fac_commoners,[itm_fur_coat,itm_hide_boots,
              itm_book_tracking, itm_book_trainer, itm_book_looting, itm_book_horse_archery, itm_book_riding, itm_book_athletics, itm_book_shield, itm_book_weapon_master, itm_book_power_draw, itm_book_power_throw, itm_book_power_strike, itm_book_ironflesh, itm_book_intelligence, itm_book_charisma],def_attrib|level(5),wp(20),knows_common,merchant_face_1, merchant_face_2],

А теперь добавляем книги трактирщикам (таверна во времена средневековья была центром общения для самых разных людей, иногда, даже владелец был грамотным, или хотя бы представлял реальную цену рукописных книг ;-) ).

Tavern keepers

До
#Tavern keepers

 ["town_1_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_1_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,       itm_wrapping_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_2_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_2_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,       itm_leather_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_3_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_3_tavern|entry(9),0,   fac_commoners,[itm_woolen_dress,        itm_hide_boots],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_4_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_4_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,       itm_leather_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_5_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_5_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,       itm_hide_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_6_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_6_tavern|entry(9),0,   fac_commoners,[itm_woolen_dress,        itm_hide_boots],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_7_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_7_tavern|entry(9),0,   fac_commoners,[itm_woolen_dress,        itm_leather_boots,      itm_headcloth],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_8_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_8_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,      itm_leather_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_9_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_9_tavern|entry(9),0,   fac_commoners,[itm_woolen_dress,        itm_nomad_boots],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_10_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_10_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,        itm_hide_boots],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_11_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_11_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,        itm_nomad_boots],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_12_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_12_tavern|entry(9),0,  fac_commoners,[itm_leather_apron,       itm_hide_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_13_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_13_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,        itm_hide_boots,     itm_headcloth],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_14_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_14_tavern|entry(9),0,  fac_commoners,[itm_shirt,               itm_leather_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_15_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_15_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,        itm_nomad_boots],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_16_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_16_tavern|entry(9),0,  fac_commoners,[itm_leather_apron,       itm_hide_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_17_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_17_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,        itm_hide_boots,     itm_headcloth],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_18_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_18_tavern|entry(9),0,  fac_commoners,[itm_shirt,               itm_leather_boots],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_19_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_19_tavern|entry(9),0,  fac_commoners,[itm_sarranid_dress_a,        itm_sarranid_boots_a],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_20_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_20_tavern|entry(9),0,  fac_commoners,[itm_sarranid_cloth_robe,       itm_sarranid_boots_a],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_21_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_21_tavern|entry(9),0,  fac_commoners,[itm_sarranid_common_dress,        itm_sarranid_boots_a,     itm_headcloth],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_22_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_22_tavern|entry(9),0,  fac_commoners,[itm_sarranid_cloth_robe_b,               itm_sarranid_boots_a],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],

После
#Tavern keepers

 ["town_1_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_1_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,itm_wrapping_boots,
              itm_book_trade],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_2_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_2_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,itm_leather_boots,
              itm_book_leadership],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_3_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_3_tavern|entry(9),0,   fac_commoners,[itm_woolen_dress,itm_hide_boots,
              itm_book_prisoner_management, itm_book_persuasion],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_4_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_4_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,itm_leather_boots,
              itm_book_engineer],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_5_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_5_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,itm_hide_boots,
              itm_book_first_aid],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_6_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_6_tavern|entry(9),0,   fac_commoners,[itm_woolen_dress,itm_hide_boots,
              itm_book_surgery],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_7_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_7_tavern|entry(9),0,   fac_commoners,[itm_woolen_dress,itm_leather_boots,itm_headcloth,
              itm_book_wound_treatment],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_8_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_8_tavern|entry(9),0,   fac_commoners,[itm_leather_apron,itm_leather_boots,
              itm_book_inventory_management,itm_book_spotting],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_9_tavernkeeper", "Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_9_tavern|entry(9),0,   fac_commoners,[itm_woolen_dress,itm_nomad_boots,
              itm_book_pathfinding],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_10_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_10_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,itm_hide_boots,
              itm_book_tactics,itm_book_tracking],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_11_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_11_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,itm_nomad_boots,
              itm_book_trainer],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_12_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_12_tavern|entry(9),0,  fac_commoners,[itm_leather_apron,itm_hide_boots,
              itm_book_looting],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_13_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_13_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,itm_hide_boots,itm_headcloth,
              itm_book_horse_archery,itm_book_riding],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_14_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_14_tavern|entry(9),0,  fac_commoners,[itm_shirt,itm_leather_boots,
              itm_book_athletics,itm_book_shield],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_15_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_15_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,itm_nomad_boots,
              itm_book_weapon_master,itm_book_power_draw],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_16_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_16_tavern|entry(9),0,  fac_commoners,[itm_leather_apron,itm_hide_boots,
              itm_book_power_throw],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_17_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_17_tavern|entry(9),0,  fac_commoners,[itm_woolen_dress,itm_hide_boots,itm_headcloth,
              itm_book_power_strike],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_18_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_18_tavern|entry(9),0,  fac_commoners,[itm_shirt,itm_leather_boots,
              itm_book_ironflesh],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_19_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_19_tavern|entry(9),0,  fac_commoners,[itm_sarranid_dress_a,itm_sarranid_boots_a,
              itm_book_strength],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_20_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_20_tavern|entry(9),0,  fac_commoners,[itm_sarranid_cloth_robe,itm_sarranid_boots_a,
              itm_book_agility],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],
 ["town_21_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face|tf_female, scn_town_21_tavern|entry(9),0,  fac_commoners,[itm_sarranid_common_dress,itm_sarranid_boots_a,itm_headcloth,
              itm_book_intelligence],def_attrib|level(2),wp(20),knows_common, woman_face_1, woman_face_2],
 ["town_22_tavernkeeper","Tavern_Keeper","{!}Tavern_Keeper",tf_hero|tf_randomize_face,           scn_town_22_tavern|entry(9),0,  fac_commoners,[itm_sarranid_cloth_robe_b,itm_sarranid_boots_a,
              itm_book_charisma],def_attrib|level(2),wp(20),knows_common, mercenary_face_1, mercenary_face_2],


Добавлено: 15 Ноября, 2012, 17:49

Вот теперь всё влезло :)

« Последнее редактирование: 15 Ноября, 2012, 17:49 от Oltopeteeh »
  • Фракция: Наемники
Уважаю креатив, ценю позитив, люблю Mount&Blade =)

СиЧЪ Total War СиЧЪ Total War
Сайт "Всадники Кальрадии" не является СМИ. Администрация не несет ответственность за высказывания и публикацию каких-либо материалов, сделанные любыми пользователями форума, в том числе посредством личных и публичных сообщений. Материалы, размещенные на ресурсе третьими лицами, могут содержать информацию, не предназначенную для лиц, не достигнувших совершеннолетия. При обнаружении на ресурсе материалов, нарушающих законодательство Российской Федерации, необходимо обращаться к администрации.
Сайт работает на быстром VPS/VDS хостинге от FASTVPS


Powered by SMF 2.0 | SMF © Simple Machines LLC