![]() |
same-player-at-random - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: [1.9/1.9c] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=17) +--- Thread: same-player-at-random (/showthread.php?tid=425) |
same-player-at-random - Hypermodder - 06-08-2008 I just used rammichaels random-for-everybody-exe. Now I wanna ask if you could make the random-function to pick the same chars sometimes: for example: justin deep bandit julian henry bandit mark bandit Is that possible? RE: same-player-at-random - Silverthorn - 06-08-2008 I don't really think that that is possible, from what I know about the exe, the randomizing function picks an id in the range from asdf to zxcv (just random variable that came into my mind). Basically, what Rammichael did was increasing this zxcv-variable, so that the range gets bigger. Am I right, Silva? ![]() Anyways, that what you want is some id-related stuff, and that is waaaaaay more difficult than just setting a new id-range, if not impossible... RE: same-player-at-random - Boop - 06-08-2008 BluePhoenix Wrote:I don't really think that that is possible, from what I know about the exe, the randomizing function picks an id in the range from asdf to zxcv (just random variable that came into my mind). Basically, what Rammichael did was increasing this zxcv-variable, so that the range gets bigger. Am I right, Silva? Exactly... It's just a range thingy, I have no idea why the same ID doesn't appear twice. I think it has something to do with the formula used to generate the random. If you don't have enough characters then duplicates will appear, so it isn't like its impossible... Just the formula is awesome ![]() RE: same-player-at-random - Silverthorn - 06-08-2008 you told me your definition of impossible, and it actually fits quite well, you can't find all the addresses, so it's impossible ![]() I'd really like to see how they did the random thingy, the only formula for random that I can imagine is: Math.random()*zxcv-asdf ![]() |