What about random counter

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I actually signed up for this exact question. I’m trying to make a board with randomized minigames per space and I wanted it to shuffle between 1 and 18 each space, but exclude numbers that have already been selected. That way every game is new until all spaces have been used up.

  • There are many ways of doing it, but I made an example that shows a great method, and a problematic method so you can learn what to do and what to avoid...

    Please login to see this attachment.

    Also, you can hide that list, make sure to disable the scrollbar if you don't need to scroll in it (it can slow things down with big lists)

    Edited once, last by NaitorStudios (March 14, 2020 at 6:51 PM).

  • There are many ways of doing it, but I made an example that shows a great method, and a problematic method so you can learn what to do and what to avoid...
    Also, you can hide that list, make sure to disable the scrollbar if you don't need to scroll in it (it can slow things down with big lists)

    Thank you very much for your help. I have modified it a little bit for myself and now everything works excellent. I agree that the first variant is better)

  • On the same subject, how would one best adapt a method like this for multiple randomizers? For example ~50 NPC's with randomized actions that shouldn't repeat. Multiple list objects?

    I think a parsed alterable string might do it... But not sure how optimal it would be. Thoughts anyone?

    Please login to see this link. Please login to see this link.
    Freelance Dev | Currently Working on Jarvis | Please login to see this link.

  • There are many ways of doing it, but I made an example that shows a great method, and a problematic method so you can learn what to do and what to avoid...

    Please login to see this attachment.

    Also, you can hide that list, make sure to disable the scrollbar if you don't need to scroll in it (it can slow things down with big lists)


    This is great. Simple and effective; but would there be a way to do this that would also save that list across frames?

  • Responding your answers... Yes, there's always a way :V
    But it can get a bit clumsy, it becomes a bit harder to do it without using some extension...
    Adding many lists doesn't seen elegant...
    But you could probably convert it to work with many lists by using alterable string as the name of the random number list or something.

    Here's an updated version, with "global lists" using global variable/string, and a behavior one, using the object alterable value/string:
    Please login to see this attachment.

  • hello, but to set a number between 1 and 10 for example how do you do it? I know it should be easy, I tried with the condition "Random two numbers" + "Only one for event ..", but strangely it creates more objects for me. I know I could set it by setting two conditions: less than + greater than. but I would like to know the cleanest way, the simplest one

  • it was just that I wanted to create a single condition that included numbers, from one specific value to another, for example: 1 to 10, 11 to 20 etc. , well I will use major and minor for now, thanks anyway

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!