multiple row checks for data tables.

Hey there,

I’m having a bit of a… Blank spot. I just can’t seem to rattle my brain cage.

It’s just my data table organisation or something.

So I want to be able to pick a specific row using some checks.

So you have Row name and name, a location it’s found (one of 10) and rarity (One of 5)

So to essentially guess who, My way to a result.

For example - It’s uncommon, It lives in water, then randomly gives you one of 3 creatures that have those traits.

I just can’t think how to guess who My way there. I think it’s enums and selects, but…Boy howdy am I stuck

Any help would be appreciated, thank yee

Update:

I think its this tutorial

Ok after an hour or 2 of faffing.

I think I’ve come to a conclusion that works, but is by means not very pretty.

My plan is to swap the data table for something like an enum or something. To cut down on the mass.

I’m not sure really how yet. This is ugly but works…well, at least in the 3 mins of testing I did.

There are a few other options for this.

For example:

  • A quick one is to use Gameplay tags. they are really flexible and will allow you iterate a lot in a few clicks:


    You can them assign them to the item in a data table:

    The downside with this is that might not work so good for medium/large lists since you have to loop through the entire data table and the fact that the Contains node loops the entire tag container to compare:

  • Another option is to create a trie data structure for the loot. Tries are really fast, unfortunatley blueprint might be a bit limited when it comes to nested structs. You can make it work using blueprint actors as nodes, though.

1 Like

Ok super interesting. Didn’t even know that existed.

I’ve spent a bunch of time learning excel to adjust for this for the data tables, which all works great and flicking through a bunch of tutorials to get to grips with it.

It works fantastically.

My finale is I’m stuck trying to find a node to query this.

If I manually select the gameplay tags to query, It works great.

But I need it to be dynamic based on an input.

So I guess my question is how to I query for tags using strings

Good lord.

I’ve been messing around And I think I was needlessly complicating it.

This is the result.

Turns out it was the “Matches wildcard node” That I was after.

This now creates a pool of valid responses from the list using values in the field.

Then randomly picks one at the end. To give a random outcome.

Thank you for your help. I’ve learnt loads.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.