Basically trying to figure out how to pull whether an armor in slot X is equipped or not. So I can have a true false statement to use to display equipment slots on a paper doll ui. I know I can pull the item by using $gameActors.actor(X).equips()[X]; but how do I pull if there is any armor equipped in that slot or not?
MV What is the syntax to pull if an armor is equipped?
Javascript/Plugin Supportim not entirely sure what youre asking.
you can put that same exact line you used as the condition of an if statement and itll pass if anything is there at all and will fail if its empty
if theres an armor there, then its equipped, no?
if the slot is empty, then the statement you used would return a null for the empty slots
you can put that same exact line you used as the condition of an if statement and itll pass if anything is there at all and will fail if its empty
::double post::
So I'm using this in SrdHudMaker as a condition to display an image so that it only shows the picture on the screen when the player has something equipped in slot 3. When I try inserting $gameActors.actor(1).equips()[3];
it gives me an error "Uncaught SyntaxError: Unexpected end of input"
Edit: It was because I had a semicolon at the end, without it - it works perfectly.
Original thread: https://forums.rpgmakerweb.com/threads/what-is-the-syntax-to-pull-if-an-armor-is-equipped.170534/