# Scripted cost modifiers for peace actions ## How to access data from the peace action #- `ROOT` - Negotiator country (who is doing the negotiation) #- `FROM` - Taker country (who will be the owner after the conference) #- `FROM.FROM` - Giver country (who was the owner before the conference) #- `FROM.FROM.FROM` - State (iff peace action refers to a state) #You might have to use e.g. `ROOT.FROM` to access the variable from inside another scope ## Possible peace action types #- `take_states` #- `puppet` #- `force_government` #- `liberate` peace_action_modifiers = { RAJ_get_off_my_lawn_peace_cost_modifier = { category = treaties_or_conferences peace_action_type = take_states enable = { FROM = { tag = RAJ } is_in_array = { array = RAJ.owned_states_at_game_start value = FROM.FROM.FROM } } cost_multiplier = 0.05 } }