- Joined
- Oct 8, 2015
- Messages
- 215
- Reaction score
- 83
- First Language
- English
- Primarily Uses
- RMMV
.
Last edited:
Wow... It really was that simple!I believe if you take out the exclamation mark it would work.
item.is_a?(RPG::Item) && item.key_item?
The exclamation mark is to signify a 'not' or 'opposite' condition. Normally you check for a value, when it's a ! you're checking for the opposite.Why does an exclamation point make item.key_item exclude Key Items?