Results 1 to 30 of 116

Thread: An Intermediate Guide to Scripting

Threaded View

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

    Default Re: An Intermediate Guide to Scripting

    Besieging a city's tricky, you can put a conditional in for a monitor to fire if an enemy family member is within one tile of a certain location and if the two factions are at war.

    Gets a bit cumbersome with large numbers of factions and cities, but it's possible.

    LorDBulA does something similar with his Roma siege script, have a look at his code:
    http://www.twcenter.net/forums/showthread.php?t=24968

    You can use something like that to increment a counter and then have a separate monitor_event FactionTurnStart FactionIsLocal with an I_CompareCounter condition. Be sure to set the counter back to 0 though, otherwise it will keep triggering.
    Last edited by Epistolary Richard; 03-05-2006 at 10:34.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO