Leon473 #script_cf_castle_recruit_nobiles_cond
# INPUT: none
# OUTPUT: none
("cf_castle_recruit_nobiles_cond",
[
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_checking_nobile_availability_script"),
(try_end),
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_being_raided),
(store_faction_of_party, ":castle_faction", "$current_town"),
(party_get_slot, ":center_relation", "$current_town", slot_center_player_relation),
(store_relation, ":castle_faction_relation", ":castle_faction", "fac_player_faction"),
(ge, ":center_relation", 0),
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_center_relation_at_least_zero"),
(try_end),
(this_or_next|ge, ":center_relation", 5),
(this_or_next|eq, ":castle_faction", "$players_kingdom"),
(this_or_next|ge, ":castle_faction_relation", 0),
(this_or_next|eq, ":castle_faction", "$supported_pretender_old_faction"),
(eq, "$players_kingdom", 0),
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_relationfaction_conditions_met"),
(try_end),
(party_slot_ge, "$current_town", slot_center_nobile_troop_amount, 0),
(party_slot_ge, "$current_town", slot_center_nobile_troop_type, 1),
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_troops_available"),
(try_end),
(party_get_free_companions_capacity, ":free_capacity", "p_main_party"),
(ge, ":free_capacity", 1),
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_party_has_capacity"),
(try_end),
]),
наворотил блин,в итоге имею

Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_init.py", line 2, in <module>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_global_variables.py", line 12
, in <module>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_map_icons.py", line 6, in <mo
dule>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_items.py", line 66, in <modul
e>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Exporting scene data...
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_scenes.py", line 15, in <modu
le>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_scene_props.py", line 7, in <
module>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_tableau_materials.py", line 8
, in <module>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_presentations.py", line 8, in
<module>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Exporting party_template data...
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_parties.py", line 6, in <modu
le>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_scripts.py", line 4, in <modu
le>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_mission_tmps.py", line 8, in
<module>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_game_menus.py", line 8, in <m
odule>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_simple_triggers.py", line 5,
in <module>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_dialogs.py", line 9, in <modu
le>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_global_variables_unused.py",
line 3, in <module>
from process_operations import *
File "E:\O&M\Modules\Module_system 1.134\process_operations.py", line 20, in <
module>
from module_scripts import *
File "E:\O&M\Modules\Module_system 1.134\module_scripts.py", line 32972, in <m
odule>
(neg|party_slot_eq, "$current_town", slot_castle_state, svs_looted),
NameError: name 'slot_castle_state' is not defined
Exporting postfx_params...
______________________________
Script processing has ended.
Press any key to exit. . .
похоже намутил лишнего?
----------------
выбросил лутеров и рейдеров,теперь:
#script_cf_castle_recruit_nobiles_cond
# INPUT: none
# OUTPUT: none
("cf_castle_recruit_nobiles_cond",
[
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_checking_nobile_availability_script"),
(try_end),
(store_faction_of_party, ":castle_faction", "$current_town"),
(party_get_slot, ":center_relation", "$current_town", slot_center_player_relation),
(store_relation, ":castle_faction_relation", ":castle_faction", "fac_player_faction"),
(ge, ":center_relation", 0),
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_center_relation_at_least_zero"),
(try_end),
(this_or_next|ge, ":center_relation", 5),
(this_or_next|eq, ":castle_faction", "$players_kingdom"),
(this_or_next|ge, ":castle_faction_relation", 0),
(this_or_next|eq, ":castle_faction", "$supported_pretender_old_faction"),
(eq, "$players_kingdom", 0),
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_relationfaction_conditions_met"),
(try_end),
(party_slot_ge, "$current_town", slot_center_nobile_troop_amount, 0),
(party_slot_ge, "$current_town", slot_center_nobile_troop_type, 1),
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_troops_available"),
(try_end),
(party_get_free_companions_capacity, ":free_capacity", "p_main_party"),
(ge, ":free_capacity", 1),
(try_begin),
(eq, "$cheat_mode", 1),
(display_message, "str_party_has_capacity"),
(try_end),
]),
вот буилд
Initializing...
Compiling all global variables...
Error in game menu:
('castle_manage', [(541, '$current_town', 7, 'trp_player')], 'Manage this castle
.', [(2133, '$g_next_menu', 'mnu_castle'), (2060, 'mnu_center_manage')])
Error in game menu:
('recruit_nobiles', [(1, 'script_cf_castle_recruit_nobiles_cond')], 'Recruit Nob
iles.', [4, (2060, 'mnu_recruit_nobiles'), 3])
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Error: Unable to find object:str_checking_nobile_availability_script
ERROR: Illegal Identifier:str_checking_nobile_availability_script
Exporting mission_template data...
Exporting game menus data...
Traceback (most recent call last):
File "E:\O&M\Modules\Module_system 1.134\process_game_menus.py", line 47, in <
module>
save_game_menus(variables,variable_uses,tag_uses,quick_strings)
File "E:\O&M\Modules\Module_system 1.134\process_game_menus.py", line 26, in s
ave_game_menus
ofile.write("menu_%s %d %s %s"%(game_menu[0],game_menu[1],string.replace(gam
e_menu[2]," ","_"),game_menu[3]))
TypeError: %d format: a number is required, not list
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: g_enemy_surrenders
WARNING: Global variable never used: g_player_surrenders
WARNING: Global variable never used: g_private_battle_with_troop
WARNING: Global variable never used: cant_leave_encounter
WARNING: Global variable never used: g_leave_town_outside
WARNING: Global variable never used: character_gender
WARNING: Global variable never used: g_player_troop
WARNING: Global variable never used: g_camp_mode
WARNING: Global variable never used: g_prisoner_recruit_troop_id
WARNING: Global variable never used: g_prisoner_recruit_last_time
WARNING: Global variable never used: playerparty_postbattle_regulars
WARNING: Global variable never used: routed_party_added
WARNING: Global variable never used: thanked_by_ally_leader
WARNING: Global variable never used: last_freed_hero
WARNING: Global variable never used: capture_screen_shown
WARNING: Global variable never used: g_prison_heroes
WARNING: Global variable never used: g_siege_force_wait
WARNING: Global variable never used: g_siege_sallied_out_once
WARNING: Global variable never used: g_siege_join
WARNING: Global variable never used: qst_train_peasants_against_bandits_currentl
y_training
WARNING: Global variable never used: qst_eliminate_bandits_infesting_village_num
_villagers
WARNING: Global variable never used: g_player_raid_complete
WARNING: Global variable never used: quest_auto_menu
WARNING: Global variable never used: g_tournament_player_team_won
WARNING: Global variable never used: g_tournament_bet_placed
WARNING: Global variable never used: g_tournament_bet_win_amount
WARNING: Global variable never used: g_tournament_last_bet_tier
WARNING: Global variable never used: g_last_assassination_attempt_time
WARNING: Global variable never used: g_last_rest_payment_until
WARNING: Global variable never used: g_train_peasants_against_bandits_num_peasan
ts
WARNING: Global variable never used: last_sneak_attempt_town
WARNING: Global variable never used: last_sneak_attempt_time
WARNING: Global variable never used: g_training_ground_training_count
WARNING: Global variable never used: g_presentation_marshall_selection_max_renow
n_2
WARNING: Global variable never used: g_tutorial_entered
WARNING: Global variable never used: g_dont_give_marshalship_to_player_days
Exporting postfx_params...
______________________________
Script processing has ended.
Press any key to exit. . .
меню не привязывал,не знаю как
