Results 1 to 5 of 5

Thread: Technical details of how EB Reforms work

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Caesar Augustus's Avatar Senator
    Join Date
    Oct 2009
    Location
    Gloucester, UK
    Posts
    1,412

    Default Technical details of how EB Reforms work

    Dear EB Dev Team,

    In the next version of ExRM we are looking to getting some more reforms involved that aren't dependant on the Marius event and I stumbled across a thread in this forum which said that some of them, ie the Seleucid reform, is triggered by a trait of some kind.

    As such we are highly intrigued as to implementing a similar thing in ExRM 4.0, to show that military reforms were not time based, but based on battle experience.

    Could you post a bit of guidance in this thread, or alternatively in the thread in the ExRM forum please?

    Any assistance provided will of course be credited.

    Thanks and Regards,

    Caesar Augustus
    Please leave your name if you rep. It will be returned




  2. #2
    Ferdiad's Avatar Patricius
    Join Date
    Feb 2010
    Location
    Ireland
    Posts
    28,041

    Default Re: Technical details of how EB Reforms work

    PM the Team

  3. #3
    Siegfriedfr's Avatar Semisalis
    Join Date
    May 2010
    Location
    France
    Posts
    454

    Default Re: Technical details of how EB Reforms work

    Quote Originally Posted by Caesar Augustus View Post
    Dear EB Dev Team,

    In the next version of ExRM we are looking to getting some more reforms involved that aren't dependant on the Marius event and I stumbled across a thread in this forum which said that some of them, ie the Seleucid reform, is triggered by a trait of some kind.

    As such we are highly intrigued as to implementing a similar thing in ExRM 4.0, to show that military reforms were not time based, but based on battle experience.

    Could you post a bit of guidance in this thread, or alternatively in the thread in the ExRM forum please?

    Any assistance provided will of course be credited.

    Thanks and Regards,

    Caesar Augustus
    I'm not an EB team member but been diving pretty deep into the EB files lately... this is just 50% of what they have done (their trait and script files are very complex).

    Roughly a family member can acquire a trait when he "looses" a battle under certain circunstances against a certain faction.

    Spoiler Alert, click show to read: 

    Trigger seleukid_beaten_by_cats
    WhenToTest PostBattle

    Condition IsGeneral
    and not WonBattle
    and I_ConflictType Normal
    and FactionType romans_julii
    ;and I_TurnNumber > 75
    and PercentageUnitCategory cavalry > 10
    ; and NumEnemiesInBattle > 250
    and NumFriendsInBattle > 250
    and not BattleOdds > 0.7
    and PercentageOfArmyKilled > 20
    and PercentageBodyguardKilled > 20

    Affects BeatenByCats 1 Chance 100


    The acquisition of this trait is then used to activate a reform, which is (roughly again) the campaign script placing "hidden ressources" in certain cities.
    You'll notice the trait is different from the previous quote, this is because they use alot of intermediary traits, and i lack the knowledge to understand it all.

    Spoiler Alert, click show to read: 
    ;triggers
    declare_counter Seleukid_Reform
    monitor_event CharacterTurnEnd FactionType romans_julii
    and Trait ImpressedByCats = 2
    set_counter Seleukid_Reform 1
    end_monitor

    monitor_event CharacterTurnEnd FactionType romans_julii
    and Trait SeleukidsDevelopCats > 0
    set_counter Seleukid_Reform 1
    end_monitor

    ;building placement
    monitor_event SettlementTurnStart SettlementName Ipsos
    and I_CompareCounter Seleukid_Reform = 1
    and not SettlementBuildingExists = cataphract
    and I_SettlementOwner Ipsos = romans_julii

    console_command create_building Ipsos "cataphract"


    In the EDB, the "reform" unit has this hidden ressource as a prereq, thus only appears in the recruitment when the hidden ressource has been unlocked by the reform.

    Good luck getting an answer from the team, they are busy on EB2 :p
    Last edited by Siegfriedfr; August 07, 2010 at 06:07 PM.

  4. #4
    Caesar Augustus's Avatar Senator
    Join Date
    Oct 2009
    Location
    Gloucester, UK
    Posts
    1,412

    Default Re: Technical details of how EB Reforms work

    Thanks very much my friend. I may end up PM'ing Foot and asking him, but this gives me a good start
    Please leave your name if you rep. It will be returned




  5. #5

    Default Re: Technical details of how EB Reforms work

    IIRC the trait is changed internally because there are two levels of it, one after successful loosing a battle, the second comes after some years, and only this starts the reform to show that the development of the new units takes some time. This should be listed in the EBBS.

    XSamatan

Posting Permissions

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