Rule:Return Clan Node

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

Description

By creating a method in the specified format, you can reference any Clan of your choice. For example, if you want to reference the Clan of a Conspirator's spouse, the Return Clan Node will accomplish this for you.
[GetClan("Get Spouse Clan")]
private Clan GetSpouseClan(Actor conspirator, Actor target) {
    if (!conspirator.HasSpouse) return null;
    return conspirator.Spouses().First().Clan;
}

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

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

Outputs

» [Clan]: Transfers the referenced clan to the next node.

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