PDA

View Full Version : How to create ancillary?



Revenant
03-24-2008, 16:53
Hello!

Because I realised Romani cannot have priests in EB, I tried to create (or re-create) them.

At first I tried to just enable disabled (;) data, but it did not worked and game kept crashing. Then I tried to create test ancillary.

I copied data for one priest ancillary who is in the game and just changed name. Thus I modified this files:

export_descr_character_traits.txt
export_descr_ancillaries.txt
export_descr_ancillary_enums.txt

in EB/data

and

export_ancillaries.txt
export_VnVs.txt

in EB\Data\text

I changed even names in triggers to acquire him. But the game keeps crashing. I started new game, deleted map. rwm to test it.


export_descr_character_traits.txt

;------------------------------------------
Trait AcquirePriest_of_Revenant
Characters family
Hidden
AntiTraits Priest_of_RevenantAcquired

Level Acquire_Priest_of_Revenant
Description Acquire_Priest_of_Revenant_desc
EffectsDescription Acquire_Priest_of_Revenant_effects_desc
Threshold 1

;------------------------------------------
Trait Priest_of_RevenantAcquired
Characters family
Hidden
AntiTraits AcquirePriest_of_Revenant

Level Priest_of_Revenant_Acquired
Description Priest_of_Revenant_Acquired_desc
EffectsDescription Priest_of_Revenant_Acquired_effects_desc
Threshold 1

;------------------------------------------
Trigger acquire_Priest_of_Revenant
WhenToTest CharacterTurnEnd

Condition Trait AcquirePriest > 0
and SettlementBuildingExists >= temple_of_governors_temple
and FactionType seleucid
and Trait Priest_of_RevenantAcquired < 1

Affects AcquirePriest_of_Revenant 1 Chance 100

;------------------------------------------
Trigger Priest_of_Revenant_has_been_acquired
WhenToTest CharacterTurnStart

Condition FactionType seleucid
and Trait AcquirePriest_of_Revenant > 0

Affects Priest_of_RevenantAcquired 2 Chance 100
Affects NumAncillariesAcquired 1 Chance 100
Affects Pious 1 Chance 20
Affects PublicFaith 1 Chance 40
Affects ReligiousMania 1 Chance 10
Affects Bloodthirsty 1 Chance 20


export_descr_ancillaries.txt
;------------------------------------------
;Ancillary: Priest_of_Revenant
; o Priest_of_Revenant : <TroopMorale> 1, <Law> 1

Ancillary Priest_of_Revenant
Image 1091.tga
Description Priest_of_Revenant_desc
EffectsDescription Priest_of_Revenant_effects_desc
Effect TroopMorale 1
Effect Law 1

;------------------------------------------
Trigger trigger_Priest_of_Revenant
WhenToTest CharacterTurnEnd
Condition Trait AcquirePriest_of_Revenant > 0

AcquireAncillary Priest_of_Revenant chance 100

export_descr_ancillary_enums.txt
Priest_of_Revenant
Priest_of_Revenant_desc
Priest_of_Revenant_effects_desc


export_VnVs.txt
¬--------------------

{Acquire_Priest_of_Revenant} Acquire_Priest_of_Revenant

{Acquire_Priest_of_Revenant_desc}
Acquire_Priest_of_Revenant_desc

{Acquire_Priest_of_Revenant_effects_desc}
Acquire_Priest_of_Revenant_effects_desc

¬--------------------

{Priest_of_Revenant_Acquired} Priest_of_Revenant_Acquired

{Priest_of_Revenant_Acquired_desc}
Priest_of_Revenant_Acquired_desc

{Priest_of_Revenant_Acquired_effects_desc}
Priest_of_Revenant_Acquired_effects_desc

¬---------------

export_ancillaries.txt
{Priest_of_Revenant} Hierophantes Revenant

{Priest_of_Revenant_desc}
Priest of Revenant: A Priest spends half a lifetime studying subjects related to his god. He can spend the other half putting it to good use…

{Priest_of_Revenant_effects_desc}
+1 Morale for all troops on the battlefield, +1 to law (positive effect on public order)

Here are the data. Can somebody help me to find any errors that lead to CTD?