How do I change party popularity daily

This probably has been asked before but I still cant seem to be able to do it. Also, how do i make a country independent? They are currently annex  and i want them to be free.

You use [ideology]_drift, e.g. "communism_drift = 0.01" for a 1% daily drift in communism support.


If the country is annexed, you can do:

release = TAG


If you want to release as a puppet:

release_autonomy = {

    target = TAG

    autonomy_state = autonomy_puppet

    freedom_level = 0.5

}


And if they are already a puppet, and you want to give freedom:

set_autonomy = {

    target = TAG

    autonomy_state = autonomy_free

    end_wars = no

    end_civil_wars = no

}

(the last two options will decide whether they should stay in any wars they are fighting when they are free, or not)

Where would I put "release = TAG"