SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mission Designers' Forum (https://www.subsim.com/radioroom/forumdisplay.php?f=222)
-   -   [TEC] Alternate Ship Routes (https://www.subsim.com/radioroom/showthread.php?t=111893)

CCIP 04-14-07 04:30 PM

[TEC] Alternate Ship Routes
 
I made this explanation specifically for some people, but I thought I'd share it with the general mission editing public since it'd sure be of help to anyone making missions :)


If you want to build different route choices into your units - use the Loop to Waypoint function!

Examples:
Two alternate routes -
http://i4.photobucket.com/albums/y122/Otohiko/loop1.jpg

At waypoint 1, your unit has a 50% chance to go to waypoint 2, or skip to waypoint 5. If it chooses 2 and follows along, it will automatically skip to waypoint 8 once it reaches waypoint 4, because the loop chance is 100%.

That way you have the possibility of two distinct routes for the unit - an western route (1 - 2 - 3 - 4 -8), or an eastern route (1 - 5 - 6 - 7 - 8), with an equal chance of the unit taking either one. You can always make it unequal by changing the probability % on waypoint 1 :)

Three alternate routes -
http://i4.photobucket.com/albums/y122/Otohiko/loop2.jpg

It's the same exact logic, just a little more complex! This way you have three routes northern (1 - 2 - 3 - 9), middle (1 - 4 - 5 - 6 - 9) and southern (1 - 4 - 7 - 8 - 9). Each of them has an equal chance of being taken - 1/3 will go to waypoint 2 and follow the, while at waypoint 4 the remaining 2/3 will split equally between the middle and southern route. As usual, all units reaching WP 3 and WP 6 skip to 9 because of 100% chance.

You can make these route choices as complex as you'd like. Very handy :)

cdrsubron7 04-14-07 06:00 PM

Thanks for the info, CCIP. This is usefull information, and I'm going to incorporate it into some of my future missions, Thanks. :up:






cdrsubron

Safe-Keeper 04-15-07 08:53 AM

It's very useful indeed. It can be used to have a warship patrol a random area, or make a bomber flight either bomb your port at the beginning of your patrol or head back home (simulating a random chance of your harbour being raided). Lots of possibilities.

tater 05-26-07 10:18 PM

This can be far more complicated than the examples above, as well.

Have a few waypoints to get out of port. Then say waypoints 5 through 20 get you to the destination port. Make waypoint 21 all the way back next to waypoint 5. Have 22 through 50 be an alternate route to the same destination. 51 goes back next to 5. 52 through 75 are an alternate route to destination. 76-80 gets you to destination port.

Setwaypoint 4 to loop to 21 a % of the time. Waypoint 5 loops to 51. Waypoints 20, 50, and 75 all have 100% loops to 76.

You now have 3 different routes to waypoint 76, and from there to port.

tater


All times are GMT -5. The time now is 07:48 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.