Request: some randomness
I noticed that there is some user accessable randomness in the game (such as fomax's failure to understand your request: "ITEM random life"), but I don't know if there is an option for a random integer generator.
Being able to put somethign like random minval maxval in place of any integer value would GREATLY help the quality of my mod, and the cleanliness of the code. DOes anything like this currently exist?
Here's how I would use it: There are a number of quests that I want to start out identically, but then act differently depending on your choice of actions. Currently, what I do is simply make 2 or 3 copies of the quest and flag them identically, so only one will load. If I had a random generator, I could simply send users to a random PAGE (1-3 for example) and thus get all three options in under the same quest.
I'm also looking at doing somethings that take variable amounts of time. It would be preferable to be able to set a range of times. "The following will take a few weeks, do you want to proceed?" Then I could have the YSNO with random PAGE numbers for the yes options, the times randomized and I could put about 5 quests in one page and get rid of lots of the predictability of the alternative.
Is there any option other than what I have been doing thus far? If so, how do I use it? If not, how difficult would it be to implement in a future patch?
|