Results 1 to 3 of 3

Thread: Scripting question

  1. #1
    Asia ton Barbaron mapper Member Pharnakes's Avatar
    Join Date
    Feb 2007
    Location
    The Kingdom of Fife
    Posts
    1,768

    Smile Scripting question

    Is it the following bit of code possible?

    Code:
     
    monitor_event FactionEndTurn FactionType romans_julii
    and I_LocalFaction romans_juli
    and not BuildingExixts Ivernis expansion
    and not BuildingExixts Eamin_Macha expansion
    and not BuildingExixts Ivernis homeland
    and not BuildingExixts Eamin_Macha homeland
    and I_TurnNumber > 1
     if I_settlementOwner Ivernis = romans_julii
     and I_SettlementOwner Emain_Macha = romans_julii
     
      console_command create_building Ivernis expansion
      console_command create_building Emain_Macha expansion
      terminate_monitor
     end_if
    Specificlay, can you do not BuildingExists for more than one settlement in the same chunk of code?

    Thanks
    Asia ton Barbaron The new eastern mod for eb!

    Laziest member of the team My red balloons, as red as the blood of he who mentioned Galatians.
    Roma Victor!

    Yous ee gishes?

  2. #2
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Scripting question

    No that won't work at all.

    There is no BuildingExists condition. You probably want to use SettlementBuildingExists, but that requires a settlement as a trigger. Generally that means you'd want to use the SettlementTurnsStart or SettlementTurnEnd event in the event monitor.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  3. #3
    Has a real big Member Kuni's Avatar
    Join Date
    Mar 2007
    Location
    Philippines
    Posts
    128

    Default Re: Scripting question

    "Exixts"

    be sure to get spelling right with Atilius' suggestion. Good luck! :)
    before you ask a RTW modding question make sure you have done these things:

    1. At least read these two stickies in the Modding Questions forum: Introduction and Welcome
    2. used the search function (upper right corner of your screen) to know if your Q has been asked before.
    3. browsed the Modding Answers subforum, and the Scriptorium.


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