Return Actor Node

From Intrigues Wiki
Return Actor

Description

By creating a method in the specified format, you can reference any actor of your choice. For instance, if you want to reference the Heir of a Conspirator, the Return Actor Node will facilitate this for you.
[GetActor("Get Leader")]
private Actor GetLeader(Scheme scheme) {
    return scheme.Conspirator.Clan?.GetMember("Leader");
}

[GetActor("Get Target Heir")]
private Actor FindTargetHeir(Scheme scheme)
{
    return scheme.Target.Heir;
}
        
[GetActor("Get Conspirator Heir")]
private Actor FindConspiratorHeir(Scheme scheme)
{
    return scheme.Conspirator.Heir;
}

» The method must return a value of the Actor type.

» The method should be marked using the [GetActor] attribute. (Using this attribute, you can give a specific name to the method.)

Outputs

» [Actor]: Transfers the referenced actor to the next node.

» [Null]: If the method returns a null value, the flow continues from here.