I'm using weidu-mac 1.90
First off, whats the difference? Under patch_random_seed, the weidu readme says "see random_seed". That's not terribly helpful, especially since random_seed doesn't mention patch_random_seed.
My first problem is that what I assume to be the syntax (I couldn't find but one example) for RANDOM_SEED doesn't work.
RANDOM_SEED 1
doesn't work, but
PATCH_RANDOM_SEED 1
does. What am I missing?
The readme also says that if RANDOM_SEED was given an invalid int, it would seed itself. But I only get "cannot convert to an INT" when I put anything else in there. (I tried 1.4, hi and "hi", all gave the same error)
My other problem is how to make the psuedo-random generator a little more random. Each time I run the script, I get the same results.
For instance:
SET "hp_boost" = RANDOM(35 45)
WRITE_SHORT 0x24 ("%current%" + "%hp_boost%")
WRITE_SHORT 0x26 ("%max%" + "%hp_boost%")
I ran this four times, and each time Abazigal gained 31 hp's (the script also modifies a number of other stats, and they too were all the same). This applies to at least five or so of the other 4,000 creatures the script modified. (I didn't check all of them, I'm not that insane)
I assume this means that weidu doesn't automatically seed random() when it runs?
Is there a way to generate relatively random numbers each time the script runs?
Thanks