Page 1 of 1

[Command] generatePersonTemporary

Posted: Mon Nov 01, 2021 9:01 pm
by Raddeck
generatePersonTemporary() or
generatePersonTemporary(preset1, preset2, ..., presetN)


USE:
Generate a new actor.
If nothing inside the bracket: completely random actor. Or you can specify the presets to blend into this new actor.

The actor generated using this method will be temporary at first (unless you call MakePermanent() on them later on), meaning they will be deleted with no traces left (not even in a lpcharacter) after the current scene ends.

Useful for loops and for one-off actors like thiefs and prostitutes. Also, your adultery with a temporary actor will never be caught!


TYPE: Command, Non-Ref
RETURNS: Actor
THEME: Actor Creation
COMPARE: generatePerson, blendPreset, makePermanent


EXAMPLE:

Code: Select all

Actor = generatePersonTemporary()  // OR Actor = generatePersonTemporary(easterneuropean, twenties, fitness_model)
Actor.dress()
Actor.show(2)

EXAMPLE2:
exchangeContact(Actor)
this will fail because this is a temporary actor that will be lost forever after the current scene ends.
You need to call MakePermanent first.

Code: Select all

Actor = generatePersonTemporary()
Actor.show()
Actor.makePermanent()
exchangeContact(Actor)

Re: [Command] generatePersonTemporary

Posted: Mon Nov 29, 2021 11:01 pm
by Raddeck
How to create a female:

Code: Select all

Actor = generatePersonTemporary()
While Actor.isMale()
    Actor = generatePersonTemporary()
Endwhile

How to create a male:

Code: Select all

Actor = generatePersonTemporary()
While !Actor.isMale()
    Actor = generatePersonTemporary()
Endwhile