Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Randomized Selections.
[SOLVED] Randomized Selections.
Jun 20 2011, 7:40 pm
By: Psynergy  

Jun 20 2011, 7:40 pm Psynergy Post #1



I'm trying to set up a system where say I have 1-6 Variables to pick from, So say the player fill the condition of a trigger, I want the game to pick from 1-6 Variables(Not at same time just pick one of the 6 options) as a response to the player fulfilling the trigger conditions.

Anyone know how I can get around to setting this up?

Post has been edited 1 time(s), last time on Jun 22 2011, 5:09 pm by Psynergy.



None.

Jun 20 2011, 8:08 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

http://www.staredit.net/?p=oldwiki&s=66

You will have option 7 and 8 possible during the computation. You might just try it again in the next trigger cycle (-> do not falsify the random output conditions).




Jun 20 2011, 8:18 pm rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

Another way to speed up the process if it doesn't happen instantly is to pre-calculate the result.

Randomize the 3 switches whenever DC "Randomize" is 1.
if the DC you store it is 6 or 7, redo it (don't set any DC)
If the DC is 0-5, set DC "randomize" to 0.
Then, when you call the random number, do the action, then reset the "randomize" for the next time you'll use it.

It should be instantaneous unless you run the trigger constantly.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jun 20 2011, 8:26 pm Psynergy Post #4



Thank you Alhi And Rockz, Very helpful information :).



None.

Jun 20 2011, 9:26 pm JaFF Post #5



You can also generate a random number from 1 to, say, 1024 and then divide the result into 6 segments as equally as you can.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:57 pm]
Oh_Man -- SEN is kinda like, a place wher u can be pretty much gauranteed u talking to a millenial, prob born around the early 1990s, its like a time capsule
[01:05 pm]
NudeRaider -- well he is calling himself weirdo...
[03:25 am]
Symmetry -- the best part is that he perfectly summed up SEN's discord
[03:12 am]
Ultraviolet -- WeirdoX4857
WeirdoX4857 shouted: Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
Joined: Yesterday, 12:08 pm Last Active: Yesterday, 12:14 pm , truly a glorious 6 minutes.
[03:11 am]
Ultraviolet -- :lol:
[2026-9-29. : 2:43 am]
Symmetry -- I'm doing my best, damn it
[2026-9-28. : 4:46 pm]
Ultraviolet -- @:@
@:@ shouted: this community still going strong?
Still going.. strong is debatable though.
[2026-9-28. : 4:13 pm]
WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
[2026-9-28. : 4:11 pm]
WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
[2026-9-28. : 4:10 pm]
WeirdoX4857 -- Where is everybody
Please log in to shout.


Members Online: Wing Zero, Oh_Man