OSP Code SP [WB] Prebattle Orders Kit v0.8 Beta

Users who are viewing this thread

Abhuva said:
Edit2 : Getting closer to solve this =) I managed to merge Diplomacy with this Kit now successfully, i guess i found my error. In mission_templates the diplomacy mod imports from header_skills. In my other attempts i copypasted your code before this ... i guess that was what messes all up.
Excellent troubleshooting! I hadn't considered that...so it was the mission_templates part that messed up? Even though the error code was mentioning game_menus and scirpts? Odd. In any case, I hope this clears it up...let me know if I can be of any further help.
 
:oops: I was happy a bit too early... still getting the same error when compiling my own mod. I will now take the pain and rebuild step by step till i find whats causing this, but anyway thx for the help and suggestions. I really hope its not a limit on module_scripts regarding number of lines. That would be sad.
Atleast Diplomatic Mod and this Kit fits together, they really improve my gameplay.
 
Ole John Reb said:
Ok quick question I have vista and winrar so when that comes up and you click extract where should I extract it to.
Where ever you wish...but what you will find is source Module System code, not compiled .txt code. "Kits" are always just source files. They are for modders to incorporate into their own larger mods and tinker with, etc...or for people to integrate themselves.

To get this code into your module, you would need to download the source *.pys for that module, the Module System. You then need to do a complex copy-paste job (the directions are in the kit's files) to put the kit code into the module code and then compile it. There are tutorials for using the module system available in the Module System Documentation section of the Forge.

Abhuva said:
:oops: I was happy a bit too early... still getting the same error when compiling my own mod. I will now take the pain and rebuild step by step till i find whats causing this, but anyway thx for the help and suggestions. I really hope its not a limit on module_scripts regarding number of lines. That would be sad.
Atleast Diplomatic Mod and this Kit fits together, they really improve my gameplay.
Hrmph. All of the error messages mention quick strings...perhaps there are too many quick strings (text declared beginning with "@ ) defined? But I've no clue how to fix that, either.
 
does this just work for normal mount and blade not warband?
if it does work for warband what files do i extract where to make mine work?
(I dont get any of the pre-battle orders, or the option to enter battle size.)
 
@emekadude4:
To get this code into your module, you would need to download the source *.pys for that module, the Module System. You then need to do a complex copy-paste job (the directions are in the kit's files) to put the kit code into the module code and then compile it. There are tutorials for using the module system available in the Module System Documentation section of the Forge.

Just one post above yours...
The [WB, SP, Code] in the title of this thread means that it is for warband, singleplayer and of course its just code...
 
emekadude4 said:
where do you put the (.py) you download

You need the do download the Module System...
for example...
http://forums.taleworlds.com/index.php/topic,111706.0.html
then learn how to use it...

:oops: I'm too dumb to use it, as it says 'unexpected indent' all the time as my cut and paste is sloppy...
Sloppy doesn't work apparently... :lol: , hopefully someone will post the compiled native .txt's for us noobs sometime
 
hi, i have the same problem, nobody know what's wrong, help me plz

Initializing...
Compiling all global variables...
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 scripts...
Traceback (most recent call last):
  File "process_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
  File "process_scripts.py", line 19, in save_scripts
    save_statement_block(file,convert_to_identifier(func[0]), 0,func[1], variabl
e_list,variable_uses,tag_uses,quick_strings)
  File "C:\Archivos de programa\Mount&Blade Warband\Modules\OSPW - Native 1.131b
\OSPW - Native 1.131b Module_system\process_operations.py", line 449, in save_st
atement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Archivos de programa\Mount&Blade Warband\Modules\OSPW - Native 1.131b
\OSPW - Native 1.131b Module_system\process_operations.py", line 400, in save_st
atement
    operand = process_param(statement[i + 1],variable_list,variable_uses,local_v
ars_list,local_var_uses,tag_uses,quick_strings)
  File "C:\Archivos de programa\Mount&Blade Warband\Modules\OSPW - Native 1.131b
\OSPW - Native 1.131b Module_system\process_operations.py", line 377, in process
_param
    result = insert_quick_string_with_auto_id(param[1:], quick_strings)
  File "C:\Archivos de programa\Mount&Blade Warband\Modules\OSPW - Native 1.131b
\OSPW - Native 1.131b Module_system\process_operations.py", line 356, in insert_
quick_string_with_auto_id
    while quick_strings.has_key(new_auto_id):
AttributeError: 'list' object has no attribute 'has_key'
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: npc_with_personality_match
WARNING: Global variable never used: g_battle_simulation_cancel_for_party
WARNING: Global variable never used: g_include_diplo_explanation
WARNING: Global variable never used: debug_message_in_queue
WARNING: Global variable never used: g_multiplayer_next_team_1_faction
WARNING: Global variable never used: g_multiplayer_next_team_2_faction
WARNING: Global variable never used: g_confirmation_result
WARNING: Global variable never used: romantic_attraction_seed
WARNING: Global variable never used: g_multiplayer_factions_voteable
WARNING: Global variable never used: g_multiplayer_maps_voteable
WARNING: Global variable never used: g_multiplayer_kick_voteable
WARNING: Global variable never used: g_multiplayer_ban_voteable
WARNING: Global variable never used: g_multiplayer_player_respawn_as_bot
WARNING: Global variable never used: g_multiplayer_battle_earnings_multiplier
WARNING: Global variable never used: g_election_date
WARNING: Global variable never used: g_training_ground_training_num_gourds_to_de
stroy
WARNING: Global variable never used: pout_party
WARNING: Global variable never used: g_player_party_morale_modifier_leadership
WARNING: Global variable never used: g_player_party_morale_modifier_food
WARNING: Global variable never used: g_player_party_morale_modifier_debt
WARNING: Global variable never used: g_player_current_own_troop_kills
WARNING: Global variable never used: num_routed_allies
WARNING: Global variable never used: belfry_rotating_objects_begin
WARNING: Global variable never used: last_belfry_object_pos
WARNING: Global variable never used: g_minister_notification_quest
WARNING: Global variable never used: any_allies_at_the_last_battle
WARNING: Global variable never used: number_of_npc_slots
WARNING: Global variable never used: npc_grievance_string
WARNING: Global variable never used: npc_praise_not_complaint
WARNING: Global variable never used: g_custom_battle_team1_death_count
WARNING: Global variable never used: total_political_events
WARNING: Global variable never used: g_wedding_bishop_troop
WARNING: Global variable never used: newglob_total_prosperity_from_villageloot
WARNING: Global variable never used: newglob_total_prosperity_from_bandits
WARNING: Global variable never used: newglob_total_prosperity_losses
WARNING: Global variable never used: newglob_total_prosperity_gains
WARNING: Global variable never used: total_vassal_days_on_campaign
WARNING: Global variable never used: total_feast_changes
WARNING: Global variable never used: g_use_current_ai_object_as_s8
WARNING: Global variable never used: g_is_quick_battle
WARNING: Global variable never used: player_marshal_ai_state
WARNING: Global variable never used: player_marshal_ai_object
WARNING: Global variable never used: g_player_affiliated_time
WARNING: Global variable never used: g_persuasion_success_limit
WARNING: Global variable never used: min_troops_for_formation
WARNING: Global variable never used: server_mission_timer_while_player_joined
WARNING: Global variable never used: g_hp_bar_dis_limit
WARNING: Global variable never used: g_hp_bar_ally
WARNING: Global variable never used: g_hp_bar_enemy
WARNING: Global variable never used: g_encumbrance_penalty
WARNING: Global variable never used: g_multiplayer_max_num_bots
WARNING: Global variable never used: g_multiplayer_duel_start_time
WARNING: Global variable never used: g_twice_consum_food
Checking tag usages...

______________________________

Script processing has ended.
Press any key to exit. . .
 
Thats exactly the same problem i had to struggle with, i managed to get mine solved by rewriting some lines of code... tough i am not sure whats really causing it. Did you installed it on a fresh native module or did you merged it with other mods / kits??
Would really like to read what exactly you did, cause i want to understand that type of error - message =)

You could try to hunt the bug down the same way i did, i just searched for (str_store_string,s1,"@...") commands in module_game_menus.py and replaced all quickstring-references with actual text. This solved it for me (but i still dont know whats going on with that).
Just to mention, on a clean install this doesnt happen for me, the code is perfectly fine and bug-free.

(see also my post http://forums.taleworlds.com/index.php/topic,142426.msg3420314.html#msg3420314 for more accurate info on that one)
 
neil_v said:
emekadude4 said:
where do you put the (.py) you download

You need the do download the Module System...
for example...
http://forums.taleworlds.com/index.php/topic,111706.0.html
then learn how to use it...

:oops: I'm too dumb to use it, as it says 'unexpected indent' all the time as my cut and paste is sloppy...
Sloppy doesn't work apparently... :lol: , hopefully someone will post the compiled native .txt's for us noobs sometime
I've released this kit, combined with the deployment kit too, compiled to its own installer here: http://forums.taleworlds.com/index.php/topic,142816.0.html

lucho0_0 said:
hi, i have the same problem, nobody know what's wrong, help me plz
...snip...
Abhuva said:
Thats exactly the same problem i had to struggle with, i managed to get mine solved by rewriting some lines of code... tough i am not sure whats really causing it.

I've had a thought as to a possible cause of this--and thus a possible solution--but I've not been able to test it since I cannot duplicate the error. In the scripts file, I use a quick string "@-". I'm wondering if this might mess with naming conventions, depending on what other quick strings have been declared. An easy test would be to replace its two occurrences with something like "@None" and then see if you still have errors. But, this is honestly just a guess.
 
great! i deleted "-" on all parts says "@-". so now it's seeing "@" and nothing error . sorry my bad english my first lenguage is spanish.

thx everybody!!

my mod it's near to finish XD
 
Hi, i'm digging out this subject, sorry .This mini-mod will be work with Wfas? If not, the creator is planning convert it for Wfas? Mod will definitly make Wfas more realistic and comfortable
 
hey men i have this problem:

Exporting mission_template data...
Traceback (most recent call last):
  File "process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 47, in save_mission_templates
    save_mission_template_group(file,group)
  File "process_mission_tmps.py", line 28, in save_mission_template_group
    if (len(entry[5]) > :cool::
IndexError: tuple index out of range

and my mission templates are this

pilgrim_disguise = [itm_pilgrim_hood,itm_pilgrim_disguise,itm_practice_staff, itm_throwing_daggers]
af_castle_lord = af_override_horse | af_override_weapons| af_require_civilian

## Prebattle Orders Begin
prebattle_orders_triggers = [
(0, 0, ti_once, [(party_slot_ge, "p_main_party", slot_party_prebattle_num_orders, 1)], [
        (get_player_agent_no, ":player_agent"),
        (agent_get_team, ":player_team", ":player_agent"),
(party_get_slot, ":num_of_orders", "p_main_party", slot_party_prebattle_num_orders),
(set_show_messages, 0),
(assign, ":delay_count", 0),
        (try_for_range, ":i", 0, ":num_of_orders"),   
    (store_add, ":ith_order_slot", ":i", slot_party_prebattle_order_array_begin),
            (party_get_slot, ":eek:rder_index", "p_main_party", ":ith_order_slot"),
(ge, ":eek:rder_index", 10),

#Take 3 digit order index and get component parts: group, type, order
(store_div, ":ith_order_group", ":eek:rder_index", 100),
(store_mul, ":ith_order_type", ":ith_order_group", 100),
(val_sub, ":eek:rder_index", ":ith_order_type"),
(store_div, ":ith_order_type", ":eek:rder_index", 10),
(store_mul, ":ith_order", ":ith_order_type", 10),
(store_sub, ":ith_order", ":eek:rder_index", ":ith_order"),

#Turn type and order into Native order
(assign, ":delay_order", 0),
(assign, ":num_repeats", 0),
(try_begin),
    (eq, ":ith_order_type", 1), #Start Position: hold, follow, charge; mordr_ 0-2; 3=11 stand ground
(eq, ":ith_order", 3),
(assign, ":ith_order", 11), #Stand Ground
(else_try),     (eq, ":ith_order_type", 2), #Other movement orders: mordr_ 3-8,
(try_begin),
    (is_between, ":ith_order", 5, 7), #5 or 6; Forward/Back 10 Paces
    (assign, ":delay_order", 1), #To fix bugs with these orders, they are delayed 3 seconds
    (val_add, ":delay_count", 1),
(else_try),
    (store_add, ":ith_repeat_slot", ":ith_order_slot", 60), #30 for partial version
    (party_get_slot, ":num_repeats", "p_main_party", ":ith_repeat_slot"),
(try_end),
(else_try),
    (eq, ":ith_order_type", 3), #Native Weapon Use orders: mordr_ 9,10,12,13
(try_begin),
    (eq, ":ith_order", 0),
(assign, ":ith_order", 10), #Use Any Weapon
(else_try),
    (eq, ":ith_order", 2),
(assign, ":ith_order", 12), #Hold Fire
(else_try),
    (eq, ":ith_order", 3),
(assign, ":ith_order", 13), #Fire at Will
(try_end),
(else_try),
    (is_between, ":ith_order_type", 5, 7), #5 or 6; Caba Weapon and Shield orders
(val_add, ":delay_count", 1), #To fix bugs with these orders, they are delayed 3 seconds
(else_try),
    (eq, ":ith_order_type", 7), #Caba Skirmish
(eq, ":ith_order", 1), #Begin Skirmish, any other value would be an error
(team_set_order_listener, ":player_team", ":ith_order_group"),
(call_script, "script_order_skirmish_begin_end", skirmish),
(team_set_order_listener, ":player_team", -1),
(try_end),
            (try_begin),
    (is_between, ":ith_order_type", 1, 4),
(neq, ":delay_order", 1),
(val_max, ":num_repeats", 1),
(try_for_range, ":unused", 0, ":num_repeats"),
    (team_give_order, ":player_team", ":ith_order_group", ":ith_order"),
(try_end),
(try_end),
(try_end), #End Order Slot Loop
        (team_set_order_listener, ":player_team", grc_everyone), #Reset
        (set_show_messages, 1),
(display_message, "@Everyone, you know what to do. To your positions!", 0xFFDDDD66),
(try_begin),
    (eq, ":num_of_orders", 1),
(party_get_slot, ":first_order", "p_main_party_backup", slot_party_prebattle_order_array_begin),
(party_set_slot, "p_main_party", slot_party_prebattle_order_array_begin, ":first_order"),
(party_set_slot, "p_main_party_backup", slot_party_prebattle_order_array_begin, 0),
(try_end),
        (try_begin),
            (eq, ":delay_count", 0),
            (party_set_slot, "p_main_party", slot_party_prebattle_num_orders, 0),
(try_end),
]),

(3, 0, ti_once, [(party_slot_ge, "p_main_party", slot_party_prebattle_num_orders, 1)], [
        #To fix bugs with Move Forward/Back 10 Paces and Caba Weapon orders
#these orders are applied separately, after other orders
        (get_player_agent_no, ":player_agent"),
        (agent_get_team, ":player_team", ":player_agent"),
(party_get_slot, ":num_of_orders", "p_main_party", slot_party_prebattle_num_orders),
(set_show_messages, 0),
        (try_for_range, ":i", 0, ":num_of_orders"),   
    (store_add, ":ith_order_slot", ":i", slot_party_prebattle_order_array_begin),
            (party_get_slot, ":eek:rder_index", "p_main_party", ":ith_order_slot"),
(ge, ":eek:rder_index", 10),

#Take 3 digit order index and get component parts: group, type, order
(store_div, ":ith_order_group", ":eek:rder_index", 100),
(store_mul, ":ith_order_type", ":ith_order_group", 100),
(val_sub, ":eek:rder_index", ":ith_order_type"),
(store_div, ":ith_order_type", ":eek:rder_index", 10),
(this_or_next|is_between, ":ith_order_type", 5, 7), #5 or 6; Caba Weapon and Shield orders
(eq, ":ith_order_type", 2), #Movement Orders
(store_mul, ":ith_order", ":ith_order_type", 10),
(store_sub, ":ith_order", ":eek:rder_index", ":ith_order"),

(try_begin),
                (eq, ":ith_order_type", 2),
                (is_between, ":ith_order", 5, 7), #5 or 6; Only Forward/Back 10 Paces
    (store_add, ":ith_repeat_slot", ":ith_order_slot", 60), #30 for partial version
    (party_get_slot, ":num_repeats", "p_main_party", ":ith_repeat_slot"),
    (val_max, ":num_repeats", 1),
    (try_for_range, ":unused", 0, ":num_repeats"),
    (team_give_order, ":player_team", ":ith_order_group", ":ith_order"),
    (try_end),
            (else_try),
    (is_between, ":ith_order_type", 5, 7), #5 or 6; Caba Weapon and Shield orders
(team_set_order_listener, ":player_team", ":ith_order_group"),
(call_script, "script_order_weapon_type_switch", ":ith_order"),
(team_set_order_listener, ":player_team", -1), #Reset
(try_end),
(try_end),
        (team_set_order_listener, ":player_team", grc_everyone), #Reset
        (set_show_messages, 1),
(party_set_slot, "p_main_party", slot_party_prebattle_num_orders, 0),
]),
]
## Prebattle Orders End
## Caba'drin Orders Begin
caba_order_triggers = [
(ti_before_mission_start, 0, ti_once, [], [
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(party_set_slot, "p_main_party_backup", slot_party_gk_order, 0),

        (try_for_range, ":i", slot_party_cabadrin_order_d0, slot_party_cabadrin_order_d8 + 1),
        (party_set_slot, "p_main_party", ":i", 30),
        (try_end),
]),

(0, 0, 0, [
        (this_or_next|game_key_clicked, gk_group0_hear),
        (this_or_next|game_key_clicked, gk_group1_hear),
        (this_or_next|game_key_clicked, gk_group2_hear),
        (this_or_next|game_key_clicked, gk_group3_hear),
        (this_or_next|game_key_clicked, gk_group4_hear),
        (this_or_next|game_key_clicked, gk_group5_hear),
        (this_or_next|game_key_clicked, gk_group6_hear),
        (this_or_next|game_key_clicked, gk_group7_hear),
        (this_or_next|game_key_clicked, gk_group8_hear),
        (this_or_next|game_key_clicked, gk_everyone_hear),
(this_or_next|game_key_clicked, gk_reverse_order_group),
(game_key_clicked, gk_everyone_around_hear),
], [
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
        (start_presentation, "prsnt_caba_order_display"),
]),

(ti_escape_pressed, 0, 0, [], [(party_set_slot, "p_main_party", slot_party_gk_order, 0),(is_presentation_active, "prsnt_caba_order_display"),(presentation_set_duration, 0),]),

(0, 0, 0, [(key_clicked, key_f9)], [
    (neg|party_slot_eq, "p_main_party", slot_party_gk_order, 0),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_3),
(is_presentation_active, "prsnt_caba_order_display"),
(presentation_set_duration, 0),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
]),

(0, 0, 0, [(game_key_clicked, gk_order_1)], [
(try_begin),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_3),
(party_set_slot, "p_main_party", slot_party_gk_order, gk_order_1),
(else_try),
(try_begin),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1), #HOLD
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2), #ADVANCE
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_3), #HOLD FIRE
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(try_end),
(try_end),
]),

(0, 0, 0, [(game_key_clicked, gk_order_2)], [
(try_begin),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_3),
(party_set_slot, "p_main_party", slot_party_gk_order, gk_order_2),
(else_try),
(try_begin),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1), #FOLLOW
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2), #FALL BACK
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_3), #FIRE AT WILL
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(try_end),
(try_end),
]),

(0, 0, 0, [(game_key_clicked, gk_order_3)], [
(try_begin),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2),
(neg|party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_3),
(party_set_slot, "p_main_party", slot_party_gk_order, gk_order_3),
(else_try),
(try_begin),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1), #CHARGE
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2), #SPREAD OUT
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_3), #BLUNT WEAPONS
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(try_end),
(try_end),
]),

(0, 0, 0, [(game_key_clicked, gk_order_4)], [
(try_begin),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1), #STAND GROUND
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2), #STAND CLOSER
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_3), #ANY WEAPON
(call_script, "script_order_set_slot_index", clear),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(try_end),
]),

(0, 0, 0, [(game_key_clicked, gk_order_5)], [
(try_begin),
(party_slot_eq, "p_main_party", slot_party_gk_order, 0),
(party_set_slot, "p_main_party", slot_party_gk_order, gk_order_5),
            (start_presentation, "prsnt_caba_order_display"),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_1), #RETREAT
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2), #MOUNT
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_5), #One-Hander
(call_script, "script_order_weapon_type_switch", onehand),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_6), #Shield
(call_script, "script_order_weapon_type_switch", shield),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, k_order_7), #Begin Skirmish
(call_script, "script_order_skirmish_begin_end", skirmish),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),   
(try_end),
]),

(0, 0, 0, [(game_key_clicked, gk_order_6)], [
    (try_begin),
(party_slot_eq, "p_main_party", slot_party_gk_order, 0),
(party_set_slot, "p_main_party", slot_party_gk_order, gk_order_6),
            (start_presentation, "prsnt_caba_order_display"),
(else_try),
    (party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_2), #DISMOUNT
    (party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_5), #Two-Handers
(call_script, "script_order_weapon_type_switch", twohands),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_6), #No Shield
(call_script, "script_order_weapon_type_switch", noshield),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, k_order_7), #End Skirmish
(call_script, "script_order_skirmish_begin_end", end_skirmish),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),   
(try_end),
]),

    (0, 0, 0, [(key_clicked, k_order_7)], [ #f7
    (try_begin),
    (party_slot_eq, "p_main_party", slot_party_gk_order, 0),
    (party_set_slot, "p_main_party", slot_party_gk_order, k_order_7),
            (start_presentation, "prsnt_caba_order_display"),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_5), #Polearms
(call_script, "script_order_weapon_type_switch", polearm),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(else_try),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_6), #Free Shield
(call_script, "script_order_weapon_type_switch", free),
(party_set_slot, "p_main_party", slot_party_gk_order, 0),
(try_end),
]),

(0, 0, 0, [(key_clicked, k_order_:cool:], [ #F8
    (try_begin),
(party_slot_eq, "p_main_party", slot_party_gk_order, gk_order_5),
    (call_script, "script_order_weapon_type_switch", ranged),
    (party_set_slot, "p_main_party", slot_party_gk_order, 0),
(try_end),
]),

(0.5, 0, 0, [(call_script, "script_cf_order_skirmish_check")], [(call_script, "script_order_skirmish_skirmish")]),
]
## Caba'drin Orders End

i need help  :oops:

You can help me
 
Back
Top Bottom