Results 1 to 5 of 5

Thread: Script to destory faction

  1. #1

    Default Script to destory faction

    Is it possible to have a script that destroys a faction (i.e all settlements rebel) when the faction leader is killed? I'd prefer this to happen if its through an unnatural death (not old age); but this isnt essential. Possibilities? Any help would be appreiated.
    What pity is it That we can die, but once to serve our country

  2. #2
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Script to destory faction

    Inside a script, there is no way I know of to distinguish between a death in battle and a natural death.

    The event monitor below will destroy the Gauls upon the death of the Gallic faction leader:

    Code:
    monitor_event BecomesFactionLeader FactionType gauls
        console_command kill_faction gauls
    end_monitor
    This is triggered by the succession of the faction heir to faction leadership, which implies the faction leader has died. I've tested it and it works nicely.

    I haven't tested the use of CeasedFactionLeader in place of BecomesFactionLeader, but that ought to work too.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  3. #3

    Default Re: Script to destory faction

    Thankyou, thats a lot of help. I assume that the destoyed faction's provinces turn rebel.

    If this were to be done on the BI engine, would provinces go to the faction that shadows the faction? e.g. If the Western Roman Empire was eliminated in this way, would there settlements go over to the Western Roman Empire rebels?
    What pity is it That we can die, but once to serve our country

  4. #4
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Script to destory faction

    Quote Originally Posted by Thurnor
    Thankyou, thats a lot of help. I assume that the destoyed faction's provinces turn rebel.
    That's right.

    Quote Originally Posted by Thurnor
    If this were to be done on the BI engine, would provinces go to the faction that shadows the faction? e.g. If the Western Roman Empire was eliminated in this way, would there settlements go over to the Western Roman Empire rebels?
    I think so, but I haven't confirmed this.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  5. #5

    Default Re: Script to destory faction

    Thanks for the reply, must test this. Thanks again
    What pity is it That we can die, but once to serve our country

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO