Repeating Events

Post discussions and advice on TOAW scenario design here.

Moderators: JAMiAM, ralphtricky

Post Reply
User avatar
shunwick
Posts: 2514
Joined: Sat Oct 14, 2006 10:20 pm

Repeating Events

Post by shunwick »

Is it possible to make repeating events?

Edit: Sorry, I mean is it possible to make continually repeating events?

Best wishes,
I love the smell of TOAW in the morning...
JAMiAM
Posts: 6127
Joined: Sun Feb 08, 2004 6:35 am

RE: Repeating Events

Post by JAMiAM »

You might have better luck asking how to make a specific event do exactly what you're looking to accomplish. Then, some of the resident "Evil-Ed" experts can suggest ways to make it happen.
User avatar
Telumar
Posts: 2210
Joined: Tue Jan 03, 2006 12:43 am

RE: Repeating Events

Post by Telumar »

Yes please post what you want to have and i'll see how i can help, there are ways, mostly with the 'event activated' trigger and the 'activate event' effect.
panzerpelle
Posts: 19
Joined: Thu Oct 25, 2001 8:00 am
Location: Sweden
Contact:

RE: Repeating Events

Post by panzerpelle »

http://www.tdg.nu/indexarticleaar.html

read the vp-loop article and the evil ed doc. Good luck!
User avatar
shunwick
Posts: 2514
Joined: Sat Oct 14, 2006 10:20 pm

RE: Repeating Events

Post by shunwick »

Thanks for your help guys. Essentially, I would like to repeat a news item. From what I've learnt so far, a reapeating loop looks something like this:-


Event 8: Turn: News Only
Turn 1: Turn Range=1: 100% Probability
This is a news string

Event 9: Event Activated: Enable Event : Activated 8
Delay=0: Turn Range=1: 100% Probability
Enable 8

Now this works but it is not exactly what I want. First, I only want the news string displayed every fourth turn. The only alteration needed is in event 9 where you change the Delay setting to Delay=3. This also works ok.

But what I want is this:-

Event 8: Turn: News Only
Turn 1: Turn Range=1: 50% Probability
This is a news string

Event 9: Event Activated: Enable Event: Activated 8
Delay=3: Turn Range=1: 100% Probability
Enable 8

In other words, I only want the chance that the news string will display every fourth turn. This does not work presumeably because if the news string does not get displayed then Event 8 does not activate Event 9 to reenable Event 8.

Ive tried this:-

Event 8: Turn: News Only
Turn 1: Turn Range=1: 100% Probability
This is a news string

Event 9: Event Activated: Enable Event: Activated 8
Delay=3: Turn Range=1: 50% Probability
Enable 8

This doesn't work presumeably because if Event 9 does not enable Event 8 then Event 8 can't activate Event 9.

By the way, I now understand why they call this the Evil Ed.

I've tried this:-

Event 8: Turn: News Only
Turn 1: Turn Range=1: 50% Probability
This is a news string

Event 9: Event Activated: Enable Event: Activated 8:
Delay=3: Turn Range=1: 100% Probability
Enable 8

Event 10: Event Cancelled: Enable Event: Activated 8:
Delay=3: Turn Range=1: 100% Probability
Enable 8

But this doesn't work either and I don't know why. I would be eternally grateful for all the help you can give me.

On a related matter, is there anyway to display a news string to only one side? I suspect not but I might as well ask.

Best wishes,
I love the smell of TOAW in the morning...
User avatar
Curtis Lemay
Posts: 14910
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Repeating Events

Post by Curtis Lemay »

ORIGINAL: shunwick
On a related matter, is there anyway to display a news string to only one side? I suspect not but I might as well ask.

You can use Theater Options. The player would have to look in the Theater Option panel to see the message, of course.

As for your "every fourth turn" thing, I think you could try a sequence of four news events (three of them blank) and four enabling events, each handshaking with the next. I'll have to experiment a bit to see for sure.
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Telumar
Posts: 2210
Joined: Tue Jan 03, 2006 12:43 am

RE: Repeating Events

Post by Telumar »

well, you have 999 free event slots at your disposal, why not to chose the unsmartest but working way?

Ev8 Turn1 NewsOnly
Ev9 Turn4 NewsOnly 50%Prob
Ev10 Turn8 NewsOnly 50%Prob
etc.

But what do you want exactly? Do you want to have a continous news loop that has a 50% chance to break, so it can appear some turns, fail its probability check on a subsequent turn and will then appear no more?
or
Do you simply want a 50% chance every 4 turns for the news to appear, independent from wether the last time the probability check has failed or not?
Event 9: Event Activated: Enable Event: Activated 8:
Delay=3: Turn Range=1: 100% Probability
Enable 8
This can't work - it's an event that activates itself. For a continous loop you would need "cross enabling", i.e.:

#1 Force1 occ x/y
#2 Force2 occ x/y
#3 EvAct1 supply2-
#4 EvAct2 supply2+
#5 EvAct1 enable2
#6 EvAct2 enable1
#7 EvAct3 enable4
#8 EvAct4 enable3
User avatar
shunwick
Posts: 2514
Joined: Sat Oct 14, 2006 10:20 pm

RE: Repeating Events

Post by shunwick »

ORIGINAL: Telumar

well, you have 999 free event slots at your disposal, why not to chose the unsmartest but working way?

Ev8 Turn1 NewsOnly
Ev9 Turn4 NewsOnly 50%Prob
Ev10 Turn8 NewsOnly 50%Prob
etc.

Yes, that's always possible. I was looking to save myself some work. It's a 56 day scenario at 6 hour turns that's 224 moves if my maths is up to scratch so I would have to dedicate 56 events to display the news string. I can do it if I have to but I would rather find a shorter way.
But what do you want exactly? Do you want to have a continous news loop that has a 50% chance to break, so it can appear some turns, fail its probability check on a subsequent turn and will then appear no more?
or
Do you simply want a 50% chance every 4 turns for the news to appear, independent from wether the last time the probability check has failed or not?

Definitely b. Actually, I want a smaller chance say 10% but 50% is easier to test if it works or not.
Event 9: Event Activated: Enable Event: Activated 8:
Delay=3: Turn Range=1: 100% Probability
Enable 8
This can't work - it's an event that activates itself. For a continous loop you would need "cross enabling",

This does work, I've tested it. Event 9 enables Event 8.
i.e.:

#1 Force1 occ x/y
#2 Force2 occ x/y
#3 EvAct1 supply2-
#4 EvAct2 supply2+
#5 EvAct1 enable2
#6 EvAct2 enable1
#7 EvAct3 enable4
#8 EvAct4 enable3

Interesting.

#1 Display news
#2 EvAct1 enable1

Works as long as display news is 100% probability. I will retest it just to make sure but at the moment I am happy that it works ok.

Edit: Yes, I've just tested it again and it works perfectly.

Edit Edit: I've done some more testing.

#1 Display news
#2 EvAct1 enable1 with delay 3

Works ok on its own. However,

#1 Display news
#2 EvAct1 enable1 with delay 3
#3 Force1 occ x/y
#4 Force2 occ x/y
#5 EvAct3 supply2-
#6 EvAct4 supply2+
#7 EvAct3 enable3
#8 EvAct4 enable4
#9 EvAct5 enable5
#10 EvAct6 enable6

Causes the news string to appear one move earlier than it should. Your loop works ok but it screws up mine.

#1 Display news
#2 EvAct1 enable1 with delay 3
#3 Force1 occ x/y
#4 Force2 occ x/y
#5 EvAct3 supply2-
#6 EvAct4 supply2+
#7 EvAct3 enable4
#8 EvAct4 enable3
#9 EvAct5 enable6
#10 EvAct6 enable5

Also causes the news string to appear one move earlier than it should. Your loop is still ok but again it screws up mine.

So the chances are that my loop is at fault and some scheme of "cross enabling" is the safest way to play it.

Best wishes,

I love the smell of TOAW in the morning...
User avatar
Curtis Lemay
Posts: 14910
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Repeating Events

Post by Curtis Lemay »

ORIGINAL: shunwick

Thanks for your help guys. Essentially, I would like to repeat a news item. From what I've learnt so far, a reapeating loop looks something like this:-


Event 8: Turn: News Only
Turn 1: Turn Range=1: 100% Probability
This is a news string

Event 9: Event Activated: Enable Event : Activated 8
Delay=0: Turn Range=1: 100% Probability
Enable 8

Now this works but it is not exactly what I want. First, I only want the news string displayed every fourth turn. The only alteration needed is in event 9 where you change the Delay setting to Delay=3. This also works ok.

But what I want is this:-

Event 8: Turn: News Only
Turn 1: Turn Range=1: 50% Probability
This is a news string

Event 9: Event Activated: Enable Event: Activated 8
Delay=3: Turn Range=1: 100% Probability
Enable 8

In other words, I only want the chance that the news string will display every fourth turn. This does not work presumeably because if the news string does not get displayed then Event 8 does not activate Event 9 to reenable Event 8.

Ive tried this:-

Event 8: Turn: News Only
Turn 1: Turn Range=1: 100% Probability
This is a news string

Event 9: Event Activated: Enable Event: Activated 8
Delay=3: Turn Range=1: 50% Probability
Enable 8

This doesn't work presumeably because if Event 9 does not enable Event 8 then Event 8 can't activate Event 9.

By the way, I now understand why they call this the Evil Ed.

I've tried this:-

Event 8: Turn: News Only
Turn 1: Turn Range=1: 50% Probability
This is a news string

Event 9: Event Activated: Enable Event: Activated 8:
Delay=3: Turn Range=1: 100% Probability
Enable 8

Event 10: Event Cancelled: Enable Event: Activated 8:
Delay=3: Turn Range=1: 100% Probability
Enable 8

But this doesn't work either and I don't know why. I would be eternally grateful for all the help you can give me.

On a related matter, is there anyway to display a news string to only one side? I suspect not but I might as well ask.

Best wishes,

Try this:

Event 8: Turn: News Only
Turn 1: Turn Range=1: 100% Probability
[no news]

Event 9: Event Activated: Enable Event: Activated 8
Delay=3: Turn Range=1: 100% Probability
Enable 8

Event 10: Event Activated: News Only
Delay=0: Turn Range=1: 50% Probability
This is a news string

Event 11: Event Activated: Enable Event: Activated 8
Delay=3: Turn Range=1: 100% Probability
Enable 10

My TOAW web site:

Bob Cross's TOAW Site
User avatar
shunwick
Posts: 2514
Joined: Sat Oct 14, 2006 10:20 pm

RE: Repeating Events

Post by shunwick »

That works! Thanks very much Bob. And thanks for the Theatre Options tip as well. [:)]

Best wishes,
I love the smell of TOAW in the morning...
Post Reply

Return to “Scenario Design”