Celtic Heroes

The Official Forum for Celtic Heroes, the 3D MMORPG for iOS and Android Devices

Re: How does the randomness work in this game?

#31
As for the OP question, most likely it is a load of rng in if and else statements with different values for the chance of being picked. Could be in categories as someone mentioned earlier (void etc for weapons, class types etc) and probably the easiest way. The random number generator will pick a category (weapon, ring, band or whatever) then the tier (godly etc) then the item - with each part of the cycle having a value (smaller difference is rarer). So say in the godly section, a bandage wounds will have a value between 1-15 for the RNG to choose from but a natures touch (if it exists idk) will be 16-20 to be chosen from (assuming the main is set to 1 to 20 if they were the only 2 drops in that category). Repeat x times for how many the boss drops. Idk if a kill can drop the same item twice on necro etc, never saw anyway.

For an idea of it if your not familiar to coding look at the top rated answer here for an idea how it works. He does give a clue why different servers may get the same drop if the same boss is killed at the same time or close together across servers...

http://stackoverflow.com/questions/1353 ... rator-work

This is just a guess still lol and im sure the game isn't coded in c# but its the same concept for c++ really just c# is a little clearer (imo) to read

Hope otm gives an answer because i'm curious now also!

Who is online

Users browsing this forum: No registered users and 40 guests