BOB / Sea Lion on a Division/squadron scale

User avatar
BiteNibbleChomp
Posts: 607
Joined: Mon Sep 12, 2016 1:52 am
Location: Australia

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

Post 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
Ryan O'Shea - Strategic Command Designer
User avatar
BillRunacre
Posts: 6828
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

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

Post by BillRunacre »

BNC is right, that is the way to create victory conditions triggered by National Morale falling below a certain point.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
User avatar
Hairog
Posts: 1587
Joined: Tue Jul 11, 2000 8:00 am
Location: Cornucopia, WI

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

Post 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
WW III 1946 Books
SC3 EAW WW Three 1946 Mod and Naval Mods
WarPlan and WarPlan Pac Alpha and Be
Post Reply

Return to “MODS and Scenarios”