As part of a demo I have been working on for an RPG, I have made gameplay tags for particular items needed for one of five tasks in that demo. Though I’ve made a data table for each item, I am unsure as to how to set a quantity for each item. This is so the game will know how many of each listed item the player has, and it will also be used as a condition to determine if the task is done successfully.
Kind of. You need to get their inventory as an array and then for each, if “has Tag” then add it to another array. If array LEN > your specified number, then you have a True or false bool!
Hope that helps!
I did consider using arrays, actually. I wasn’t sure if it was the correct approach. But okay, I’ll try that. Though how do I add an array attribute to a preexisting gameplay tag?
There will be a dialogue widget that will show text based on whether or not the player has the correct items and needed numbers. If I used a map variable, I wouldn’t be able to cast to it, since one can’t cast to any variables within a level BP.