Staredit Network

Staredit Network -> UMS Assistance -> Mass Switch Randomizing...
Report, edit, etc...Posted by Valahan on 2004-05-28 at 18:43:02
Well, as it says, I am an average Map Maker and I do understand the basics of switches and some average/advanced switch knowledge. But I have not seen or heard of a "switch sequence" this complex.

huh.gif confused.gif ermm.gif helpsmilie.gif

What I just can't seem to do...
is make a Mass Randomization Trigger Sequence.

Here are my thoughts:
-The most units the computer can control is 11(10 random critters, 1 observer)
-When the computer controls 10 units at most, but still commands 1 observer, I want the trigger to make a random critter(1 of the 6critters), at a random location (1 of the 22locations).
-When the computer controls 10 units at most, but commands no observer, I want the trigger to make another observer at a random location(1 of the 22locations)

?? Am I correct in assuming that as soon as P8(comp) has 11 units total, it will stop spawning critters?

The farthest I get is:
COND:
P8(comp) command at most 10
P8 command exactly 1 obs
ACTION:
randomize switch 1

COND:
P8 commands at most 10
P8 commands exactly 0 obs
ACTION:
randomize switch 2

COND:
Switch 1 is Set
ACTION:
Create 1 Kakaru at location A

COND:
Switch 1 is Cleared
ACTION:
Create 1 Scantid at location B


... I know that if it IS possible, it will be alot of Switches used up. Good thing is, I have all of them at my disposal.

Any Ideas or Help?

EDIT: I have all but 7 Switches Free
Report, edit, etc...Posted by Mini Moose 2707 on 2004-05-28 at 22:19:12
First off, I'll state there should be no reason you should ever need that many switches.
Next, just randomize two switches.
Switch 1 / Switch 2, set/cleared, 4 combs, four possible critters.
3 Switches, 8 combos, etc. Include redoes if you want less than an amount.
Report, edit, etc...Posted by Valahan on 2004-05-28 at 22:37:53
Oh k. So basically I can't really have it "totally" random. I guess that's fine... that also means I have 16 locations too many.

I just thought of a way to limit it as well.

Thx.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-05-29 at 01:41:17
Im going to show you the basic jist of it. Because i think you can figure out how to make it work for you.

First you need to figure out how many possibities you have. I'll use an example with 6. When you randomize you can only do it in powers of 2.
1 switch = 2 possibities
2 switch = 4 possibities
3 switch = 8 possibities and so on
(# of Possibities) = 2^(# of switches)

So here are the basic triggers.

Condition:
-Something that sets off your condition (duh)
Actions:
-Set Switch (base randomizer)
-Randomize Switch 1
-Randomize Switch 2
-Randomize Switch 3

You need to make sure you include a base switch so you don't have one of the combinations fireing off at the start of the game (when all switches are clear)

So of course next you figure out your 8 possibities.
111 , 110 , 101, 011, 001, 010, 100, 000

Then we need 8 triggers, one for each possibitiy. They will look like this.

Conditions:
-Switch Base Randomizer is Set
-Switch 1 is set
-Switch 2 is set
-Switch 3 is set
Actions:
-Create unit 'random 1' for player at location.
-clear switch base randomizer.

Then you need 5 more triggers, with the differant combinations seen above. Each need to create a differant random unit.

Lastly you can't uniclude the last 2 possibities. So you need to make what i call a ReRandomizer trigger.

Conditions:
-Switch Base Randomizer is Set
-Switch 1 is set
-Switch 2 is clear
-Switch 3 is clear
Actions:
-Randomize Switch 1
-Randomize Switch 2
-Randomize Switch 3
-Preserve Trigger (This trigger needs to be preserved even if you only randomize once)

And of course you fill in all the blank spots with these. Lastly move your rerandomizer triggers above your Possibitiy triggers. (the other 6 combos).
What this does is if 2 of the 8 combos that creates no unit is picked. Then it rerandomizes the switches before the other triggers even run. Increasing effecency.

Well here you go thats your basic randomization trigger set. I Hope you can fill in the blanks and adapt it for your map.
Report, edit, etc...Posted by .Coko[CK] on 2004-05-29 at 11:51:28
Yeah, we seem to have loads of people asking about these switches don't we, why not just create this as a Trick Archive piece and therefore save yourself typing it out always?
Report, edit, etc...Posted by (U)Bolt_Head on 2004-05-29 at 22:25:10
I Intend to. Randomization Triggers will be seperate from Switches. There is currently a switches section but it only links to Yoshi Da Snipers Switch Flash. I want a text description to go with it. Maybe i'll try writeing one.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-05-30 at 16:36:00
You almost killed me with that stuff bolt. Pretty soon you will slay all of staredit.net by explaining complicated trigger dynamics.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-05-30 at 16:59:13
Randomization isn't that complex. Anyone with a decent understanding of switches. And some good math logic should be able to figure that out on there own.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-05-30 at 17:23:26
Yes indeed. But it can scare some people off when you have those long paragraphs. :uber:
Report, edit, etc...Posted by @:@ on 2004-06-01 at 13:25:06
QUOTE((U)Bolt_Head @ May 29 2004, 12:41 AM)

1 switch = 2 possibities
2 switch = 4 possibities
3 switch = 8 possibities and so on
(# of Possibities) = 2^(# of switches)

I am assuming you ment 9 tongue.gif

You can thank me for the correction.
Report, edit, etc...Posted by Yoshi da Sniper on 2004-06-01 at 13:29:46
HA! Bolt did the same mistake which I did on my flash thingie!

Bolts reduced to my level wink.gif
Report, edit, etc...Posted by @:@ on 2004-06-01 at 13:52:39
Honest mistake by honest people smile.gif good job.

It proves that we are all human.
Report, edit, etc...Posted by iamacow on 2004-06-01 at 15:23:43
if you meant 3 switches = 9 possbilities, then Bolt was right.
2^1=2
2^2=4
2^3=8
2^4=16
etc.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-06-01 at 18:50:00
Ha Ha Owned!!. Thank you iamacow, These newbs seem to think i don't know my randomization.

Just kidding, except you dumbname.

QUOTE(dumbname @ Jun 1 2004 @ 12:52 PM )
Honest mistake by honest people smile.gif good job.

It proves that we are all human.


How dare you compare me to such mortal beings.
Report, edit, etc...Posted by Tuxedo Templar on 2004-06-01 at 21:06:02
QUOTE((U)Bolt_Head @ May 29 2004, 12:41 AM)

1 switch = 2 possibities
2 switch = 4 possibities
3 switch = 8 possibities and so on
(# of Possibities) = 2^(# of switches)

(# of Possibities) = 2^(# of switches)

2^3 = 8

2x2x2 = 8

Don't see how there could have been any mistake about that. tongue.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2004-06-01 at 21:33:34
They think it is 3^2
Report, edit, etc...Posted by Mini Moose 2707 on 2004-06-01 at 21:57:59
I was able to use exponents in basic ways by 6th grade. (perhaps even earlier, just what I remember from order of operations) They should be able to use them as well, unless they're age 10 or 11, a sixth grade age.
Report, edit, etc...Posted by xXLordSlippyXx on 2004-06-05 at 02:55:06
Why not just create a whole forum dedicated to switches?
Report, edit, etc...Posted by (U)Bolt_Head on 2004-06-05 at 02:55:53
Is that a serious suggestion?
Report, edit, etc...Posted by xXLordSlippyXx on 2004-06-06 at 01:22:22
No, it's not serious at all. I just go around saying stupid ass suggestions just because I feel like it. (sarcasim)
Report, edit, etc...Posted by Valahan on 2004-06-06 at 04:27:26
QUOTE(xXLordSlippyXx @ Jun 6 2004, 12:22 AM)
No, it's not serious at all. I just go around saying stupid ass suggestions just because I feel like it. (sarcasim)

Ok... then tell us why you went around saying your "stupid suggestion" then?

haha wink.gif But seriously... one forum devoted to one trigger... come on. It's a waste of webspace. However, if people were smart enough, they would do a SEARCH first. Believe me, I did.

My way was just way too complicated. But no other way would be good enough ;P
Report, edit, etc...Posted by xXLordSlippyXx on 2004-06-06 at 22:26:34
Yea, lol, I forgot about that......Just use the Search button......who would of known what a button that says "search" would do. blink.gif
Next Page (1)