Results 1 to 30 of 116

Thread: An Intermediate Guide to Scripting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Member Member Stuie's Avatar
    Join Date
    Aug 2001
    Location
    Upper Gwynedd, PA
    Posts
    406

    Default Re: An Intermediate Guide to Scripting

    Quote Originally Posted by shadowstar
    Can you force ownership of a city? If so can I have the code please?
    Hey Piko-

    As an example, on turn #100 at the start of the Julii turn, this will give the Senate control of Antioch and then create two units of Hastati in Antioch.

    Code:
    monitor_event FactionTurnStart FactionType romans_julii
    and I_TurnNumber = 100
    
    console_command control romans_senate
    console_command capture_settlement Antioch
    console_command create_unit Antioch "roman hastati" 2
    console_command control romans_julii
    
    terminate_monitor
    end_monitor
    This assumes the player is playing romans_julii. If not, the code gets more complicated because you'll need some sort of variable to return control of the correct faction to the player.
    Last edited by Stuie; 05-03-2006 at 20:00.

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