Scripting Commander Units, Command Range, Bonuses

Moderators: rbodleyscott, Slitherine Core, Gothic Labs

Post Reply
jomni
Sengoku Jidai
Sengoku Jidai
Posts: 1394
Joined: Thu Dec 03, 2009 1:20 am

Scripting Commander Units, Command Range, Bonuses

Post by jomni »

Are we able to implement commanders and assign a side's units to sub commanders? I was thinking of them having command range and has action point penalties for troops beyond commander range.

Also, can we implement BA-style bonuses? how flexible use the bonus system?
Last edited by jomni on Mon Nov 10, 2014 6:05 am, edited 1 time in total.
jomni
Sengoku Jidai
Sengoku Jidai
Posts: 1394
Joined: Thu Dec 03, 2009 1:20 am

Re: Scripting Commander Units, Command Range, Bonuses

Post by jomni »

I just realized that the AI should also be programmed to take advantage of these rules else they will run around and lose the bonus from their assigbed organic commander. Probably difficult to implement.

I see there are TEAM scripts. Wonder how these work.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28310
Joined: Sun Dec 04, 2005 6:25 pm

Re: Scripting Commander Units, Command Range, Bonuses

Post by rbodleyscott »

Are we able to implement commanders and assign a side's units to sub commanders?
Not without extensive scripting.
jomni wrote:I just realized that the AI should also be programmed to take advantage of these rules else they will run around and lose the bonus from their assigbed organic commander. Probably difficult to implement.
Yep, that is one of the reasons why commanders are not implemented.
I see there are TEAM scripts. Wonder how these work.
Hard to explain in detail. Your best bet is to look and see how they have been used in the historical scenario scripts. The AI scripting is normally in the StartTurnPost() function in the scenario script.
Richard Bodley Scott

Image
jomni
Sengoku Jidai
Sengoku Jidai
Posts: 1394
Joined: Thu Dec 03, 2009 1:20 am

Re: Scripting Commander Units, Command Range, Bonuses

Post by jomni »

Yeah. This is a longshot and will be put in the back burner / wishlist.
Post Reply

Return to “Modders Corner”