Random - Premium

We added {random} built-in placeholder in premium version.

Configure

  • Open config.yml, find below contents:

placeholder:
  # Premium version only.
  random:
    rotate:
      reset-mode: TIMED
      reset-time: '00:00:00'
      elements:
        - 'A'
        - 'B'
        - 'C'
    daily-shop:
      reset-mode: TIMED
      reset-time: '00:00:00'
      elements:
        - 'rotate' # This means this placeholder will include all rotate placeholder elements.
      not-same-as:
        - daily

Change the value you'd like.

  • reset-mode: Can be set to TIMER, TIMED, ONCE. For TIMER and TIMED, please view Shop page to know more, and for ONCE, this placeholder will refresh each used.

  • reset-time: Please view Shop page to know more.

  • elements: The random element what placeholder will picked.

    • Support use ~ symbol means pick random number, for example, 5~100 means pick one random number from 5 to 100.

    • Support use other placeholder ID to make this placeholder will include all elements it has, like we put rotate into daily-shop placeholder's elements option can be seen as:

placeholder:
  # Premium version only.
  random:
    rotate:
      reset-mode: TIMED
      reset-time: '00:00:00'
      elements:
        - 'A'
        - 'B'
        - 'C'
    daily-shop:
      reset-mode: TIMED
      reset-time: '00:00:00'
      elements:
        - 'A'
        - 'B'
        - 'C'
  • not-same-as: Add other placeholder ID here, after add, we can make sure this placeholder value won't same as the placeholder you put here. Please note that if we can't find any appropriate value, an error prompt will appear.

Use Placeholder

Use {random_<ID>} placeholder to display it's value. For more info, please view Placeholders page. For example of this placeholder usage, please view Daily Shop page.

Last updated