Results 1 to 6 of 6

Thread: How to eliminate a faction using the script???

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How to eliminate a faction using the script???

    i need help.. how can you kill a faction using the script... so that it can be killed in a certain turn????

  2. #2
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: How to eliminate a faction using the script???

    Try this:

    Code:
    monitor_event FactionTurnStart FactionType roman_julii
                  and I_TurnNumber = 666
      console_command kill_faction roman_julii
      terminate_monitor
    end_monitor
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  3. #3

    Default Re: How to eliminate a faction using the script???

    ok great.. um should that be inserted at the last part of the script at the buttom or it can be anywhere???

  4. #4
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: How to eliminate a faction using the script???

    Script structure I try to follow:
    - counter declarations
    - timer declarations
    - monitors
    - all the other logic, like 4tpy script, etc.

    Btw, if you're using the 4tpy script and the only thing you want to tie it to is the turn number, you don't even need a monitor. Just find the spot before the while loop for the turn you want, and add it right there:

    Code:
    ...
    
    while I_TurnNumber = 665
    end_while
    
    if I_TurnNumber = 666
      ;advance_advice_thread julius_caesar_stabbed        ; "And you, Brutus?!"
      ;suspend_unscripted_advice true
      console_command kill_faction roman_julii
    end_if
    
    while I_TurnNumber = 666
    end_while
    
    ...
    The if-check around it is there in case the script is restarted after you load a saved game and the game is already past that turn, so it doesn't try to do it again.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  5. #5

    Default Re: How to eliminate a faction using the script???

    yes i might be using 4tpy..should insert it before while or after?? kind a confuse.. there two wile


    console_command date -53
    console_command season summer
    while I_TurnNumber = 21
    suspend_unscripted_advice true
    end_while

  6. #6

    Default Re: How to eliminate a faction using the script???

    ah i got it... and oh.. is it the same in eliminating a character?? and how can you give the faction's provinces thats going to be eliminated to another faction also using 4tpy script??

Posting Permissions

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