I read Tutorial about it. I was looking for an easier ranomization for my map. I didnt understand the exact triggers needed. Could somebody post an example of the system in use?
Switch 1 as the example.
Start the game with this trigger:
1.[Always//randomize switch 1]
A switch 1 has two set properties 0 and 1, thus we have two scenarios whence it can occur.
2.[switch 1 is cleared, condition is met// action occurs, clear conditions, randomize switch 1, preserve]
3.[switch 1 is set, condition is met// action occurs, clear conditions, randomize switch 1, preserve]
As we can see from this system there are three total triggers required.
We can have multiple uses for something like this. For instance, we could have it so we get a random bonus of money each round in a defense map. Simply put, every time a level is completed a bonus is incurred: fufilling the conditions. Then after the conditions are met, we have two scenarios that are present, lets say switch 1 is cleared, we give the player no bonus, and for switch 1 is set we give the player a 10 mineral bonus.
Two scenarios happen with the scenario changing each time because of the randomize switch in each trigger.
Thus we get two randomly placed actions for this one switch.
We cannot fulfill the randomness of the switch without having an extra condition fulfilled.
The switch merely acts as a branch and branches off two effects from the condition and then resets the branch and possiblly flips the path every time the trigger is executed.
This uses one switch for each random setting. It just checks what the bit is on, then if the switch is set, it adds the proper amount. I'm not exactly sure if this is what you were looking for, but, I made anyways, so whatever.
I think this is was Hiemdal was trying to explain in the tutorial.
Red&Blue you just told me a load I already knew i know how to randomize go to the tutorial on randomization and look at Hiemdal's 1 switch randomization part. Fwop_ got it right ill check the file tomorrow. Oh and im about 95% done with my freeking awsome map. This is the last part I need to code.
ADDITION:
I cant download posts for some reason. I pmed u my email send it there pls.
Right mouse click the file and "save as." All attatchments do this.
Im sorry, I was just making sure you knew it. I just read what you asked for and responded.
QUOTE(trigger)
| Trigger |
| Description: |
| First |
|
Players:
|
¤ Players
|
Conditions:
|
¤ Conditions
|
Actions:
|
¤ Set swivh 1
|
¤ Coment: just a omment it's good for orginization.
|
| Trigger |
| Description: |
| a random |
|
Players:
|
¤ players
|
Conditions:
|
¤ Switch 1 is set
|
¤ A nother action
|
Actions:
|
¤ Actions
|
| Trigger |
| Description: |
| a random |
|
Players:
|
¤ players
|
Conditions:
|
¤ Switch 1 is set
|
¤ A nother action that's not the same as befor
|
Actions:
|
¤ Actions
|
That works because the diferent actions cause only one to go.
uh that was copied from another post. Also thats what Red2Blue said and i told him I already knew that. Also i figured out what i needed to figure out. Now to get rid of this newb spam. CLOSED!! [Solved]