Title

From Intrigues Wiki

Actor Class - Title Property

Overview

The Title property in the Actor class provides the title of an actor based on their assigned role and gender.

Description

This property dynamically determines the appropriate title for an actor, taking into account their role within the game and their gender. For instance, if an actor's role is "Leader," and their gender is male, the title would be "King," and for a female actor, it would be "Queen."

Example of Usage

public class ActorTitleDisplay : MonoBehaviour {
    void DisplayActorTitle() {
        // Access the player actor
        var playerActor = IM.Player;

        // Retrieve and display the title of the player actor
        Debug.Log($"Player's title: {playerActor.Title}");
    }
}

Remarks

  • The Title property is especially useful in games with a hierarchical or role-based structure, where actors' titles may impact gameplay or narrative elements.
  • It's important for this property to be used in conjunction with well-defined roles and gender settings within the game to ensure consistent and meaningful title assignments.