PDA

View Full Version : Tutorial (Kingdoms): Changing a battle model part-way through a campaign



Epistolary Richard
09-02-2007, 15:07
We've had the ability to set the battle models for specific characters ever since Alexander, however what Kingdoms has allowed us to do is give us a scripting command that allows us to change the battle at different in the middle of a campaign.


Changing a battle model part-way through a campaign

The command is (as used in the Teutonic campaign script):



;--------------- HOCHMEISTER BATTLE MODEL -----------------;

;apply the Hochmeister battle_model to the Teutonic Order faction leader whenever a new leader is assigned
monitor_event BecomesFactionLeader FactionType teutonic_order

change_battle_model teutonic_order leader Teutonic_Hochmeister

end_monitor


The parsing appears simply:

change_battle_model (faction) (leader/heir) (model_name as in edu)

I don't know if this can be applied to other characters apart from leader or heir.

Here is a test script I used:



monitor_event FactionTurnStart FactionType teutonic_order
and I_TurnNumber = 1

change_battle_model teutonic_order leader Peasants


terminate_monitor

end_monitor




Turn 1 - attack with leader, he appears as normal
https://img411.imageshack.us/img411/2619/leader1ju4.th.jpg (https://img411.imageshack.us/my.php?image=leader1ju4.jpg)


Turn 2 - attack with leader, he appears as peasant
https://img411.imageshack.us/img411/1160/leader2qs4.th.jpg (https://img411.imageshack.us/my.php?image=leader2qs4.jpg)


This command did not appear to work in the core M2TW campaign.


What use might it be?

What this finally allows us to have is a degree of individuality to our leaders in a campaign. You can now have several different 'leader models' for a faction and script each new heir to be assigned one at random (or based on any other criteria you might wish to script). Each king or prince on the battlefield can look different not only from the other family members but also from each other!

Additionally, if it could be made to work for ordinary generals as well then we would be able to change the battle model used as time progressed - getting rid of the full plate armour in 11th century syndrome that we currently have.