[Command] WHAT

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 »

WHAT


USE:
WHAT is mostly used to enter a condition at the top of a scene, affecting its random triggering depending on what the player's doing.
However, it can also be used as a command in the rest of the scene script, returning the player's current activity.
Available actionIDs can be found in the different files contained in the "Actions" folder in modules.


TYPE: Condition, non-Ref
RETURNS: actionID (string)
THEME: Scenes, Activity
COMPARE: WHAT, WHEN


EXAMPLE:

Code: Select all

If WHAT == socialize && WHERE == nightclub
    "It shouldn't be surprising that when you talk to random strangers at a nightclub, somebody will think you're just hitting on people."
    Jealous = generatePerson()
    Jealous.dress()
    Jealous.show()
    Jealous(Angry)::"Stay away from my <Player.boyfriend_or_girlfriend>, you <Player.creep_or_skank>!"
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