Results 1 to 9 of 9

Thread: Faction slot reserved for scripts?

  1. #1

    Default Faction slot reserved for scripts?

    Hi everyone,

    During the long years of my reading about M2TW modding, I've read that some mods have used a seperate faction slot for scripting purposes, however, that of course uses a faction slot out of a limited number of 31 (including rebels). My question here would be: what are all the benefits of having a faction slot reserved for scripts, or rather, what does a reserved script faction slot enable?

    If you have some links to previous threads, that would also be much appreciated.

    Thank you very much for your time and I'm looking forward to your replies!

    All the best,
    Dominik

  2. #2
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: Faction slot reserved for scripts?


  3. #3

    Default Re: Faction slot reserved for scripts?

    Quote Originally Posted by Withwnar View Post
    Thank you! It's much appreciated.

  4. #4

    Default Re: Faction slot reserved for scripts?

    The primary use of a dedicated scripts faction is the unique naming method Withwnar developed and linked you to. That is a very powerful technique that makes a lot of scripts possible.

    You can also exploit the otherwise unused faction banner of the scripts faction using the set_faction_banner command. This can be useful for a kingdom unification or conversion script. You may need to set the scripts faction to undiscovered for this to work correctly (so they don't show up in the rankings scroll and etc.) using the set_faction_undiscovered command.

  5. #5
    bitterhowl's Avatar Campidoctor
    Join Date
    Feb 2011
    Location
    Russian Feodality
    Posts
    1,695

    Default Re: Faction slot reserved for scripts?

    Marian Reforms implementation in M2TW needs such a dummy faction too.

    My sister, do you still recall the blue Hasan and Khalkhin-Gol?
    Russian warship is winning. Proofs needed? Go find yourself!

  6. #6

    Default Re: Faction slot reserved for scripts?

    You can also use it to spawn fleets, like pirates. With the slave faction we cannot spawn fleets so they could act as pirates. Of course, pirate fleets still appear in the game from time to time but it's something that we cannot control or modify.

  7. #7
    Jadli's Avatar The Fallen God
    Gaming Emeritus

    Join Date
    Dec 2013
    Location
    Czech Republic
    Posts
    8,528

    Default Re: Faction slot reserved for scripts?

    Well, you can modify pirates a lot via "pirate_spawn_value". Its dividing the "chance" value in descr_rebel_factions (where you camn also set what ships they use), so the smaler number, the more of them there is, while with the highest value (i believe its 999) there are pretty much none.

  8. #8

    Default Re: Faction slot reserved for scripts?

    The Marian Reforms does not require a dummy faction - that was just my suggestion for automating the reforms with a script.

  9. #9
    bitterhowl's Avatar Campidoctor
    Join Date
    Feb 2011
    Location
    Russian Feodality
    Posts
    1,695

    Default Re: Faction slot reserved for scripts?

    But for scripted reforms it requires

    My sister, do you still recall the blue Hasan and Khalkhin-Gol?
    Russian warship is winning. Proofs needed? Go find yourself!

Posting Permissions

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