Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Show only items that don't have an element id

yeah how do you make it so it shows all the items that don't have an element?I know how to make it show only items with an element but I don't know how to do this. anyone know how?
 
Do a search in the help file for item

You'll want the one called Rpg::Item or something similar. It'll tell you what the element set is called (same for weapon, different for armor). Then just include a conditional for not having that before the item is pushed to the @data for that script

Putting a ! in front of the command is basically "is not"

Like so:

if whatever.include?(whatever2)

Will do it if it's there

if !whatever.include?(whatever2)

Will do it if it's not there
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top