+ Reply to Thread
Results 1 to 3 of 3

Thread: Help with scripting of an event

  1. #1
    Sergeant McCann1991's Avatar
    Hearts of Iron IIIAchtung PanzerMount & Blade: WarbandSemper FiVictoria 2
    EU3: ChroniclesCrusader Kings IIMount & Blade: With Fire and SwordFor the MotherlandVictoria II: A House Divided
    HOI3: Their Finest Hour

    Join Date
    Aug 2010
    Location
    Australia
    Posts
    80

    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
    EU3 CompleteHearts of Iron IIIHeir to the ThroneVictoria 2Divine Wind
    Darkest HourCrusader Kings IIPride of NationsCrusader Kings II Holy Knight

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

  3. #3
    Sergeant McCann1991's Avatar
    Hearts of Iron IIIAchtung PanzerMount & Blade: WarbandSemper FiVictoria 2
    EU3: ChroniclesCrusader Kings IIMount & Blade: With Fire and SwordFor the MotherlandVictoria II: A House Divided
    HOI3: Their Finest Hour

    Join Date
    Aug 2010
    Location
    Australia
    Posts
    80
    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