Отправлено 01 февраля 2009 - 23:13
Ошибки:1) неверные условиянужно and I_LocalFaction empire_westand not I_LocalFaction roxolaniили and not I_LocalFaction empire_westand not I_LocalFaction roxolaniТы же пишешь and FactionIsLocal - при этом условии событие происходит, когда указанная в начале монитора в FactionType фракция под управлением игрока. Вообще вся эта строчка monitor_event FactionTurnStart FactionType empire_west обозначает, что событие будет происходить на ходе указанной фракции, в данном случае Короны Польской. 2) Слишком большые армии. Из-за того, что количество юнитов превышает лимит, происходят вылеты. 3) Неуказывание генеральского юнита.Когда в армии появляеться named character, ружно всегда указывать генеральского юнита, в нашем случае tatar han. 4) Была еще какая-то ошибка с юнитами (то ли неправильное правописание, то ли еще чего-то, но на старых стеках, я час мудрил, так и не разобрал даже в укороченном виде, упорно вылетало - я заменил другими юнитами, все пошло нормально).В целом я хочу сказать, что выполнено практически на отлично, мою идею вполне понял, и что я хотел увидеть, реализовал. При тестировании я обнаружил, что крымцев от Польши отвлекают ногаи, при доработке куда-нибудь их отправлю на это время. Сценарии записываються в один общий файл. Дальше идемВот такой вариант рабочий: monitor_event FactionTurnStart FactionType empire_westand I_TurnNumber = 1and I_LocalFaction empire_westand not I_LocalFaction roxolanispawn_armyfaction roxolanicharacter Oim-Kantemir, named character, command 6, influence 3, management 1, subterfuge 1, age 21, , x 85 y 78unit tatar han exp 2 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0end spawn_armyfaction roxolanicharacter Oim-Baba Oim-Argin, named character, command 3, influence 2, management 1, subterfuge 1, age 25, , x 88 y 80unit tatar han exp 2 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0end spawn_armyfaction roxolanicharacter Oim-Mekhmed Oim-Argin, named character, command 2, influence 1, management 1, subterfuge 1, age 23, , x 86 y 81unit tatar han exp 2 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0end spawn_armyfaction roxolanicharacter Oim-Inaet, general, age 28, , x 84 y 79unit tatar han exp 2 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0end spawn_armyfaction roxolanicharacter Oim-Kyrym, general, age 35, , x 85 y 83unit tatar han exp 2 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0end console_command give_trait "Oim-Kantemir" GoodCommander 3console_command give_trait "Oim-Baba Oim-Argin" GoodCommander 2console_command give_trait "Oim-Mekhmed Oim-Argin" GoodCommander 1terminate_monitorend_monitormonitor_event FactionTurnStart FactionType empire_westand I_LocalFaction empire_westand not I_LocalFaction roxolaniand I_TurnNumber = 2console_command move_character "Oim-Kantemir" 80, 91console_command move_character "Oim-Baba Oim-Argin" 91, 97console_command move_character "Oim-Mekhmed Oim-Argin" 84, 93console_command move_character "Oim-Inaet" 88, 96console_command move_character "Oim-Kyrym" 87, 93console_command diplomatic_stance roxolani empire_west warterminate_monitorend_monitormonitor_event FactionTurnStart FactionType empire_westand I_TurnNumber = 1and not I_LocalFaction empire_westand not I_LocalFaction roxolanispawn_armyfaction roxolanicharacter Oim-Kantemir, named character, command 6, influence 3, management 1, subterfuge 1, age 21, , x 85 y 78unit tatar han exp 2 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0end spawn_armyfaction roxolanicharacter Oim-Baba Oim-Argin, named character, command 3, influence 2, management 1, subterfuge 1, age 25, , x 88 y 80unit tatar han exp 2 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0end spawn_armyfaction roxolanicharacter Oim-Mekhmed Oim-Argin, named character, command 2, influence 1, management 1, subterfuge 1, age 23, , x 86 y 81unit tatar han exp 2 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar djasak exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 1 armour 0 weapon_lvl 0unit tatar bajrak exp 1 armour 0 weapon_lvl 0unit tatar archer infantry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0unit tatar archer cavalry exp 2 armour 0 weapon_lvl 0end console_command give_trait "Oim-Kantemir" GoodCommander 3console_command give_trait "Oim-Baba Oim-Argin" GoodCommander 2console_command give_trait "Oim-Mekhmed Oim-Argin" GoodCommander 1terminate_monitorend_monitormonitor_event FactionTurnStart FactionType empire_westand not I_LocalFaction empire_westand not I_LocalFaction roxolaniand I_TurnNumber = 2console_command move_character "Oim-Kantemir" 80, 91console_command move_character "Oim-Baba Oim-Argin" 91, 97console_command move_character "Oim-Mekhmed Oim-Argin" 84, 93console_command diplomatic_stance roxolani empire_west warterminate_monitorend_monitormonitor_event FactionTurnStart FactionType empire_westand I_TurnNumber < 20and not I_LocalFaction empire_westand not I_LocalFaction roxolaniconsole_command diplomatic_stance roxolani empire_west neutralterminate_monitorend_monitor
call of warhammer team