From Intrigues Wiki

HasPolicy Method in Actor Class


The HasPolicy method in the Actor class is used to check if the actor's current clan has a specific policy. This method is crucial in games where clan policies can impact gameplay, character decisions, or narrative elements.


public bool HasPolicy(string policyNameOrId)


  • policyNameOrId (string): Name or ID of the desired policy to check.


  • Return Type: bool. Returns true if the actor's clan has the specified policy; otherwise, it returns false.


  • Functionality: This method verifies whether the clan that the actor is currently affiliated with possesses a specific policy, identified by either name or ID.
  • Purpose: The HasPolicy method is essential for determining the influence of clan policies on an actor. It allows for gameplay mechanics and narrative developments that are contingent upon the policies adopted by the actor's clan.


This method is used when there's a need to check if certain policies are in place within the actor's clan, impacting various aspects of gameplay such as character abilities, quest availability, or clan dynamics.

Example of Usage:

public Actor alice;
string policyName = "Economy";

// Check if Alice's clan has the 'Economy' policy
bool hasEconomyPolicy = alice.HasPolicy(policyName);

if (hasEconomyPolicy) {
    // Execute logic specific to clans with the 'Economy' policy

In this example, the code checks if Alice's clan has a policy named "Economy." If the clan possesses this policy, specific gameplay logic or narrative elements related to economy may be triggered.


  • The HasPolicy method enables dynamic interactions and decisions based on the policies adopted by a clan, adding depth to clan-based gameplay and storytelling.
  • This method is particularly important in games where clan policies directly affect the game world's socio-political landscape, character opportunities, and storylines.
  • By allowing for policy checks, the method contributes to a more immersive and strategic gameplay experience, where clan affiliations and policies play a significant role.