troycall said:their game tells them its 1.168 in the launcher?
engine is one thingy, modules like Native and VC are another. Engine controls the API, all you need is to update your game to 1.168 (latest).
troycall said:their game tells them its 1.168 in the launcher?
gdwitt said:What script controls which troops get assigned to the "archer" vs infantry vs. cavalry groups?
troop_set_class = 1517 # (troop_set_class, <troop_id>, <value>),
# Sets troop class (infantry, archers, cavalry or any of custom classes). Accepts values in range 0..8. See grc_* constants in header_mission_templates.py.
Mispronounced said:Is the character creation menu a presentaion or game menu? Where can I find it?
kalarhan said:Mispronounced said:Is the character creation menu a presentaion or game menu? Where can I find it?
neither, its hardcoded.
However you still can: change background, the position of elements (game_variables.txt), the "when" its called (before visiting world map or after it)
(0.0, 0.3, 0.0,
[
(game_key_clicked, gk_infantry_hear),
(display_message, "@User is holding 1.", 0x0016fc07),
#Proceed code
_Sebastian_ said:The order menu is completely hardcoded, so you won't find a single line of code relating to this.troycall said:When pressing 1, or 2, or 3, for instance, which selects your infantry, archers or cavalry.
Is there a presentation or something for this? I looked for gk_infantry_hear, and couldn't find it.
Yes.troycall said:_Sebastian_ said:The order menu is completely hardcoded, so you won't find a single line of code relating to this.troycall said:When pressing 1, or 2, or 3, for instance, which selects your infantry, archers or cavalry.
Is there a presentation or something for this? I looked for gk_infantry_hear, and couldn't find it.
Ah, a trigger is the only way to do this then?
Alright, thanks.
Mispronounced said:I'd like to change what happens when you click done. What file to i edit?
game_menus = [
("start_king",menu_text_color(0xFF000000)|mnf_disable_all_keys,
"You are the King of a prosperous land.",
"none",
[],
[
("continue",[],"Continue...",
[(jump_to_menu, "mnu_start_king_1"),
(call_script,"script_set_player_kingdom_1"), #script to set up player kingdom
]
),
("go_back",[],"Go back",
[
(change_screen_quit),
]),
]
),
("start_king_1",menu_text_color(0xFF000000)|mnf_disable_all_keys, # "custom" menu, makeshift
"Select your character's gender.",
"none",
[],
[
("start_male",[],"Male",
[
(troop_set_type,"trp_player", 0),
(assign,"$character_gender",tf_male),
(assign, "$current_town", "p_town_6"),
(assign, "$g_starting_town", "$current_town"),
(assign, "$g_journey_string", "str_journey_to_praven"),
(party_relocate_near_party, "p_main_party", "$g_starting_town", 2),
(jump_to_menu,"mnu_start_king_2"),
]
),
("start_female",[],"Female",
[
(troop_set_type, "trp_player", 1),
(assign, "$character_gender", tf_female),#may not even have female player
(jump_to_menu, "mnu_start_king_2"),
]
),
#("go_back",[],"Go back",
#[ #may cause issues with king script
#]), #clicking continue lags a bit, disabled for now
# (jump_to_menu,"mnu_start_king"),
]
),
(
"start_king_2",mnf_disable_all_keys,
"STORY HERE-your minister and friends left you...etc",
"none",
[],
[("start_noble",[],"Continue...",[
(assign, "$g_starting_town", "$current_town"), #because no "take caravan x" menu
(call_script, "script_player_arrived"),
(party_set_morale, "p_main_party", 100),
(set_encountered_party, "$current_town"),
(assign,"$background_type",cb_noble), #always noble
(troop_set_type,"trp_player", 0),
(assign, "$current_town", "p_town_6"),
(assign, "$g_starting_town", "$current_town"),
(assign, "$g_journey_string", "str_journey_to_praven"),
(party_relocate_near_party, "p_main_party", "$g_starting_town", 2),
(assign, reg3, "$character_gender"),
(jump_to_menu,"mnu_choose_king_skill"),
]),
]
),
(
"choose_king_skill",mnf_disable_all_keys,
"{s13}",
"none",
[(assign,"$current_string_reg",10),
(assign, ":difficulty", 0),
(try_begin),
(eq, "$character_gender", tf_female),
(str_store_string, s14, "str_woman"),
(val_add, ":difficulty", 1),
(else_try),
(str_store_string, s14, "str_man"),
(try_end),
(try_begin),
(eq,"$background_type",cb_noble),
(str_store_string, s15, "str_noble"),
(val_sub, ":difficulty", 1),
(else_try),
(str_store_string, s15, "str_common"),
(try_end),
(try_begin),
(eq, ":difficulty", -1),
(str_store_string, s16, "str_may_find_that_you_are_able_to_take_your_place_among_calradias_great_lords_relatively_quickly"),
(else_try),
(eq, ":difficulty", 0),
(str_store_string, s16, "str_may_face_some_difficulties_establishing_yourself_as_an_equal_among_calradias_great_lords"),
(else_try),
(eq, ":difficulty", 1),
(str_store_string, s16, "str_may_face_great_difficulties_establishing_yourself_as_an_equal_among_calradias_great_lords"),
(try_end),
],
[
("begin_adventuring",[],"Reclaim your lost land!",[
(set_show_messages, 0),
(try_begin),
(eq,"$character_gender",0),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(else_try),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(try_end),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_raise_skill, "trp_player","skl_riding",1),
(try_begin),
(eq,"$background_type",cb_noble),
(eq,"$character_gender",tf_male),
(troop_raise_attribute, "trp_player",ca_intelligence,3),
(troop_raise_attribute, "trp_player",ca_charisma,3),
(troop_raise_skill, "trp_player",skl_weapon_master,4),
(troop_raise_skill, "trp_player",skl_power_strike,2),
(troop_raise_skill, "trp_player",skl_riding,3),
(troop_raise_skill, "trp_player",skl_tactics,3),
(troop_raise_skill, "trp_player",skl_leadership,5),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,50),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,100),
(troop_raise_proficiency, "trp_player",wpt_polearm,100),
#(troop_add_item, "trp_player","itm_tab_shield_round_a",imod_battered),
(troop_set_slot, "trp_player", slot_troop_renown, 100),
(call_script, "script_change_player_honor", 3),
(troop_add_gold, "trp_player", 6000),
(else_try),
(eq,"$background_type",cb_noble),
(eq,"$character_gender",tf_female),
(troop_raise_attribute, "trp_player",ca_intelligence,2),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player",skl_wound_treatment,1),
(troop_raise_skill, "trp_player",skl_riding,2),
(troop_raise_skill, "trp_player",skl_first_aid,1),
(troop_raise_skill, "trp_player",skl_leadership,1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,20),
(troop_set_slot, "trp_player", slot_troop_renown, 100),
#(troop_add_item, "trp_player","itm_tab_shield_round_a",imod_battered),
(troop_add_gold, "trp_player", 6000),
(try_end),
(jump_to_menu, "mnu_auto_return"),
#(try_begin),
# (eq, "$background_type", cb_noble),
# (jump_to_menu, "mnu_auto_return"),
# (start_presentation, "prsnt_banner_selection"),
#(start_presentation, "prsnt_custom_banner"),
# (else_try),
# (change_screen_return, 1),
#(try_end),
]),
]
),
homicuda said:Also i need to slow all the parties. How to make this?
## #script_game_get_party_speed_multiplier
## # This script is called from the game engine when a skill's modifiers are needed
## # INPUT: arg1 = party_no
## # OUTPUT: trigger_result = multiplier (scaled by 100, meaning that giving 100 as the trigger result does not change the party speed)
## ("game_get_party_speed_multiplier",
## [
## (store_script_param, ":party_no", 1),
## (set_trigger_result, 100),
## ]),
just give a proper credit.wrwlf said:Are there any "rules" governing use of OSP items in WFaS mods?
Probably, but you could use the ixmesh_inventory flag (as the Native "cartridges" do) to override the mesh in the inventory screen.wrwlf said:If I set the bolt mesh to invisible the inventory would also be blank, correct?
Most probably C# through Mono, perhaps even Unity-style. I spotted MonoDevelop and DLLs in several of the office interviews.Slawtering said:Has there been any indication of what language Bannerlord is using for scripting?