Rule:Return Actor Node

From Intrigues Wiki
Revision as of 18:46, 9 February 2024 by Tayfunwiki (talk | contribs)

Description

Return Actor Node
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 Heir")]
private Actor GetLeader(Actor conspirator, Actor target) {
    return conspirator.Heir;
}

- The difference from the default version lies in the parameter used in the method.

» 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.