Results 1 to 5 of 5

Thread: Scripting Building Damage

  1. #1

    Default Re: Modding tools & Tutorials—read me first!

    how are scripts created?
    I know they are used in SPQR. there is a script that creates units when you siege a city.
    I want to create a script that destructs buildings when settlements are conquered...

  2. #2
    Lusted's Avatar Look to the stars
    Join Date
    Jan 2005
    Location
    Brighton, Sussex, England.
    Posts
    18,183

    Default Re: Modding tools & Tutorials—read me first!

    You can't destroy buildings via scripts, all you can do is damage them.
    Creator of:
    Lands to Conquer Gold for Medieval II: Kingdoms
    Terrae Expugnandae Gold Open Beta for RTW 1.5
    Proud ex-Moderator and ex-Administrator of TWC from Jan 06 to June 07
    Awarded the Rank of Opifex for outstanding contributions to the TW mod community.
    Awarded the Rank of Divus for oustanding work during my times as Administrator.

  3. #3

    Default Re: Modding tools & Tutorials—read me first!

    but you can use damage_building to set building health to 0% which is basically the same as having an assassin destroy it. so, now I just need to know how to make capturing a city the trigger...

  4. #4
    Stuie's Avatar Laudir Agus Mir
    Join Date
    Sep 2004
    Location
    Upper Gwynedd, PA
    Posts
    1,000

    Default Re: Scripting Building Damage

    Split from the Modding tools & Tutorials thread.

  5. #5

    Default Re: Scripting Building Damage

    This works for me:

    Code:
    monitor_event GeneralCaptureSettlement not FactionType romans_senate
       and SettlementName Rome
       console_command set_building_health Rome core_building 0
    end_monitor
    You need to repeat it for every settlement (The romans_senate condition is optional).

Posting Permissions

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