Jump to content

Bertlor

Members
  • Posts

    3
  • Joined

  • Last visited

About Bertlor

  • Birthday July 12

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Bertlor's Achievements

Refugee

Refugee (1/15)

1

Reputation

  1. Could be a long shot but regarding the "randomization" seeming to be a pattern of sort in looting the houses / reward system in multiplayer... could it be as simple as the RNG wasn't initialized? I'm not too familiar with the Unity editor/programming, however, I have experience in the past with other languages that when calling for a random number it may appear random until you realize it's a preset pattern each time the application was loaded. For example... launch the application and call the randomized function 5 times which may return; 7, 3, 18, 6, and 1. It appears to be random at first, however, you launch the application a 2nd time and call the same function 5 times again resulting in; 7, 3, 18, 6, and 1. I then found the randomize function needed declared/initialized beforehand to truly be random. Once this happened then calling the randomize function 5 times would return, 8, 3, 16, 7, and 2. The next time the application was launched the same process would then yield; 13, 6, 9, 20, and 3 (for example). I bring this all up because I've kicked myself after realizing it was as simple as adding Randomize() before using Rnd() to get my expected results/behavior; ' Initialize RNG Randomize() ' Generate random value between 1 and 6. Dim value As Integer = CInt(Int((6 * Rnd()) + 1))
×
×
  • Create New...