[Command] getRelatedPerson

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.getRelatedPerson(Type1, Type2, ..., TypeN)


USE:
Get a single NPC with a relationship of the specified type or another with the specified NPC.

The list for 'Type' is:
  • Dating
  • Spouses
  • Siblings
  • ParentChild
  • Cousins
  • BossEmployee
  • Colleagues

TYPE: Command, non-Ref
RETURNS: Actor
THEME: NPC-NPC
COMPARE: getRelatedPeople


EXAMPLE:

Code: Select all

    WHO: Dating = getSpecific(Dating); InLaw = Dating.getRelatedPerson(ParentChild)
    // For a scene related to the in laws perhaps
    
    JohnsSO = John.getRelatedPerson(Spouses, Dating)  
    If JohnsSO.isValid()
        JohnsSO.show(3)
        JohnsSO.dress()
        "John's sweetheart arrives. We can swing now!"
    Else
        "John is single."
    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