+ Reply to Thread
Results 1 to 3 of 3

Thread: Help with scripting of an event

  1. #1
    Sergeant McCann1991's Avatar
    Achtung PanzerCrusader Kings IIEuropa Universalis: ChroniclesFor the MotherlandHearts of Iron III
    HOI3: Their Finest HourSemper FiVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Mount & Blade: WarbandMount & Blade: With Fire and Sword500k club

    Join Date
    Aug 2010
    Location
    Australia
    Posts
    88

    Help with scripting of an event

    Hi everyone,

    In a forum recently I got to thinking about how annoying it is that Hungary can be released from Austria-Hungary, but A-H remains with the same name. Consequently I tried to have a go at coding for an event to pop up soon after Hungary becomes a nation.

    Code:
    country_event = {
    
    	id = 483000000000
    
    	trigger = {
    		tag = KUK
    		exists = HUN
    		war = no
    		} 
    	}
     
    	mean_time_to_happen =  {
    		months = 1
    
    	}
    
    	title = "The renaming of Austria-Hungary"
    	desc = "With the recent independance of Hungary we can no longer be considered Austria-Hungary."
    	picture = "Budapest"
    
    	option = {
    		name = "That's annoying"
    		change_tag = AUS 
    		prestige = -5
    	}
    
    }
    Some problems I am having is the event popping up within the month I set it for, and also, when I trigger it via the console it doesn't have a button to press to apply the changes, so I don't know if it even works. So I was wondering, can anybody give me a hand here? I don't do a lot of modding (obviously) so it's probably a simple fix.

    Thanks for your time everyone.

  2. #2
    Field Marshal Rylock's Avatar
    Crusader Kings IIDarkest HourEU3 CompleteDivine WindHearts of Iron III
    Heir to the ThroneVictoria 2

    Join Date
    Mar 2008
    Location
    Edmonton, Canada
    Posts
    8,590
    You have an extra } after the war = no that's screwing up everything below it.

  3. #3
    Sergeant McCann1991's Avatar
    Achtung PanzerCrusader Kings IIEuropa Universalis: ChroniclesFor the MotherlandHearts of Iron III
    HOI3: Their Finest HourSemper FiVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    Mount & Blade: WarbandMount & Blade: With Fire and Sword500k club

    Join Date
    Aug 2010
    Location
    Australia
    Posts
    88
    Thanks very much Rylock, I fixed that, and a few other small things up and now it works fine.

+ Reply to Thread

Posting Permissions

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