Page 1 of 1

[Condition] clothesContain

Posted: Sun Oct 24, 2021 2:31 am
by Raddeck
Actor.clothesContain(what)

USE:
Returns true if any of the clothing files that an actor is wearing contains 'what'.
Can be used to check if an actor is wearing a specific cloth / type of cloth.
The original names for the clothes are shown when you hover over them in the inventory menu.

The parameter isn't case sensitive and it's a string contains function so you can just use keywords
like dress or bra, doesn't have to be a full name.


TYPE: Command, Reference
RETURNS: /
THEME: Clothes
COMPARE: dress(), stripOne(), clothesContain()


EXAMPLE:

Code: Select all

If Actor.clothesContain(skirt)
    // wearing a skirt
Else
    // No skirt
EndIf