Page 1 of 1

[Condition] isRelationshipWith

Posted: Sat Nov 13, 2021 3:03 pm
by Raddeck
Actor1.isRelationshipWith(Actor2, RelationshipTypes)


USE:
If Actor1 is this specific NPC-NPC relationshop with Actor2 (Siblings, Dating, Spouses, ParentChild etc)


TYPE: Condition, Reference
RETURNS:
THEME: Family
COMPARE: isRelative, isRelativeType


EXAMPLE:

Code: Select all

If Actor.isRelationshipWith(Actor2, ParentChild)
    Spouse = false
    If Actor2.isMale()
        Rela = "son"
    Else
        Rela = "daughter"
    EndIf
Else
    Spouse = true
    If Actor2.isMale()
        Rela = "husband"
    Else
        Rela = "wife"
    EndIf
EndIf