The part of the code that needs to be added is not available in the module system.

Users who are viewing this thread

Karsontr

Regular



When I search the module presentations file for the part where I need to add the second code on this topic, it cannot be found. Then where should I add the code?
 
In the new version, it might something different. But the source code still working.
Try to search some contents in that code block, like "(game_key_clicked, gk_view_orders)".
 
In the new version, it might something different. But the source code still working.
Try to search some contents in that code block, like "(game_key_clicked, gk_view_orders)".
I searched for the codes you mentioned and these came up.

(ti_on_presentation_run,
[(store_trigger_param_1, ":cur_time"),
(try_begin),
(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),
(game_key_clicked, gk_reverse_order_group),
(call_script, "script_update_order_panel_checked_classes"),
(try_end),
(try_begin),
(this_or_next|game_key_clicked, gk_order_1),
(this_or_next|game_key_clicked, gk_order_2),
(this_or_next|game_key_clicked, gk_order_3),
(this_or_next|game_key_clicked, gk_order_4),
(this_or_next|game_key_clicked, gk_order_5),
(game_key_clicked, gk_order_6),
(get_player_agent_no, ":player_agent"),
(call_script, "script_update_order_panel", ":player_team"),
(try_end),
(try_begin),
(gt, "cur_time", 200),
(game_key_clicked, gk_view_orders),
(try_for_agents, ":cur_agent"),
(agent_set_slot, ":cur_agent", slot_agent_map_overlay_id, 0),
(try_end),
(presentation_set_duration, 0),
(try_end),
]),
]),
 
In the new version, it might something different. But the source code still working.
Try to search some contents in that code block, like "(game_key_clicked, gk_view_orders)".
I found where you need to add the code. So where should I add the code at the end of the topic I mentioned? I found the "common_battle_order_panel=" code, where should I add it?
 
Searching this "common_battle_order_panel," note the comma. And add like this.
Python:
      (5, 0, 0, [
          (store_mission_timer_a,":mission_time"),

          (ge,":mission_time",3),
          
          (call_script, "script_battle_tactic_apply"),
          ], []), #applying battle tactic

##################################################
##### troop_ratio_bar
##################################################
      (0, 0, ti_once, [], [(start_presentation, "prsnt_troop_ratio_bar")]),
##################################################
##### troop_ratio_bar
##################################################
    
      common_battle_order_panel,
      common_battle_order_panel_tick,
 
Searching this "common_battle_order_panel," note the comma. And add like this.
Python:
      (5, 0, 0, [
          (store_mission_timer_a,":mission_time"),

          (ge,":mission_time",3),
         
          (call_script, "script_battle_tactic_apply"),
          ], []), #applying battle tactic

##################################################
##### troop_ratio_bar
##################################################
      (0, 0, ti_once, [], [(start_presentation, "prsnt_troop_ratio_bar")]),
##################################################
##### troop_ratio_bar
##################################################
   
      common_battle_order_panel,
      common_battle_order_panel_tick,
Sorry for the late reply, I had some work to do. I did what you said and the codes worked thanks!
 
Back
Top Bottom