Page 7 of 7 FirstFirst 1234567
Results 121 to 124 of 124

Thread: How to add strat map character levels & change battle models

  1. #121

    Default Re: How to add strat map character levels & change battle models

    Hi, i'm quite new here, and im currently implementing the teutonic order faction in the vanilla campaign using the normans as a preset. I can't seem to get the hochmeister model to show up on the battle map.
    I'm pretty sure it's because of the campaign script. When i implement the model manually using the descr_character.txt file it works fine, but then every named character is the hochmeister and I only want the faction leader. This is what I wrote in the campaign script file (i'll also add some context on where exactly i wrote it because I think it might have something to do with the placement of the code):


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;; STARTING SCRIPT FOR NEW CAMPAIGN ;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



    monitor_event BecomesFactionLeader FactionType normans
    change_battle_model norman leader Teutonic_Hochmeister
    end_monitor


    ;faction summary scroll opened or closed
    monitor_event ScrollOpened ScrollOpened faction_summary_scroll
    set_counter Opened_Faction_Overview_Scroll 1
    end_monitor


    monitor_event ScrollClosed ScrollClosed faction_summary_scroll
    set_counter Opened_Faction_Overview_Scroll 0
    end_monitor

    ;settlement scroll opened or closed
    monitor_event ScrollOpened ScrollOpened own_settlement_info_scroll
    set_counter Opened_Settlement_Scroll 1
    end_monitor


    monitor_event ScrollClosed ScrollClosed own_settlement_info_scroll
    set_counter Opened_Settlement_Scroll 0
    end_monitor


    ; open the missions scroll
    ; monitor_conditions I_TurnNumber = 0


    ; ; select_ui_element mission_select
    ; select_ui_element faction_button
    ; simulate_mouse_click lclick_up
    ;
    ; terminate_monitor
    ; end_monitor


    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- England --
    ;;;;;;;;;;;;;;;;;;;;;;;;



    Thanks in advance!!

  2. #122

    Default Re: How to add strat map character levels & change battle models

    Quote Originally Posted by Goldbay123 View Post

    monitor_event BecomesFactionLeader FactionType normans
    change_battle_model norman leader Teutonic_Hochmeister
    end_monitor

    I made a typo it should be 'normans' on the second line, but the problem is still the same.

  3. #123

    Default Re: How to add strat map character levels & change battle models

    I'm assuming "Teutonic_Hochmeister" is the name of the entry in data/unit_models/battle_models.modeldb. If not, you must supply an entry from that file as the argument for the change_battle_model command. You already caught the faction name typo.

    Something in my deep memory tells me that BeomcesFactionLeader fires on turn 0 when the campaign is being setup and "makes" the faction leaders and heirs from the data in descr_strat.txt. But this may be incorrect. If that event doesn't fire automatically on turn 0, then you will need to use a different event, such as FactionTurnStart, to change the leader battle model at the start of a campaign. Example:

    Code:
    monitor_event PreFactionTurnStart TrueCondition ;don't need to specify faction, we want this model to change at the very start of the campaign
     change_battle_model normans leader Tuetonic_Hochmeister
     terminate_monitor ;OK to terminate because this is a campaign start monitor, but I still recommend that you load this monitor with as much code as possible for efficiency and readability rather than having multiple terminating campaign start monitors
    end_monitor

  4. #124
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,132
    Blog Entries
    35

    Default Re: How to add strat map character levels & change battle models

    Your assumption is correct in so far that the event will not automatically fire at the start of the game, the game will however automatically apply the 'leader' and 'heir' status to the first two named characters if none are defined. Hence why the teutonic campaign applies the model to the descr_strat entry of that leader while using that monitor for the coming BecomesFactionLeader events.
    This eliminates the use of a additional monitor.

    Code:
    character    Gunther von Schwarzenburg, named character, male, leader, age 45, battle_model Teutonic_Hochmeister, x 60, y 36
    Last edited by Gigantus; November 08, 2023 at 09:30 PM.










Page 7 of 7 FirstFirst 1234567

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •