Started by
poolcool2
on
Topic category: Help with MCreator software
My goal was to make it so if a variable was true and a random number was selected it would do something using events
I tried "isVariableTrue[<Variable name>],(int)(Math.random()*2)=2"
and "isVariableTrue[<Variable name>];(int)(Math.random()*2)=2"
and ""isVariableTrue[<Variable name>]" + "(int)(Math.random()*2)=2""
all of them gave errors and I ran out of ideas to try, I looked all over and it seems nobody had the same question and the wiki never mentioned this
I replaced where I had the variable with "<Variable name>" as to not spoil my project
I also have not found a way to get around this problem but it seems impossible without having 2 "if"s
Try to use a stack event instead of using only an event for both conditions
I don't fully understand what you mean
You select stack event event result and add the first condition and then on the stacked event, add another condition and desired event result.
We plan to include logical expressions in condition field in the future.
Ok thanks