🔀Random Placeholder - Premium
We added {random}
built-in placeholder in premium version.
Config
All random placeholder configs are stored in random_placeholders
folder. The file name is it's ID, for example: rotate.yml
means it's ID is rotate
. An example of it's config is like below:
reset-mode/reset-time: Please view below to know.
element-amount: The amount of the element will picked. (Added in 3.1.0)
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.
Use Placeholder
Reset Placeholder
You can reset placeholder by setting reset-mode
and reset-time
option.
Supports below reset mode:
ONCE: Each time it is used, it will reset and is not applicable to the price, as the price seen by the player opening the store and the actual transaction result are calculated twice, so you cannot achieve price synchronization.
Example: Random Price
Create new random placeholder
In this example, we create a new random placeholder config called price.yml
at random_placeholder
folder.
Set dynamic value in your product configs
Use {random_price}
placeholder at any product's price config. Like I add this placeholder in this product:
Last updated