Page 1 of 1

questions ViewFlags and MoraleState in squad file

Posted: Tue Dec 17, 2019 8:38 pm
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!

Re: questions ViewFlags and MoraleState in squad file

Posted: Wed Dec 18, 2019 7:29 am
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.