Using tables to control achievements?

jigglybeanjigglybean Member Posts: 1,584

Hi all

Just wondering if this is possible and if so, the best way of doing it. Right now I am using an actor to keep track but wanted to switch to tables.

The confusion for me comes when a player for example scores 30 points but the achievement is 50, turns the game off and returns later and then from 30 reaches 50.

The scores are being saved to a table, but I wanted the achievements to be able to read that score, so it knows when to display 'achievement unlocked' image.

Like Balls? Then click here! We've 100 coming soon

Comments

  • 3DMA3DMA Member, PRO Posts: 162

    you can do it just as you said it yourself. In you "achievements Actor" you just use an numeric expression rule with tableCellValue. Braydon has quiet some good YouTube Videos about how to best use Tables and what can be done.

    Maybe this helps.

  • jigglybeanjigglybean Member Posts: 1,584

    Ive had a look through his videos but cant see one suitable. I've tried using the numeric value but its not working, so I am clearly doing something wrong lol

    Like Balls? Then click here! We've 100 coming soon

  • quantumsheepquantumsheep Member Posts: 8,188

    In your example.

    Have a rule that says 'If numeric value = table cell 0' and points = 50

    Change table value to 1

    save table.

    This will only change the value to '1' if it's originally 0. If it's already 1 it won't do anything.

    Does that help?

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • jigglybeanjigglybean Member Posts: 1,584

    Thanks for the replies. The numeric option worked a treat. It didnt work, because I had the row and the column numbers the wrong way around face palm

    Like Balls? Then click here! We've 100 coming soon

Sign In or Register to comment.