PDA

View Full Version : How to - Edit the movement points for ships/spies/diplomats/assasins



Myrddraal
01-26-2005, 13:54
Modding Resource Header

Title: How to - Edit the movement points for ships/spies/diplomats/assasins

Posted by: Myrddraal

Modding area: Characters (campaign)
Required programmes: Notepad (or other text editor)
Related links: How to make all armies move further per turn (https://forums.totalwar.org/vb/showthread.php?t=51371)
Summary: This tutorial can make specific types of character move faster than others. If you want to make all armies ships spies etc move faster, then use the guide in the related link as it is easier and more efficient. Warning: Ships with command stars or traits cannot merge with other fleets. Using this method to make fleets faster will stop all fleets from merging.
__________________________________________________

How to - Edit the movement points for ships/spies/diplomats/assasins

The way to do this is to make a trait (vice/virtue) which is given to all admirals or spies or diplomats or assasins, which makes them move faster. It was invented and first used by Maxpublic:
In this example, I will make ships move faster, but it should be obvious how to make it work for the others.

Open export_descr_character_traits.txt in the Data folder

Search for:

;== TRIGGER DATA STARTS HERE

Just above this, after the last trait, add this text.


Trait FasterAdmirals
Characters admiral

Level faster_admiral
Description faster_admiral_desc
EffectsDescription faster_admiral_effects_desc
Threshold 1

Effect MovementPoints 100

This creates the trait.

Now go to the bottom of the file and paste this text:


Trigger admiral_speed_increase
WhenToTest CharacterTurnEnd

Condition AgentType = admiral
and not Trait FasterAdmirals = 1

Affects FasterAdmirals 1 Chance 100

This adds the trait to all admirals at the end of the turn on which they are created. This means in the turn they are built, they will only be able to move a shorter distance.

Now you need to add the name and description of this new trait.
Go to Data/text and open up export_VnVs.txt

Go to the bottom of the file and place this text:


{faster_admiral} Sea Worthy

{faster_admiral_desc}
This ship has now been in service for some time. Long enough for the crew to gain their sea legs and perhaps some experience.

{faster_admiral_effects_desc}
Added speed

The descriptions here are arbitrary, change them to what you want.

To do this for spies or diplomats or assasins, simply change the text admiral to diplomat etc.

Good luck.

dzsagon
12-05-2005, 11:11
Can you tell me where can I find the default movementpoints for any characters?

Epistolary Richard
12-05-2005, 15:04
descr_character.txt

dzsagon
12-05-2005, 16:39
You mean this: starting_action_points 80? So every characters have the same value?

Epistolary Richard
12-05-2005, 16:41
Approximately yes, obviously there's something hardcoded within the game that adjusts army banners depending on their composition (cavalry, infantry or artillery), but the base line is the same for all.