[Condition] hasRelationship

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 »

Actor.hasRelationship(Type1, Type2, ..., TypeN)


USE:
Checks to see if this NPC is already in a special relationship of a specific type or another with any another NPC. The list for 'Type':
  • Dating
  • Spouses
  • Siblings
  • ParentChild
  • Cousins
  • BossEmployee
  • Colleagues

TYPE: Condition, non-Ref
RETURNS: bool
THEME: NPC-NPC
COMPARE: addNPCRelationship, removeNPCRelationship


EXAMPLE:

Code: Select all

    If John.hasRelationship(Dating, Spouses)  || John.isDating()
        "John is taken, ladies ..."
    Else
        "John is available, ladies!"
    Endif
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