bknight2602 Grandmaster Cheater
Reputation: 0
Joined: 08 Oct 2012 Posts: 586
|
Posted: Sat Jul 20, 2019 12:08 pm Post subject: Heroes of Might and Magic V |
|
|
I'm playing this game and its code runs in LUA, but one of the maps/scenarios has a fault in that the code does not have a correct usage of a random generator
| Code: |
RND = random(7) + 1
|
The code also has another random generator further down the code lines. I searched both this thread and the LUA codes.
I found math.random(x) as a code, but changing the game code resulted in an error math not recognized attempt to index a nil value.
What other code lines emulate a randomizer?
|
|