code
stringlengths
1
1.72M
language
stringclasses
1 value
import string from module_info import * from module_scene_props import * from process_common import * from process_operations import * def save_scene_props(variable_list,variable_uses,tag_uses,quick_strings): ofile = open(export_dir + "scene_props.txt","w") ofile.write("scene_propsfile version 1\n") ...
Python
anim_stand = 0 anim_stand_man = 1 anim_jump = 2 anim_jump_end = 3 anim_stand_unarmed = 4 anim_stand_single = 5 anim_stand_greatsword = 6 anim_stand_staff = 7 anim_stand_crossbow = 8 anim_walk_forward = 9 anim_walk_forward_onehanded = 10 anim_walk_forward_staff = 11 anim_walk_forward_greatsword = 12 anim_wa...
Python
psys_game_rain = 0 psys_game_snow = 1 psys_game_blood = 2 psys_game_blood_2 = 3 psys_game_hoof_dust = 4 psys_game_hoof_dust_snow = 5 psys_game_hoof_dust_mud = 6 psys_game_water_splash_1 = 7 psys_game_water_splash_2 = 8 psys_game_water_splash_3 = 9 psys_torch_fire = 10 psys_fire_glow_1 = 11 psys_fire_glow_fi...
Python
from module_info import * from module_simple_triggers import * from process_common import * from process_operations import * def save_simple_triggers(variable_list,variable_uses,triggers,tag_uses,quick_strings): file = open(export_dir + "simple_triggers.txt","w") file.write("simple_triggers_file version 1...
Python
import string from process_common import * from module_items import * def get_item_code(item): prefix = "it_" code = prefix + item[0] return code def save_python_header(): file = open("./ID_items.py","w") for i_item in xrange(len(items)): file.write("itm_%s = %d\n"%(convert_to_identifier(i...
Python
import string import types def convert_to_identifier(s0): s1 = string.replace(s0," ","_") s2 = string.replace(s1,"'","_") s3 = string.replace(s2,"`","_") s4 = string.replace(s3,"(","_") s5 = string.replace(s4,")","_") s6 = string.replace(s5,"-","_") s7 = string.replace(s6,",","") s8 = string...
Python
from header_quests import * #################################################################################################################### # Each quest record contains the following fields: # 1) Quest id: used for referencing quests in other files. The prefix qst_ is automatically added before each quest-i...
Python
imod_plain = 0 imod_cracked = 1 imod_rusty = 2 imod_bent = 3 imod_chipped = 4 imod_battered = 5 imod_poor = 6 imod_crude = 7 imod_old = 8 imod_cheap = 9 imod_fine = 10 imod_well_made = 11 imod_sharp = 12 imod_balanced = 13 imod_tempered = 14 imod_deadly = 15 imod_exquisite = 16 imod_masterwork = 17 im...
Python
menu_start_game_1 = 0 menu_start_phase_2 = 1 menu_start_game_3 = 2 menu_tutorial = 3 menu_reports = 4 menu_custom_battle_2 = 5 menu_custom_battle_end = 6 menu_start_character_1 = 7 menu_start_character_2 = 8 menu_start_character_3 = 9 menu_start_character_4 = 10 menu_choose_skill = 11 menu_past_life_explana...
Python
mst_town_default = 0 mst_conversation_encounter = 1 mst_town_center = 2 mst_village_center = 3 mst_bandits_at_night = 4 mst_village_training = 5 mst_visit_town_castle = 6 mst_back_alley_kill_local_merchant = 7 mst_back_alley_revolt = 8 mst_lead_charge = 9 mst_village_attack_bandits = 10 mst_village_raid = 11...
Python
fac_no_faction = 0 fac_commoners = 1 fac_outlaws = 2 fac_neutral = 3 fac_innocents = 4 fac_merchants = 5 fac_dark_knights = 6 fac_culture_1 = 7 fac_culture_2 = 8 fac_culture_3 = 9 fac_culture_4 = 10 fac_culture_5 = 11 fac_player_faction = 12 fac_player_supporters_faction = 13 fac_kingdom_1 = 14 fac_kingd...
Python
import string from module_info import * from module_troops import * from process_common import * #from process_operations import * num_face_numeric_keys = 4 def save_troops(): file = open(export_dir + "troops.txt","w") file.write("troopsfile version 1\n") file.write("%d "%len(troops)) for tr...
Python
from module_info import * from process_common import * from process_operations import * print "Checking tag usages..." tag_uses = load_tag_uses(export_dir) #Processing strings length = 0 for i in xrange(len(tag_uses[tag_string])): if tag_uses[tag_string][i] > 0: length = i for i in xrange(le...
Python
from header_common import * from header_presentations import * from header_mission_templates import * from ID_meshes import * from header_operations import * from header_triggers import * from module_constants import * import string #############################################################################...
Python
import types from header_game_menus import * from module_info import * from module_game_menus import * from module_parties import * from process_operations import * from process_common import * def save_parties(parties): file = open(export_dir + "parties.txt","w") file.write("partiesfile version 1\n"...
Python
from module_info import * from process_common import * from process_operations import * print "Checking global variable usages..." variable_uses = [] variables = load_variables(export_dir,variable_uses) i = 0 while (i < len(variables)): if (variable_uses[i] == 0): print "WARNING: Global variable neve...
Python
from header_common import * from module_info import * from module_sounds import * def write_python_header(sounds): file = open("./ID_sounds.py","w") for i_sound in xrange(len(sounds)): file.write("snd_%s = %d\n"%(sounds[i_sound][0],i_sound)) file.write("\n\n") file.close() def write_sounds(soun...
Python
from ID_scripts import * updated_scripts = [ script_game_get_total_wage, script_game_get_party_companion_limit, script_calculate_player_faction_wage, script_get_player_party_morale_values, script_team_get_class_percentages, script_update_agent_position_on_map, script_retire_compani...
Python
mesh_pic_bandits = 0 mesh_pic_mb_warrior_1 = 1 mesh_pic_messenger = 2 mesh_pic_prisoner_man = 3 mesh_pic_prisoner_fem = 4 mesh_pic_prisoner_wilderness = 5 mesh_pic_siege_sighted = 6 mesh_pic_siege_sighted_fem = 7 mesh_pic_camp = 8 mesh_pic_payment = 9 mesh_pic_escape_1 = 10 mesh_pic_escape_1_fem = 11 mesh_p...
Python
arf_blend_in_0 = 0x00000001 arf_blend_in_1 = 0x00000002 arf_blend_in_2 = 0x00000003 arf_blend_in_3 = 0x00000004 arf_blend_in_4 = 0x00000005 arf_blend_in_5 = 0x00000006 arf_blend_in_6 = 0x00000007 arf_blend_in_7 ...
Python
from header_common import * from header_parties import * from ID_troops import * from ID_factions import * from ID_party_templates import * from ID_map_icons import * #################################################################################################################### # Each party record contai...
Python
sf_base_att_str = 0x000 sf_base_att_agi = 0x001 sf_base_att_int = 0x002 sf_base_att_cha = 0x003 sf_effects_party = 0x010 sf_inactive = 0x100 skl_trade = 0 skl_leadership = 1 skl_prisoner_management = 2 skl_reserved_1 = 3 skl_reserved_2 = 4 skl_reserved_3 = 5 sk...
Python
import string from module_info import * from module_quests import * from process_common import * def save_quests(): ofile = open(export_dir + "quests.txt","w") ofile.write("questsfile version 1\n") ofile.write("%d\n"%(len(quests))) for i_quest in xrange(len(quests)): quest = quests[i_quest] ...
Python
from module_info import * from module_scenes import * from process_common import * def save_python_header(): ofile = open("./ID_scenes.py","w") for i_scene in xrange(len(scenes)): ofile.write("scn_%s = %d\n"%(convert_to_identifier(scenes[i_scene][0]),i_scene)) ofile.close() print "Exporting scen...
Python
from header_common import * from header_scene_props import * from header_operations import * from header_triggers import * from header_sounds import * from module_constants import * import string ###################################################################################################################...
Python
import string from header_common import * from module_info import * from module_strings import * from process_common import * def save_strings(strings): ofile = open(export_dir + "strings.txt","w") ofile.write("stringsfile version 1\n") ofile.write("%d\n"%len(strings)) for i_string in xrange(len(st...
Python
from header_factions import * #################################################################################################################### # Each faction record contains the following fields: # 1) Faction id: used for referencing factions in other files. # The prefix fac_ is automatically added befo...
Python
from module_info import * from module_factions import * from process_common import * faction_name_pos = 0 faction_flags_pos = 2 faction_coherence_pos = 3 faction_relations_pos = 4 faction_ranks_pos = 5 def compile_relations(): relations = [] for i in xrange(len(factions)): r = [0.0 for j in ran...
Python
from header_common import * from header_parties import * from ID_troops import * from ID_factions import * from ID_map_icons import * pmf_is_prisoner = 0x0001 #################################################################################################################### # Each party template record con...
Python
prsnt_game_credits = 0 prsnt_banner_selection = 1 prsnt_custom_banner = 2 prsnt_banner_charge_positioning = 3 prsnt_banner_charge_selection = 4 prsnt_banner_background_selection = 5 prsnt_banner_flag_type_selection = 6 prsnt_banner_flag_map_type_selection = 7 prsnt_color_selection = 8 prsnt_marshall_selection ...
Python
import string from header_common import * from module_info import * from module_skills import * from process_common import * skill_name_pos = 1 skill_attribute_pos = 2 skill_max_level_pos= 3 skill_desc_pos = 4 def save_skills(): ofile = open(export_dir + "skills.txt","w") ofile.write("%d\n"%(len(...
Python
from module_info import * from module_particle_systems import * from process_common import * id_pos = 0 flags_pos = 1 mesh_name_pos = 2 num_particles_pos = 3 life_pos = 4 damping_pos = 5 gravity_pos = 6 turb_size_pos = 7 turb_wt_pos = 8 alpha_key_pos = 9 red_key_pos = alpha_...
Python
pt_none = 0 pt_rescued_prisoners = 1 pt_enemy = 2 pt_hero_party = 3 pt_village_defenders = 4 pt_cattle_herd = 5 pt_looters = 6 pt_manhunters = 7 pt_steppe_bandits = 8 pt_forest_bandits = 9 pt_mountain_bandits = 10 pt_sea_raiders = 11 pt_deserters = 12 pt_merchant_caravan = 13 pt_troublesome_bandits = 14 ...
Python
from header_map_icons import * from module_constants import * from header_operations import * from header_triggers import * from ID_sounds import * #################################################################################################################### # Each map icon record contains the following ...
Python
trp_player = 0 trp_temp_troop = 1 trp_game = 2 trp_unarmed_troop = 3 trp_random_town_sequence = 4 trp_tournament_participants = 5 trp_tutorial_maceman = 6 trp_tutorial_archer = 7 trp_tutorial_swordsman = 8 trp_novice_fighter = 9 trp_regular_fighter = 10 trp_veteran_fighter = 11 trp_champion_fighter = 12 tr...
Python
from header_common import * from ID_animations import * from header_mission_templates import * from header_tableau_materials import * from header_items import * from module_constants import * #################################################################################################################### # ...
Python
import string from module_info import * from module_presentations import * from ID_meshes import * from process_common import * from process_operations import * def save_presentations(variable_list,variable_uses,tag_uses,quick_strings): ofile = open(export_dir + "presentations.txt","w") ofile.write("p...
Python
#import string #import types from module_info import * from module_triggers import * from module_dialogs import * from module_simple_triggers import * from module_presentations import * from process_common import * from process_operations import * #----------------------------------------------------...
Python
# Point export_dir to the folder you will be keeping your module # Make sure you use forward slashes (/) and NOT backward slashes (\) export_dir = "D:/Game/Mount&Blade/Modules/Test/" patch_dir = "D:/Game/Mount&Blade/Modules/Native1/"
Python
import string from header_common import * from module_info import * from module_meshes import * from process_common import * def save_meshes(): ofile = open(export_dir + "meshes.txt","w") ofile.write("%d\n"%len(meshes)) for i_mesh in xrange(len(meshes)): mesh = meshes[i_mesh] ofile.write("me...
Python
from header_common import * from header_skills import * #################################################################################################################### # Each skill contains the following fields: # 1) Skill id (string): used for referencing skills in other files. The prefix skl_ is automati...
Python
strings = [ ("no_string", "NO STRING!"), ("empty_string", " "), ("yes", "Yes."), ("no", "No."), # Strings before this point are hardwired. ("blank_string", " "), ("error_string", "ERROR!!!ERROR!!!!ERROR!!!ERROR!!!ERROR!!!ERROR!!!!ERROR!!!ERROR!!!!ERROR!!!ERROR!!!!ERROR!!!ERROR!!!!ERROR!!!ERROR!!!!E...
Python
from header_particle_systems import * #psf_always_emit = 0x0000000002 #psf_global_emit_dir = 0x0000000010 #psf_emit_at_water_level = 0x0000000020 #psf_billboard_2d = 0x0000000100 # up_vec = dir, front rotated towards camera #psf_billboard_3d = 0x0000000200 # front_vec point to camera. #p...
Python
p_main_party = 0 p_temp_party = 1 p_camp_bandits = 2 p_temp_party_2 = 3 p_temp_casualties = 4 p_temp_casualties_2 = 5 p_temp_casualties_3 = 6 p_temp_wounded = 7 p_temp_killed = 8 p_main_party_backup = 9 p_encountered_party_backup = 10 p_collective_friends_backup = 11 p_player_casualties = 12 p_enemy_casual...
Python
from header_meshes import * #################################################################################################################### # Each mesh record contains the following fields: # 1) Mesh id: used for referencing meshes in other files. The prefix mesh_ is automatically added before each mesh id....
Python
from module_info import * from module_simple_triggers import * from process_common import * from process_operations import * def save_simple_triggers(variable_list,variable_uses,triggers,tag_uses,quick_strings): file = open(export_dir + "simple_triggers.txt","w") file.write("simple_triggers_file version 1...
Python
import string import types from process_common import * from header_common import * from header_operations import * from module_strings import * from module_skills import * from module_music import * from module_meshes import * from module_sounds import * from module_items import * from module_troops imp...
Python
skl_trade = 0 skl_leadership = 1 skl_prisoner_management = 2 skl_reserved_1 = 3 skl_reserved_2 = 4 skl_reserved_3 = 5 skl_reserved_4 = 6 skl_persuasion = 7 skl_engineer = 8 skl_first_aid = 9 skl_surgery = 10 skl_wound_treatment = 11 skl_inventory_management = 12 skl_spotting = 13 skl_pathfinding = 14 skl...
Python
from header_common import * from header_operations import * from header_triggers import * from header_scenes import * from module_constants import * #################################################################################################################### # Each scene record contains the following fi...
Python
from module_info import * from module_party_templates import * #from process_operations import * from process_common import * def save_party_template_troop(file,troop): if troop: # add_tag_use(tag_uses,tag_troop,troop[0]) file.write("%d %d %d "%(troop[0],troop[1],troop[2])) if (len(troop) > 3...
Python
from header_common import * from header_operations import * from header_parties import * from header_items import * from header_skills import * from header_triggers import * from header_troops import * from module_constants import * ###########################################################################...
Python
from header_music import * #################################################################################################################### # Each track record contains the following fields: # 1) Track id: used for referencing tracks. # 2) Track file: filename of the track # 3) Track flags. See header_musi...
Python
import string import types from module_info import * from module_triggers import * from module_dialogs import * from process_common import * from process_operations import * speaker_pos = 0 ipt_token_pos = 1 sentence_conditions_pos = 2 text_pos = 3 opt_token_pos = 4 sentence_consequences_pos = 5 ...
Python
import string from header_common import * from module_info import * from module_music import * from process_common import * def save_python_header(): ofile = open("./ID_music.py","w") for i_track in xrange(len(tracks)): ofile.write("track_%s = %d\n"%(tracks[i_track][0],i_track)) ofile.write("\n\n")...
Python
track_bogus = 0 track_mount_and_blade_title_screen = 1 track_ambushed_by_neutral = 2 track_ambushed_by_khergit = 3 track_ambushed_by_nord = 4 track_ambushed_by_rhodok = 5 track_ambushed_by_swadian = 6 track_ambushed_by_vaegir = 7 track_arena_1 = 8 track_armorer = 9 track_bandit_fight = 10 track_calm_night_1 ...
Python
leave_wo_battle = 0 leave_during_battle = 1 cancel_attack = 2 speak = 3 intend_battle = 4 cancel_reinforce = 5 surrender = 6 stay_back = 7 charge = 8 stay_back_with_ally = 9 charge_with_ally = 10
Python
from ID_items import * from ID_quests import * from ID_factions import * ############################################################## # These constants are used in various files. # If you need to define a value that will be used in those files, # just define it here rather than copying it across each file, so ...
Python
script_game_start = 0 script_game_event_party_encounter = 1 script_game_event_simulate_battle = 2 script_game_event_battle_end = 3 script_order_best_besieger_party_to_guard_center = 4 script_game_get_item_buy_price_factor = 5 script_game_get_item_sell_price_factor = 6 script_get_trade_penalty = 7 script_game_ev...
Python
# -*- coding: cp1254 -*- from header_common import * from header_operations import * from module_constants import * from header_parties import * from header_skills import * from header_mission_templates import * from header_items import * from header_triggers import * from header_terrain_types import * from h...
Python
file = open("module_scripts.py","r") lines = file.readlines() file.close() file = open("module_scripts.py","w") level = 0 for line in lines: line = line.strip() acceptableindex = line.find("#") if (acceptableindex == -1): acceptableindex = len(line) level -= line.count("try_end", 0, acceptab...
Python
icon_player = 0 icon_player_horseman = 1 icon_gray_knight = 2 icon_vaegir_knight = 3 icon_flagbearer_a = 4 icon_flagbearer_b = 5 icon_peasant = 6 icon_khergit = 7 icon_khergit_horseman_b = 8 icon_axeman = 9 icon_woman = 10 icon_woman_b = 11 icon_town = 12 icon_town_steppe = 13 icon_village_a = 14 icon_vi...
Python
from header_common import * from header_operations import * from header_parties import * from header_items import * from header_skills import * from header_triggers import * from header_troops import * from header_music import * from module_constants import * ###############################################...
Python
import random from header_common import * from header_items import * from header_troops import * from header_skills import * from ID_factions import * from ID_items import * from ID_scenes import * ##############################################################################################################...
Python
from module_constants import * from header_items import * from header_operations import * from header_triggers import * #################################################################################################################### # Each item record contains the following fields: # 1) Item id: used for...
Python
import string import types from module_info import * from module_mission_templates import * from process_common import * from process_operations import * mission_template_name_pos = 0 mission_template_flags_pos = 1 mission_template_types_pos = 2 mission_template_desc_pos = 3 mission_template_groups_pos ...
Python
from module_info import * import os print "Initializing..." try: os.remove(export_dir + 'tag_uses.txt') except: a = [] try: os.remove(export_dir + 'quick_strings.txt') except: a = []
Python
rt_water = 0 rt_mountain = 1 rt_steppe = 2 rt_plain = 3 rt_snow = 4 rt_desert = 5 rt_river = 8 rt_mountain_forest = 9 rt_steppe_forest = 10 rt_forest = 11 rt_snow_forest = 12 rt_desert_forest = 13
Python
import string import types from module_info import * from module_tableau_materials import * from process_common import * from process_operations import * def save_tableau_materials(variable_list,variable_uses,tag_uses,quick_strings): ofile = open(export_dir + "tableau_materials.txt","w") ofile.write("...
Python
tableau_game_character_sheet = 0 tableau_game_inventory_window = 1 tableau_game_party_window = 2 tableau_round_shield_1 = 3 tableau_round_shield_2 = 4 tableau_round_shield_3 = 5 tableau_round_shield_4 = 6 tableau_round_shield_5 = 7 tableau_small_round_shield_1 = 8 tableau_small_round_shield_2 = 9 tableau_smal...
Python
variables = [ "$g_move_heroes", ]
Python
import string from process_common import * from module_info import * from module_skins import * import string # WARNING: The following should be the same as the number in face_generator.h num_voice_types = 2 ##################### def replace_spaces(s0): return string.replace(s0," ","_") def writ...
Python
import string from module_info import * from module_scripts import * from process_common import * from process_operations import * def save_scripts(variable_list,variable_uses,scripts,tag_uses,quick_strings): file = open(export_dir + "scripts.txt","w") file.write("scriptsfile version 1\n") file.writ...
Python
spr_invalid_object = 0 spr_inventory = 1 spr_empty = 2 spr_chest_a = 3 spr_container_small_chest = 4 spr_container_chest_b = 5 spr_container_chest_c = 6 spr_player_chest = 7 spr_locked_player_chest = 8 spr_light_sun = 9 spr_light = 10 spr_light_red = 11 spr_light_night = 12 spr_torch = 13 spr_torch_night ...
Python
qst_deliver_message = 0 qst_deliver_message_to_enemy_lord = 1 qst_raise_troops = 2 qst_escort_lady = 3 qst_deal_with_bandits_at_lords_village = 4 qst_collect_taxes = 5 qst_hunt_down_fugitive = 6 qst_kill_local_merchant = 7 qst_bring_back_runaway_serfs = 8 qst_follow_spy = 9 qst_capture_enemy_hero = 10 qst_le...
Python
from header_common import * from header_operations import * from header_mission_templates import * from header_animations import * from header_sounds import * from header_music import * from module_constants import * ##############################################################################################...
Python
itm_no_item = 0 itm_horse_meat = 1 itm_practice_sword = 2 itm_heavy_practice_sword = 3 itm_practice_axe = 4 itm_arena_axe = 5 itm_arena_sword = 6 itm_arena_sword_two_handed = 7 itm_arena_lance = 8 itm_practice_staff = 9 itm_practice_lance = 10 itm_practice_shield = 11 itm_practice_bow = 12 itm_practice_cro...
Python
ground_gray_stone = 0 ground_brown_stone = 1 ground_turf = 2 ground_steppe = 3 ground_snow = 4 ground_earth = 5 ground_desert = 6 ground_forest = 7 ground_pebbles = 8 ground_village = 9 ground_path = 10
Python
str_no_string = 0 str_empty_string = 1 str_yes = 2 str_no = 3 str_blank_string = 4 str_error_string = 5 str_noone = 6 str_s0 = 7 str_blank_s1 = 8 str_reg1 = 9 str_s50_comma_s51 = 10 str_s50_and_s51 = 11 str_s5_s_party = 12 str_given_by_s1_at_s2 = 13 str_given_by_s1_in_wilderness = 14 str_s7_raiders = 15 ...
Python
from header_common import * from header_dialogs import * from header_operations import * from header_parties import * from header_item_modifiers import * from header_skills import * from header_triggers import * from ID_troops import * from ID_party_templates import * from module_constants import * ####...
Python
import string from header_common import * from module_info import * from module_animations import * from process_common import * def compile_action_sets(actions): action_codes = [] for action in actions: index = -1 for i_action_code in xrange(len(action_codes)): if action_codes[i_action_co...
Python
from header_game_menus import * from header_parties import * from header_items import * from header_mission_templates import * from header_music import * from header_terrain_types import * from module_constants import * #########################################################################################...
Python
from header_skins import * from ID_particle_systems import * #################################################################################################################### # Each skin record contains the following fields: # 1) Skin id: used for referencing skins. # 2) Skin flags. Not used yet. Should be 0...
Python
scn_random_scene = 0 scn_conversation_scene = 1 scn_random_scene_steppe = 2 scn_random_scene_plain = 3 scn_random_scene_snow = 4 scn_random_scene_desert = 5 scn_random_scene_steppe_forest = 6 scn_random_scene_plain_forest = 7 scn_random_scene_snow_forest = 8 scn_random_scene_desert_forest = 9 scn_camp_scene =...
Python
itm_no_item = 0 itm_horse_meat = 1 itm_practice_sword = 2 itm_heavy_practice_sword = 3 itm_practice_staff = 4 itm_practice_lance = 5 itm_practice_shield = 6 itm_practice_bow = 7 itm_practice_horse = 8 itm_practice_arrows = 9 itm_red_tourney_armor = 10 itm_blue_tourney_armor = 11 itm_green_tourney_armor = 12...
Python
from header_sounds import * sounds = [ ("click", sf_2d|sf_vol_1,["drum_3.ogg"]), ("tutorial_1", sf_2d|sf_vol_7,["tutorial_1.ogg"]), ("tutorial_2", sf_2d|sf_vol_7,["tutorial_2.ogg"]), ("gong", sf_2d|sf_priority_9|sf_vol_7, ["s_cymbals.ogg"]), ("quest_taken", sf_2d|sf_priority_9|sf_vol_7, []), ("quest_comp...
Python
import string import types from module_info import * from module_game_menus import * from process_common import * from process_operations import * def save_game_menu_item(ofile,variable_list,variable_uses,menu_item,tag_uses,quick_strings): ofile.write(" mno_%s "%(menu_item[0])) save_statement_block(of...
Python
import string from module_info import * from module_map_icons import * from process_common import * from process_operations import * def save_map_icons(variable_list,variable_uses,tag_uses,quick_strings): ofile = open(export_dir + "map_icons.txt","w") ofile.write("map_icons_file version 1\n") ofile.wr...
Python
snd_click = 0 snd_tutorial_1 = 1 snd_tutorial_2 = 2 snd_gong = 3 snd_quest_taken = 4 snd_quest_completed = 5 snd_quest_succeeded = 6 snd_quest_concluded = 7 snd_quest_failed = 8 snd_quest_cancelled = 9 snd_rain = 10 snd_money_received = 11 snd_money_paid = 12 snd_sword_clash_1 = 13 snd_sword_clash_2 = 14 ...
Python
from header_common import * from header_animations import * #################################################################################################################### # There are two animation arrays (one for human and one for horse). Each animation in these arrays contains the following fields: # 1) ...
Python
import string from module_info import * from module_scene_props import * from process_common import * from process_operations import * def save_scene_props(variable_list,variable_uses,tag_uses,quick_strings): ofile = open(export_dir + "scene_props.txt","w") ofile.write("scene_propsfile version 1\n") ...
Python
anim_stand = 0 anim_stand_man = 1 anim_jump = 2 anim_jump_end = 3 anim_stand_unarmed = 4 anim_stand_single = 5 anim_stand_greatsword = 6 anim_stand_staff = 7 anim_stand_crossbow = 8 anim_walk_forward = 9 anim_walk_forward_onehanded = 10 anim_walk_forward_staff = 11 anim_walk_forward_greatsword = 12 anim_wa...
Python
psys_game_rain = 0 psys_game_snow = 1 psys_game_blood = 2 psys_game_blood_2 = 3 psys_game_hoof_dust = 4 psys_game_hoof_dust_snow = 5 psys_game_hoof_dust_mud = 6 psys_game_water_splash_1 = 7 psys_game_water_splash_2 = 8 psys_game_water_splash_3 = 9 psys_torch_fire = 10 psys_fire_glow_1 = 11 psys_fire_glow_fi...
Python
import string from process_common import * from module_items import * def get_item_code(item): prefix = "it_" code = prefix + item[0] return code def save_python_header(): file = open("./ID_items.py","w") for i_item in xrange(len(items)): file.write("itm_%s = %d\n"%(convert_to_identifier(i...
Python
import string import types def convert_to_identifier(s0): s1 = string.replace(s0," ","_") s2 = string.replace(s1,"'","_") s3 = string.replace(s2,"`","_") s4 = string.replace(s3,"(","_") s5 = string.replace(s4,")","_") s6 = string.replace(s5,"-","_") s7 = string.replace(s6,",","") s8 = string...
Python
from header_quests import * #################################################################################################################### # Each quest record contains the following fields: # 1) Quest id: used for referencing quests in other files. The prefix qst_ is automatically added before each quest-i...
Python
imod_plain = 0 imod_cracked = 1 imod_rusty = 2 imod_bent = 3 imod_chipped = 4 imod_battered = 5 imod_poor = 6 imod_crude = 7 imod_old = 8 imod_cheap = 9 imod_fine = 10 imod_well_made = 11 imod_sharp = 12 imod_balanced = 13 imod_tempered = 14 imod_deadly = 15 imod_exquisite = 16 imod_masterwork = 17 im...
Python
menu_start_game_1 = 0 menu_start_phase_2 = 1 menu_start_game_3 = 2 menu_tutorial = 3 menu_reports = 4 menu_custom_battle_2 = 5 menu_custom_battle_end = 6 menu_start_character_1 = 7 menu_start_character_2 = 8 menu_start_character_3 = 9 menu_start_character_4 = 10 menu_choose_skill = 11 menu_past_life_explana...
Python
mst_town_default = 0 mst_conversation_encounter = 1 mst_town_center = 2 mst_village_center = 3 mst_bandits_at_night = 4 mst_village_training = 5 mst_visit_town_castle = 6 mst_back_alley_kill_local_merchant = 7 mst_back_alley_revolt = 8 mst_lead_charge = 9 mst_village_attack_bandits = 10 mst_village_raid = 11...
Python
fac_no_faction = 0 fac_commoners = 1 fac_outlaws = 2 fac_neutral = 3 fac_innocents = 4 fac_merchants = 5 fac_dark_knights = 6 fac_culture_1 = 7 fac_culture_2 = 8 fac_culture_3 = 9 fac_culture_4 = 10 fac_culture_5 = 11 fac_player_faction = 12 fac_player_supporters_faction = 13 fac_kingdom_1 = 14 fac_kingd...
Python
import string from module_info import * from module_troops import * from process_common import * #from process_operations import * num_face_numeric_keys = 4 def save_troops(): file = open(export_dir + "troops.txt","w") file.write("troopsfile version 1\n") file.write("%d "%len(troops)) for tr...
Python