Results 1 to 2 of 2

Thread: How i can do it?

Hybrid View

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

    Default How i can do it?

    I try to do a mod for multiplayer H2H campaigns. I already did some changes with TWeak, it all works, but I has no idea how I can make those:

    1) Add "reforms" to all factions, witch will allow them to update troops to high quality units - while armies are in the settlements with high level barracks.

    2) Make all generals immortal until 60 years old.

  2. #2
    Semisalis
    Join Date
    Sep 2011
    Location
    New Zealand
    Posts
    412

    Default Re: How i can do it?

    Number 2) - what a good idea!

    You will need to do this with Lua scripting. Look in the export_triggers.lua file at the emperor octavian traits at the top of the page

    First you will need to create a new trait in the db (tables to add to are trait_info , trait_level_effects_tables , effect_bundles_tables and the localisation files)

    Then apply to the trait the dummy effect that gives immortality to octavian in the trait_level_effects db table

    Lastly script in Lua to apply and remove the effect as per octavius

    To apply the effect you will need to add it on both character turn start (for old characters) and on character created

    To remove the effect do it on character turn start
    ~ Too soon old, too late smart ~

Posting Permissions

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