Results 1 to 4 of 4

Thread: Conditional scripting

Hybrid View

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

    Default Conditional scripting

    Hi guys, anybody could help me with script that would spawn rebel army, but only if human is controling certain faction? I would like to create some rebelitions,but i dont want to run them for AI factions, only for human - spawning big armies in AI teritory will always destabilize that faction and i want to prevent situation where my scripted revolution would cause AI faction to loose to rebel.


    another thing - is possible to give certain province to AI or Human player by the script? (and how?)

    thanks for any reply's

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Conditional scripting

    This might give you an idea:

    Code:
    monitor_conditions I_TurnNumber > 0
    	and I_LocalFaction faction_name
    	spawn_army
    		faction slave
    		character	Skilas, named character, age 26, x 364, y 176, family
    		traits GoodCommander 4
    		unit		ME Bodyguard				exp 4 armour 0 weapon_lvl 0
    		unit		Cuman Horse Archers				exp 2 armour 0 weapon_lvl 0
    		unit		Cuman Horse Archers				exp 2 armour 0 weapon_lvl 0
    		unit		Kypchak Horse Archers				exp 2 armour 0 weapon_lvl 0
    		unit		Kypchak Horse Archers				exp 2 armour 0 weapon_lvl 0
    		unit		Kypchak Riders				exp 2 armour 0 weapon_lvl 0
    		unit		Kypchak Riders				exp 2 armour 0 weapon_lvl 0
    	end
    
    terminate_monitor
    end_monitor










  3. #3

    Default Re: Conditional scripting

    thank you.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Conditional scripting

    One is glad to be of service










Posting Permissions

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