Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
FLARE

New Dev question - requires_item(equipped)?

Anubis
Friday, November 19, 2021 - 08:47

Hello!

I'm having a great time learning to use the Flare engine to develop my own project, and am stumped by the fact that an event can check if the player has an item in their inventory with requires_item, but apparently this does not apply to an item they are wearing. Is there no way to check if the player actually has an item equipped?

Thanks!

  • Log in or register to post comments
WithinAmnesia
joined 5 years 5 months ago
Friday, November 19, 2021 - 16:21
WithinAmnesia's picture

https://github.com/flareteam/flare-engine/wiki/Attribute-Reference This is the best I can come up with in a pinch. When I get stuck I just look through this and try to see if I can find something that can work. Then test it, improve it and try again if it is still having issues. I am hoping 1.13 can add a few more ~tools / character progression with decimal support for stats so I suppose sometimes things might be added if after testing you still have issues. Iterate, iterate, iterate.

  • Log in or register to post comments
Anubis
joined 9 months 39 min ago
Saturday, November 20, 2021 - 10:16

Hi Amnesia,

Thanks for the suggestion, but I already have the attribute reference bookmarked, and it might be my default new tab address, lol. There's so much good stuff in there, and that's where I start as well, I was just surprised not to see what I thought would be a slam dunk property. Hopefully they can add something like requires_equipped and requires_not_equipped or something.

  • Log in or register to post comments