questions ViewFlags and MoraleState in squad file

Moderators: rbodleyscott, Slitherine Core, Gothic Labs

Post Reply
Ubberdorc
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 31
Joined: Thu Aug 07, 2014 11:03 pm

questions ViewFlags and MoraleState in squad file

Post by Ubberdorc »

First off - I am sorry if these questions have been answered previously - I try to read all the modding posts but there are answers all over the place and in threads unrelated to the original post in the threads and it is hard to remember where I had seen the information before.

In the Squads file do the folling work like they do in FoG II

ViewFlags - 1 can hide in the edge of a wood, 2 - can't hide in the edge of a wood (can hide further in)

MoraleState - morale state of the unit - 0 = steady, 1 = disrupted, 2 = fragmented, 3 = routed, 5 = destroyed

If MoraleState works from the Squads file will the unit Rally or stay at the morale state that is stated in the squads file?

Thank you!
Cronos09
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 326
Joined: Thu Feb 22, 2018 4:28 pm

Re: questions ViewFlags and MoraleState in squad file

Post by Cronos09 »

Ubberdorc wrote: Tue Dec 17, 2019 8:38 pm
ViewFlags - 1 can hide in the edge of a wood, 2 - can't hide in the edge of a wood (can hide further in)
It seems so.
Ubberdorc wrote: Tue Dec 17, 2019 8:38 pm
MoraleState - morale state of the unit - 0 = steady, 1 = disrupted, 2 = fragmented, 3 = routed, 5 = destroyed

If MoraleState works from the Squads file will the unit Rally or stay at the morale state that is stated in the squads file?
'MoraleState' in SQUADS.csv contains the initial values. They change during a battle according to the scripts. There is MoraleTools.BSF. There are references to 'MoraleState' in the other .BSF files.
4 = Surrendered, but this state has not been scripted.
Post Reply

Return to “Modders Corner”