Randomizing
This topic is locked. You can no longer write replies here.
Dec 26 2009, 5:14 am
By: Striker  

Dec 26 2009, 5:14 am Striker Post #1



I need some help with my map, I have 3 switches that are being randomized but it seems that only one thing is being chosen. I don't know if the randomizing trigger isn't enough or what? And I used a hyper trigger of 62 waits; preserve trigger; comment: Hyper Trigger. And there is 8 of them. Not sure if this effected it...



None.

Dec 26 2009, 5:18 am Cinolt Post #2



Post map / triggers and we can help with the problem better, maybe you aren't doing something right



None.

Dec 26 2009, 5:24 am Striker Post #3



right now im testing an ai so if you can help with the randomizing i would be thankful



None.

Dec 26 2009, 5:30 am CecilSunkure Post #4



Well with three switches you are going to have 8 possible outcomes, and this means you have 8 different triggers to make with 8 different switch combinations in the conditions. So, since you didn't post the map, this means any number of things could be going wrong. I don't have the map to see what you did, so I'm assuming you just had some simple error in your map, like copying the same switch twice instead of creating conditions involving all three of the different switches.

Post up your map, or your triggers, if you would like more in-depth or meaningful help.



None.

Dec 26 2009, 5:34 am Striker Post #5



okay sorry about that i thought i posted it

Attachments:
Protoss Comp.scm
Hits: 1 Size: 55.15kb



None.

Dec 26 2009, 5:38 am CecilSunkure Post #6



You forgot to preserve the trigger under "all players" that randomizes the switches :D



None.

Dec 26 2009, 5:40 am Striker Post #7



yes, i noticed but if i have it preserved then it would pick more then one of them, and im trying to have it pick just one. any thoughts?



None.

Dec 26 2009, 5:49 am CecilSunkure Post #8



Quote from Striker
yes, i noticed but if i have it preserved then it would pick more then one of them, and im trying to have it pick just one. any thoughts?
Ah, well you should have specified this in your original post.

You are going to want to make sure that your randomization trigger fires before the rest of the triggers do. In order to do so you can place your randomization trigger at the top of the trigger list, or have your randomization trigger set something to detect in other conditions. So for instance, you could have your randomization trigger "set switch 4". Then, in all your other triggers that detect the randomized combination, you can add in the condition of "switch 4 is set".

You could also add in a condition to the triggers that detect randomized combos of "elapsed scenario time is at least x seconds" to ensure that your randomize trigger fires before the combo detectors do.



None.

Dec 26 2009, 6:08 am Striker Post #9



Thank you :D



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:37 pm]
NudeRaider -- (-.-,)
[03:35 pm]
Zoan -- ;o I thought that was a monkey emote
[03:34 pm]
Zoan -- :mods:
[03:34 pm]
Zoan -- :mods"
[03:20 pm]
NudeRaider -- Vrael
Vrael shouted: moderation? on SEN? in 2026? completely localized in anoeth47's topic? at this time of year?
boy, if you're not careful I'll moderate your sorry ass too!
[03:06 pm]
RIVE -- Yyyes. Don't you see it?
[02:11 pm]
Vrael -- moderation? on SEN? in 2026? completely localized in anoeth47's topic? at this time of year?
[01:39 pm]
NudeRaider -- anoeth47
anoeth47 shouted: Can I get a moderator/lord of the forum to clean up my topics - delete posts not really part of the topic.
send me the links of the posts you want deleted via pm
[01:39 pm]
NudeRaider -- anoeth47
anoeth47 shouted: Can you download from forum if not a member?
log out and find out. ;)
[2026-4-24. : 11:20 pm]
Vrael -- probably not, that sounds like work
Please log in to shout.


Members Online: JamaL