Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
this is my random weather trigger. i just feel weird at set dice 1 to 6 but equal 0 but i have no choice right there so can anyone take a look at this and help me a hand
Do you use the "Dice" integer for anything else? If not, you don't need it as an array, having it as normal variable should be enough.
The trigger should be
Untitled Trigger 001
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Set Dice[1] = (Random integer number between 1 and 6)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Dice[1] Equal to 1
Then - Actions
-------- cause weather effect #1 --------
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Dice[1] Equal to 3
Then - Actions
-------- cause weather effect #2 --------
Else - Actions
You may want to delete the "Do nothing"
With your simple trigger, the Waits may be fine
What you did in your trigger was that you selected random Dice array and checked what number it has, however all have 0 (the random number was Index for the Dice array, not the value/number of the integer)
However you have weather effect and after 30 seconds you delete it using the "last created weather effect". It may be better to store the weather effect in variable so if you decide to do with weather something else in future, it won't cause bugs.
"You may want to delete the "Do nothing""
what happen if i delete "do nothing" right there because to my understanding so if the dise is not 1 or 3 so it gonna be "do nothing" and keep my normal weather is that correct?
No, the "Do Nothing" function is just .. simply nothing. It is not needed and simply takes a line of your code.
Right, you don't need to array the "Dice" integer. You don't need to set it to "0" every minute because when you set it, its value is changed.
It doesn't set any weather because you check if the value of Dice is equal to 1 or 3, and you don't set it. Follow Nichilus' trigger and Maker's instructions and you're good to go.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.