PDA

View Full Version : Random varibles


Vacquero
10-30-2004, 01:24 AM
How does one go about setting random variables for an embark if condition on a route, and make them work. Have two routes set up, and want units to go one way or another. Either they sit at the checkpoint with the routes leaving, or they go on only one route. Could one of you hot shot scenario designers help me out.

Bluewings
10-30-2004, 02:14 AM
First route :

Embark if : AND This Unit is (your Unit) AND 0 <=random X1 <51

Second route :

Embark if : AND this Unit is (your Unit) AND 51 <=random X1 <100

Cheers . :3starSK:

Vacquero
10-30-2004, 02:15 AM
ah danka BW

Bluewings
10-30-2004, 02:17 AM
You 're welcome Vac :wink:

Cheers . :3starSK:

HighTower
10-30-2004, 02:18 AM
First route :

Embark if : AND This Unit is (your Unit) AND 0 <=random X1 <51

Second route :

Embark if : AND this Unit is (your Unit) AND 51 <=random X1 <100

Cheers . :3starSK:

<=random X1 <100,<=random X1 <51



What does this mean. X1 means what and <51 and <100 meaning what?

mapman
10-30-2004, 02:22 AM
Hey Vac!

If you set the check points to none (versuse Hold, Defend, Gaurd), then your units should proceed right away. However, if you have them on one of those three settings, you will want to include in your logic an incremental time command.

For example:

Embark If:

Random Variable NEW > 50

AND

Incremental Time > 2:00 (or whatever you deam to be good).

Hope this helps,

mm

Vacquero
10-30-2004, 02:34 AM
Cool deal thanks yall. Map I'm doin a different Something Wicked This Way Comes.

mapman
10-30-2004, 04:05 PM
Cool deal thanks yall. Map I'm doin a different Something Wicked This Way Comes.

Cool! Let me know if you need a beta tester....I loved your first beta version and I love that map :D

mapman
10-30-2004, 04:13 PM
First route :

Embark if : AND This Unit is (your Unit) AND 0 <=random X1 <51

Second route :

Embark if : AND this Unit is (your Unit) AND 51 <=random X1 <100

Cheers . :3starSK:

<=random X1 <100,<=random X1 <51



What does this mean. X1 means what and <51 and <100 meaning what?

HT - go to http://www.steelbeasts.com/scenariodesign/ click through and check out the chapter on Events, Triggers, Conditions and how to use them.

There are all sorts of things you can do with the above variables when designing a scenario (Mission Editor) including when to call an Arty Strike, reveal (or not) an enemies presence, which (random) of two, three, five etc routes you want a unit to take and much, much more.

Hope this helps. See also A Simple Scenario - From Concept to Completion

fxman249
10-31-2004, 06:30 PM
I made a fast mission just for fun called Mine Sweeper, shows an example of how random variables work. I used the artillery for the variables. Give it a try, then look at it in the mission editor for the arty settings.