+ Reply to Thread
Results 1 to 3 of 3

Thread: It is impossible to use a province event to add traits to it's owner correct?

  1. #1

    It is impossible to use a province event to add traits to it's owner correct?

    Code:
    province_event = { # Peasants take power ending revolt
    	id = 40109
    
    	picture = "event_prosperity"
    
    	trigger = {
    		condition = { type = has_province_effect value = { revolt = yes } }
    		condition = { type = not value = type = peasant_loyalty value = 0.5 }
    		condition = { type = owner
    			condition = { type = trait value = user_defined_b }
    			condition = { type = trait value = merciful }
    			condition = { type = has_law value = { royal_preorgatory_law = yes } }
    			condition = { type = has_law value = { elective_law = yes } }
    		}
    	}
    
    	mean_time_to_happen = {
    		months = 1
    
    	}
    
    	action_a = { # Mild Reforms
    		ai_chance = 25
    		effect = { type = remove_province_effect value = revolt }
    		effect = { type = peasant_loyalty value = 0.2 }
    		effect = { type = peasant_power value = 0.1 }
    		effect = { type = owner
    			effect = { type = add_trait value = wise }
    			effect = { type = add_trait value = forgiving }
    		}
    	}
    
    	action_b = { # Radical Reforms
    		ai_chance = 50
    		effect = { type = remove_province_effect value = revolt }
    		effect = { type = peasant_loyalty value = 0.4 }
    		effect = { type = peasant_power value = 0.2 }
    		effect = { type = owner
    			effect = { type = add_trait value = just }
    			effect = { type = add_trait value = vengeful }
    		}
    	}
    
    	action_c = { # Social Revolution
    		ai_chance = 20
    		effect = { type = remove_province_effect value = revolt }
    		effect = { type = peasant_loyalty value = 0.4 }
    		effect = { type = peasant_power value = 0.2 }
    		effect = { type = owner
    			effect = { type = add_trait value = reckless }
    			effect = { type = add_trait value = vengeful }
    		}
    	}
    
    	action_d = { # Crush Them!
    		ai_chance = 5
    		effect = { type = peasant_loyalty value = -0.4 }
    		effect = { type = owner
    			effect = { type = add_trait value = cruel }
    			effect = { type = add_trait value = deceitful }
    		}
    	}
    }
    As part of my recent crash-course in error management I've run into a problem with the effects for this event. I'm trying to use a province event to add traits to it's owner; am I to take it that this is actually impossible? Or am I just not doing it correctly?

  2. #2
    Please answer this question someone, I need to know whether to rewrite my event chain or not. I can do it without being able to change the rulers traits, but it would be longer and require more events.

  3. #3
    You have to use a "workaround". Rewrite the event as a character event and use a decent prov trigger:

    charevent = xxxx
    trigger = {
    condition = { type = any_demesne_province
    condition = { type = has_province_effect value = { revolt = yes } }
    }
    action_a = {
    effect = { type = add_trait value = wise }
    }
    }
    Storm over Tintagel - A Cornwall AAR for CK: DV and TASS ... Started: 26.07.2008 ++ Updated: May 2009...

    Final Patch - Ideas for new conditions and effects

+ 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