Iterating through an array of items

Forum Rewards
Every new forum post gives the author +10 coins. You can also reward great posts from other users.
Min donation: 10 coins Author gets 50%
Newbie question: I have an array of item IDs and I want to check if the player has any of them. Should I use a for-each loop or is there a shorthand '.contains' method in the Hytale API?
The API supports '.includes()' if you're using the Javascript-based scripting layer. It's much cleaner than a full for-loop for simple checks!

Post a Reply

Formatting: [b]bold[/b], [i]italic[/i], [u]underline[/u], [code]code[/code], [quote]quote[/quote]