Conditional Branch: Armor NOT Equipped

Status
Not open for further replies.

Labyrinthine

Artist/ Developer
Veteran
Joined
Jun 23, 2014
Messages
454
Reaction score
403
First Language
Finnish
Primarily Uses
It's easy to check whether the player has a certain armor equipped with a conditional branch. However, I would need to know how to set it to check whether the player is not equipping a specific armor/ item/ weapon. Like: Conditional branch: Plate Mail is not equipped, would produce a different result altogether in some instance than if it was equipped.
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
682
Reaction score
446
First Language
English
Primarily Uses
RMVXA
You can also do a conditional branch with the following script call:
Code:
!$game_actors[ACTOR].armors.include?($data_armors[ARMOR])
Replace ACTOR with the number of the actor and ARMOR with the number of the armour. The ! at the start means 'not', so basically it's asking if the actor does not have that certain armour equipped.
 

Labyrinthine

Artist/ Developer
Veteran
Joined
Jun 23, 2014
Messages
454
Reaction score
403
First Language
Finnish
Primarily Uses
Yeah, I was really tired yesterday to the point where I suddenly lost the ability to think. So, this question can be marked as solved : -D
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
When you want a thread closed just Report your opening post and ask for it to be closed. Mods might not see a post but they will see a Report.
[closed]IgnoreMe[/closed]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,543
Members
137,834
Latest member
EverNoir
Top