### Initiate account linking process Source: https://ck3.paradoxwikis.com/Special%3AApiHelp/linkaccount Example request to start linking an account from a specific provider. ```http api.php?action=linkaccount&provider=Example&linkreturnurl=http://example.org/&linktoken=123ABC ``` -------------------------------- ### Example: Activities Icon Source: https://ck3.paradoxwikis.com/index.php?action=edit&preload=Template%3ATemplate+doc%2FPreload&title=Template%3AIcon%2Fdoc This example shows how to display the 'activities' icon. ```wikitext {{icon|activities}} ``` -------------------------------- ### Claim and Struggle Setup Source: https://ck3.paradoxwikis.com/Effects_list Commands for setting up Casus Belli (CB) and starting struggles. ```APIDOC ## setup_claim_cb ### Description Sets up a claim Casus Belli (CB). ### Method N/A (Script Command) ### Endpoint N/A ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **attacker** (scope) - Required - The scope of the attacker. - **defender** (scope) - Required - The scope of the defender. - **claimant** (scope) - Required - The scope of the claimant. - **change** (scope) - Required - The scope representing the change. - **victory** (yes/no) - Optional - Whether victory is applicable. - **take_occupied** (yes/no) - Optional - Whether occupied territories are taken. ### Request Example ``` setup_claim_cb = { attacker = scope:attacker defender = scope:defender claimant = scope:claimant change = scope:change victory = yes take_occupied = yes } ``` ### Response #### Success Response (200) Adds a `scope:cb_prestige_factor` with a value based on what's being taken. If `civil_war = yes`, vassalization is based on capital location. #### Response Example None ``` ```APIDOC ## setup_de_jure_cb ### Description Sets up a de jure Casus Belli (CB). ### Method N/A (Script Command) ### Endpoint N/A ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **attacker** (scope) - Required - The scope of the attacker. - **defender** (scope) - Required - The scope of the defender. - **change** (scope) - Required - The scope representing the change. - **victory** (yes/no) - Optional - Whether victory is applicable. - **title** (title) - Optional - A specific de jure title to target. ### Request Example ``` setup_de_jure_cb = { attacker = scope:attacker defender = scope:defender change = scope:change victory = yes title = "d_scotland" } ``` ### Response #### Success Response (200) Adds a `scope:cb_prestige_factor` with a value based on what's being taken. #### Response Example None ``` ```APIDOC ## setup_invasion_cb ### Description Sets up an invasion Casus Belli (CB). ### Method N/A (Script Command) ### Endpoint N/A ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **attacker** (scope) - Required - The scope of the attacker. - **defender** (scope) - Required - The scope of the defender. - **change** (scope) - Required - The scope representing the change. - **victory** (yes/no) - Optional - Whether victory is applicable. - **take_occupied** (yes/no) - Optional - Whether occupied territories are taken. ### Request Example ``` setup_invasion_cb = { attacker = scope:attacker defender = scope:defender change = scope:change victory = yes take_occupied = yes } ``` ### Response #### Success Response (200) Adds a `scope:cb_prestige_factor` with a value based on what's being taken. #### Response Example None ``` ```APIDOC ## start_struggle ### Description Starts a struggle between characters or factions. ### Method N/A (Script Command) ### Endpoint N/A ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **struggle_type** (string) - Required - The type of struggle to start (e.g., 'cultural_differences', 'religious_differences'). - **start_phase** (string) - Optional - The initial phase of the struggle. ### Request Example ``` start_struggle = { struggle_type = "cultural_differences" start_phase = "early" } ``` ### Response #### Success Response (200) None (This is a script command, not an API endpoint). #### Response Example None ``` -------------------------------- ### Example: Court Icon Source: https://ck3.paradoxwikis.com/index.php?action=edit&preload=Template%3ATemplate+doc%2FPreload&title=Template%3AIcon%2Fdoc This example shows how to display the 'court' icon. ```wikitext {{icon|court}} ``` -------------------------------- ### Crusader Kings 3: Modified 'Start Pregnancy' Interaction Source: https://ck3.paradoxwikis.com/Talk%3ABreeding This describes a modified 'Start Pregnancy' interaction used in testing, specifically setting 'num_of_children' to 1,000. This setup is for experimental purposes to generate a large number of offspring for data collection. ```game_script interaction_start_pregnancy = { num_of_children = 1000 } ``` -------------------------------- ### Get CVector Data by Index Source: https://ck3.paradoxwikis.com/Special%3AMobileDiff/30931 Added `Get_CVector*` data functions to retrieve data from vectors by index. Example: `Get_CVector2f( MyVector, MyIndex )`. ```plaintext Get_CVector2f = { my_vector = "some_vector" index = 0 } ``` -------------------------------- ### Example: Vassal Icon Source: https://ck3.paradoxwikis.com/index.php?action=edit&preload=Template%3ATemplate+doc%2FPreload&title=Template%3AIcon%2Fdoc This example shows how to display the 'vassal' icon. ```wikitext {{icon|vassal}} ```