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.
[10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
Please log in to shout.


Members Online: jun3hong