Page 1 of 1

Disease

Posted: Mon Jun 08, 2009 3:52 pm
by Hobbes
Hi folks, just a thought about the way outbreaks of disease are handled by events. We select a random unit or SelMostNumGroup but it would be nice to prevent a group being selected if it is in a very good location - town with depot for example.

I don't think there is a way of doing this at the moment?

Cheers, Chris

Posted: Mon Jun 08, 2009 4:07 pm
by Hobbes
Having given this 5 minutes more thought it seems it would be almost possible to do this.

Using a :-

SelMostNumGroup with a :-
EvalRgnStruc $Venango|FACALL|STRUCDEF $Depot|NOT

would prevent the disease event if a depot existed in the region that was selected by SelMostNumGroup. Snag is that you have to give a region (in this case $Venango) to the EvalRgnStruc command - but with SelMostNumGroup the region selected is random so you can't hard code the region into the event.

Cheers, Chris

Posted: Mon Jun 08, 2009 4:21 pm
by Hobbes
It would also be nice if supply elements were not counted for SelMostNumGroup. I think the command is mainly used for inflicting disease - and supply should help prevent this rather than make it more likely. If SelMostNumGroup is used for other reasons it would still be hard to see why supply should be included in the count.

If this was changed though - it might mean existing scenarios would have to be updated.

Cheers, Chris

Posted: Mon Jun 08, 2009 5:07 pm
by Pocus
To say the truth (should I?) the whole system of handling diseases by event was a work-around while waiting from true code (tm) :) to be done. Now this code is planned for VGN, but I guess you don't want to wait some months before having it :)

Posted: Mon Jun 08, 2009 5:18 pm
by Hobbes
Pocus wrote:To say the truth (should I?) the whole system of handling diseases by event was a work-around while waiting from true code (tm) :) to be done. Now this code is planned for VGN, but I guess you don't want to wait some months before having it :)


That's interesting to hear Philippe. I can certainly wait as it is no big deal for the Pontiac scenario (and if I said I want it all now, Lodi would probably give me a good telling off ;) )

Cheers, Chris

Posted: Mon Jun 08, 2009 5:32 pm
by lodilefty
Hobbes wrote:That's interesting to hear Philippe. I can certainly wait as it is no big deal for the Pontiac scenario (and if I said I want it all now, Lodi would probably give me a good telling off ;) )

Cheers, Chris


Who? Me? :blink:

We ask for the stars in hopes of reaching the moon! :D

:mdr:

Posted: Mon Jun 08, 2009 5:41 pm
by Hobbes
lodilefty wrote:Who? Me? :blink:

We ask for the stars in hopes of reaching the moon! :D

:mdr:


I want the stars! :)

Posted: Mon Jun 08, 2009 9:40 pm
by Rafiki
And the moon is on the way to the stars anyway :)