[HELP!] Variable not being random (when it should!)

AaronPwner

Member
Reaction score
0
I am learning how to make triggers before I decide to create a game, and one of them I am making is a quest that can change every game (the quest item is different) and I have an array with 5 items to collect, and every game it randomly selects one via a variable named FruitChoice which is set by Math : Random Number btwn 1 & 5, however every single testing it seems to stay on #4 a Blueberry.

Trigger:
  • Set my4FruitChoice = (Random integer number between 1 and 5)
    • Quest - Display to (All Players) the Quest Message: |cffffcc00The King wants you to collect: +my4FruitArray[my4FruitChoice])


Help?

PS: This is only the related code, there is much more, obviously, ask if you need to see anything else. (I don't want to type all that code out!)
 

AaronPwner

Member
Reaction score
0
IGNORE

-- It only does this for consistantly re-testing the map, when you run it seperatly, like on single-player, it works fine!
 

Joccaren

You can change this now in User CP.
Reaction score
54
In editor references, change your settings in 'Use fixed random seed' to false.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top