Page 2 of 2

RE: BOB / Sea Lion on a Division/squadron scale

Posted: Wed Jun 05, 2019 6:55 am
by BiteNibbleChomp
Hi Hairog,

Re Morale, In SC2* there is an entry in the victory conditions scripts with this format (below all the trigger, alignment, date, map position stuff) :

; #NATIONAL_MORALE_TRIGGER= Under what national morale situation will this event occur
; Format: country_id [national_morale_percentage] [above_or_below] (above_or_below values range [0, 1]; Above=1; Below=0)

If you wanted to have a victory condition where say UK (Nation ID =1) had <10% morale, you would enter that as:
#NATIONAL_MORALE_TRIGGER= 1 [10] [0]

(where the 1 represents UK, 0 represents "below 10%")

Just by looking through the files in WWI and my experience with the Civil War mod, it appears most NM-based surrenders are tied to a dummy decision event (basically a forced AI "yes" given under a certain condition), and activated by a Surrender 2 event with the "dummy=yes" condition. If you wanted to force a full surrender I could explain this further but it probably isn't necessary in your mod's case - all that would happen is the map would change colour and then the victory screen (and for battle of Britain, it isn't like the UK is being invaded anyway!).

*Note I haven't spent much time with SC3's editor (prefer the old game personally), so something might have changed in the new release. Unfortunately my time spent in SC2's editor won't be much help in that case.

Good luck!

- BNC

RE: BOB / Sea Lion on a Division/squadron scale

Posted: Thu Jun 06, 2019 12:56 pm
by BillRunacre
BNC is right, that is the way to create victory conditions triggered by National Morale falling below a certain point.

RE: BOB / Sea Lion on a Division/squadron scale

Posted: Mon Sep 02, 2019 8:59 pm
by Hairog
I did it by the way. The Beta is on the SC3 War in Europe Mods HERE. Using the moral works quite well. HERE