[Condition] isRelationshipWith

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post 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
Last edited by Raddeck on Wed Jun 15, 2022 10:52 pm, edited 1 time in total.
Reason: Added 1 example
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply