SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > Dangerous Waters > DW Mod Workshop > DW Mission Designers' Forum
Forget password? Reset here

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-29-06, 09:24 PM   #1
Bellman
Sea Lord
 
Join Date: Feb 2004
Posts: 1,945
Downloads: 220
Uploads: 0
Default Random timed events.

I wish to start an event at a random time but within a window like start plus 20 - 40 minutes.
That event is itself a random selection from say three options egs. Alliance change (N + R), Alliance change (N+B)
or pirate attack.

Given dynamic groups with randomised starting points I can see a very cumbersome way of achieving this
by means of area circle triggers, but I'm sure I'm overlooking a simpler solution. Can anyone help please
where possible quoting example scenario/s ?
__________________

Liberty, Equality, Fraternity
Bellman is offline   Reply With Quote
Old 04-30-06, 04:31 AM   #2
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default

1)

create 3 triggers=>
- trgtime1 starting at 12:20
- trgtime2 starting at 12:30
- trgtime3 starting at 12:40

now create dynamic group and put =>

- trgtime1 in group named "time1" prob 33%
- trgtime2 in group named "time2" prob 33%
- trgtime3 in group named"time3" prob 33%


create a dynamic group named rdmtime
min/max @ 1, prob 100%

include : time1 + time2 + time3

you have now a random choice of time trigger at mission start


2) create an aggregate trigger named timetrg
min : 1
dependant triggers : trgtime1, tgrtime2, trgtime3


3)
create 3 triggers=>
- trgevent1 with N+R if completedtrigger timetrg
- trgevent2 with N+B if completedtrigger timetrg
- trgevent3 with pirate attack if completedtrigger timetrg

now create dynamic group and put =>

- trgevent1 in group named grpevent1 prob 33%
- trgevent2 in group named grpevent2 prob 33%
- trgevent3 in group named grpevent3 prob 33%

create a dynamic group named rdmevent
min/max @ 1, prob 100%

[EDIT]
include in the rdmevent group => trgevent1, trgevent2, trgevent3

sorry I forgot that ...
[/EDIT]

So, now you have 1 out of 3 timers selected, and when it will be triggered, you will have 1 out of 3 event selected

you MUST encapsulate EACH trigger on his own dynamic group (example "time1" for the trgtime1) if you want to choose 1 of many triggers.
In other case, if you just put all triggers in the same group, they will all exist, even if you choose min/max 1 in the dynamic group where you put them together.
So you just have to put each triggers into a specific dynamic group, with a specific group probability, to avoid this problem.

With this example, you don't need area circle, this is only calculation.
OKO is offline   Reply With Quote
Old 04-30-06, 06:30 AM   #3
Bellman
Sea Lord
 
Join Date: Feb 2004
Posts: 1,945
Downloads: 220
Uploads: 0
Default

Thank you very much OKO, I will try to set that up
__________________

Liberty, Equality, Fraternity
Bellman is offline   Reply With Quote
Old 05-01-06, 11:03 PM   #4
MaHuJa
Sonar Guy
 
Join Date: Jan 2002
Location: 59.96156N 11.02255E
Posts: 385
Downloads: 3
Uploads: 0
Default

Alternate solution, for a random time, not just a randomly selected time:

In the upper right corner of the map (when applicable; this will usually hide it beneath the 3d window even with show truth) create a ship of some kind. Or even a sub. Give it a transit tactic, in either of directions 0, 90, 180, 270. Give it an attached goal, destination type, and set it so that the ship enters it along its course. Use the random starting box to have its random placement somewhere along that course.

Set the distances between the beginning/end of randomStartBox and goal depending on the speed of the ship and the times you want.
__________________

Teaching DW newbies how to climb the food chain.
MaHuJa is offline   Reply With Quote
Old 05-02-06, 01:16 AM   #5
Bellman
Sea Lord
 
Join Date: Feb 2004
Posts: 1,945
Downloads: 220
Uploads: 0
Default

Ah that's a very neat solution to the problem MHJ providing true randomness. :|\

Pre OKOs solution I had played with several neutrals each with attached approach triggers and tactics which
allowed time randomness per triggering group.

After a foggy weekend I think I can now see a new horizon.
__________________

Liberty, Equality, Fraternity
Bellman is offline   Reply With Quote
Old 05-02-06, 03:45 AM   #6
Bill Nichols
Master of Defense
 
Join Date: Mar 2000
Posts: 1,502
Downloads: 125
Uploads: 0
Default

Quote:
Originally Posted by MaHuJa
Alternate solution, for a random time, not just a randomly selected time:

In the upper right corner of the map (when applicable; this will usually hide it beneath the 3d window even with show truth) create a ship of some kind. Or even a sub. Give it a transit tactic, in either of directions 0, 90, 180, 270. Give it an attached goal, destination type, and set it so that the ship enters it along its course. Use the random starting box to have its random placement somewhere along that course.

Set the distances between the beginning/end of randomStartBox and goal depending on the speed of the ship and the times you want.
I've done this before (in Sub Command), using whales as the trigger.
__________________
My Dangerous Waters website:
Bill Nichols is offline   Reply With Quote
Old 05-02-06, 04:23 AM   #7
Bellman
Sea Lord
 
Join Date: Feb 2004
Posts: 1,945
Downloads: 220
Uploads: 0
Default

Techniques work well
__________________

Liberty, Equality, Fraternity
Bellman is offline   Reply With Quote
Old 05-04-06, 08:53 AM   #8
OKO
Commander
 
Join Date: Jan 2002
Location: Solar system, mainly on earth
Posts: 476
Downloads: 62
Uploads: 0
Default


Very nice idea for random time !!
good tip, thanks.
And so easy to built !
I'll use it !
As bill said, whales is also the best choice for that : a poor isolated whale won't be as strange as an isolated ship on a scenario.
OKO is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:43 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.