Set Actor Node

From Intrigues Wiki
Revision as of 07:52, 19 February 2024 by Tayfunwiki (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Adding new actors to the story.gif

Set Actor Node

Description

The Set Actor Node assigns an actor, received from the "Return Actor Node," to a variable designated for a specific actor type. This process allows for dynamic updates to actor roles within the narrative based on game logic.

Features

  • Dynamically updates actor assignments.
  • Enhances narrative flexibility by allowing changes in character roles.

Usage

Ideal for scenarios requiring the adaptation of character roles or states in response to player actions or story developments.

using UnityEngine;

namespace Nullframes.Intrigues.Demo
{
    public class Demo_Methods : MonoBehaviour
    {
        [GetActor("Get Clan Leader")]
        private Actor GetLeader(Scheme scheme) {
            return scheme.Schemer.Conspirator.Clan?.GetMember("Leader");
        }
    }
}