Is there a better way to track scores of collectibles other than a massive Tracker - Functions list?

Hi folks,

As per the subject. I am making a map where the player is collecting coins and want to keep track of how many. The issue I am hoping to avoid is a massive list in the Tracker device (Increment Progress). Just greyboxed the tutorial section and its already nearing 100 coins. Think Sonic and rings. The game could have many hundreds.

Thank you for your time.

You can use verse tags I suppose to avoid having to manually referencing every possible coin in the tracker device.

Use this verse code and compile and place the device on the world, then connect the tracker to it

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Simulation/Tags }

coin_tag:=class(tag){}
coin_to_tracker:=class(creative_device):
    @editable Tracker : tracker_device = tracker_device{}
    OnBegin<override>()<suspends>:void=
        for:
            Device:FindCreativeObjectsWithTag(coin_tag)
            Coin:=collectible_object_device[Device]
        do:
            Coin.CollectedEvent.Subscribe(OnCollected)

    OnCollected(Agent:agent):void=
        Tracker.Increment(Agent)

Then you can place a collectible object and just press the “Add” button and then “Verse Tag Markup”

And inside it select the coin_tag tag

Now all the coins that contain that tag will increment the tracker when collected

You are absolutely amazing @Mineblo. You have saved me untold number of clicks!

Thank you so much that worked. :grinning_face:

Happy to help wherever I can :heart: