User avatar
Hobbes
Posts: 4438
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Disease

Mon Jun 08, 2009 3:52 pm

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

User avatar
Hobbes
Posts: 4438
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Mon Jun 08, 2009 4:07 pm

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

User avatar
Hobbes
Posts: 4438
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Mon Jun 08, 2009 4:21 pm

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

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Jun 08, 2009 5:07 pm

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 :)
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Hobbes
Posts: 4438
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Mon Jun 08, 2009 5:18 pm

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

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Mon Jun 08, 2009 5:32 pm

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:
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Hobbes
Posts: 4438
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Mon Jun 08, 2009 5:41 pm

lodilefty wrote:Who? Me? :blink:

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

:mdr:


I want the stars! :)

User avatar
Rafiki
Posts: 5811
Joined: Thu Aug 24, 2006 9:19 am
Location: Oslo, Norway

Mon Jun 08, 2009 9:40 pm

And the moon is on the way to the stars anyway :)
[CENTER]Latest patches: AACW :: NCP :: WIA :: ROP :: RUS :: PON :: AJE
Visit AGEWiki - your increasingly comprehensive source for information about AGE games
[SIGPIC][/SIGPIC]
[/CENTER]

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 13 guests