Results 1 to 6 of 6

Thread: Changing the battlemodel of heir/leader?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Changing the battlemodel of heir/leader?

    Hi there,

    I was recently trying to change the battlemodels of heirs and leaders via campaignscript.

    Knowing a bit about scripting, I tried these 3 possibilities. (the actual command is taken from the campaign script of HRR)

    Code:
        monitor_event BecomesFactionLeader FactionType denmark
    
            change_battle_model denmark leader norman_king
    
        end_monitor
    Code:
        monitor_event BecomesFactionLeader FactionType denmark
    
    
            change_battle_model denmark leader northern_general
            change_battle_model denmark leader norman_king
    
        end_monitor
    Code:
        monitor_event BecomesFactionLeader FactionType denmark
    
            change_battle_model denmark leader northern_general norman_king
    
        end_monitor
    But none of them worked and the last one even caused me a CTD.

    Any ideas?



  2. #2

    Default Re: Changing the battlemodel of heir/leader?

    Code:
    monitor_event BecomesFactionLeader FactionType denmark
    change_battle_model denmark leader norman_king
    end_monitor
     
    monitor_event BecomesFactionHeir FactionType denmark
    change_battle_model denmark heir norman_general
    end_monitor
    Your first script is correct, if there is a problem with it not working it's likely caused by something else. Do you have the norman_king coded into your battle_models.db?

  3. #3
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Re: Changing the battlemodel of heir/leader?

    I've got a norman_king coded in my modeldb.

    But during the day at school, I got an idea what might cause this. I'll try and edit this post then.

    Edit: Ok, it does't work.

    I tried with this one:

    monitor_event IsFactionLeader FactionType denmark
    change_battle_model denmark leader norman_king
    end_monitor

    And it doesn't work.

    It works when the factionleader placed by the descr_strat is dead and a new guy becomes faction leader, but only then.
    Last edited by Nevada; June 17, 2009 at 07:49 AM.



  4. #4

    Default Re: Changing the battlemodel of heir/leader?

    Ah, so you want to use these battle_models from the games start? If so you add the battle_model line in descr_strat...
    Code:
    character William, named character, male, leader, age 50, x 309, y 147, portrait king, battle_model Norman_King

  5. #5
    Nevada's Avatar Domesticus
    Join Date
    Jun 2007
    Location
    Bavaria
    Posts
    2,197

    Default Re: Changing the battlemodel of heir/leader?

    Thy mate, didn't think about this yet.



  6. #6

    Default Re: Changing the battlemodel of heir/leader?

    i am sure, you must do what eothese say!

    wenn nicht dann stimmt was mit deinem norman_king nicht

Posting Permissions

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