Random string from list -> placeholder / customalais feature? #9408
bobhenl
started this conversation in
Enhancement
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, we can already get random number by %cmi_random_1_1000%, but what about some random string? Now it's really annoying, because we need to make it like: if we have 50 strings, then: %cmi_random_1_50% and then check the result of the random, compare it with some number & put there then string, example:
I wanna replicate random trim chooser
so I need to put %cmi_random_1_maxTrims%
and now:
Sooo long list
If we actually have way to make simple array or list, it's so simple in programming languages, so why not implement it here?
It could be placeholder: %cmi_random_string_iron_emerald_diamond% or something like this, or it can be something special in custom alias where can we enter some words
and then when using it, it will give us the string and BOOM we'll save XXXXX lines of customalias and no need to do this tidy checks of %cmi_random_1_1000% because we can directly put there the random string
And now imagine when I want to make random trim pattern & trim material, it's literally like 3 time usage of random number generator instead of just putting it into one string, it can be on single line
so if I want to complicate it a bit more, there can be another function that will accept the generated trim material, and random number again and it can choose the random trim material again by the long assigment of numbers & repetetive lines
Beta Was this translation helpful? Give feedback.
All reactions