Results 1 to 9 of 9

Thread: Destroying buildings - scripting question?

Hybrid View

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

    Default Re: Destroying buildings - scripting question?

    @ Nero
    How to: Create Buildings using scripts

    @ Myrddraal
    Yes, of course, my head was just in completely the wrong place.

    So, just to spout code randomly:
    Code:
    	declare_counter TarquiniiCaptured
    
    monitor_event GeneralCaptureSettlement FactionType romans_julii
    		and SettlementName Tarquinii
    
    		set_counter TarquiniiCaptured 1
    		inc_counter citiescaptured 1
    
    		terminate_monitor
    	end_monitor
    
    	monitor_conditions I_CompareCounter TarquiniiCaptured = 1
    
    console_command destroy_building milita_barracks ; if such a command exists
    ;don't know if you could destroy AI buildings by mouse clicks
    
    	end_monitor
    Last edited by Epistolary Richard; 04-25-2005 at 15:18.
    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

  2. #2

    Default Re: Destroying buildings - scripting question?

    ^Wow

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