[Command] makePermanent

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.makePermanent()


USE:
This turns a temporary actor (generatePersonTemporary) into a permanent actor that persists after the current scene ends.
Does nothing if called on an already permanent actor.


TYPE: Command, Reference
RETURNS: /
THEME: Actor Creation
COMPARE: generatePersonTemporary, generatePerson


EXAMPLE:

Code: Select all

// Generate someone who is into the player's gender
InterestedPerson = generatePersonTemporary()
While !InterestedPerson.isInterestedIn(Player)
    InterestedPerson = generatePersonTemporary()   // use this instead of GeneratePerson() because otherwise there would be too many (depending how many loops it takes to generate oen that's into the player) permanent actors who appear out of nowhere.
Endwhile
InterestedPerson.makePermanent()  // now that an interested person is generated, we can make them permanent now.
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