• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

x0y15

Sergeant
2 Badges
Feb 9, 2024
74
111
  • Imperator: Rome
  • Prison Architect
I have found that I can have an NPC perform an INTERACTION with the following code.

Code:
run_interaction = {
    interaction = interaction_name_here
    actor = CHAR
    recipient = CHAR
    secondary_actor = CHAR
    secondary_recipient = CHAR
    execute_threshold = accept/maybe/decline
}

can i use run_interaction to run interactions that require a scope:target, such as contract_assistance_interaction and blackmail_interaction?

I tried the following but got an error that target was not found.
Code:
something = { save_scope_as = target }
run_interaction = { ... }

Please let me know if you have any information.
thank you.
 
I have found that I can have an NPC perform an INTERACTION with the following code.

Code:
run_interaction = {
    interaction = interaction_name_here
    actor = CHAR
    recipient = CHAR
    secondary_actor = CHAR
    secondary_recipient = CHAR
    execute_threshold = accept/maybe/decline
}

can i use run_interaction to run interactions that require a scope:target, such as contract_assistance_interaction and blackmail_interaction?

I tried the following but got an error that target was not found.
Code:
something = { save_scope_as = target }
run_interaction = { ... }

Please let me know if you have any information.
thank you.
6 out of 9 vanilla usages of run_interaction use saved scopes, so I don't see why not.
Maybe post the actual code you tried to run?