Dave1984
12-07-2006, 17:17
I'm not sure if you can create epithets from Ancillaries, and I'm having some trouble linking a unique ancillary to the relevent trait without the game crashing on me.
Here is my test ancillary entry and trigger
;------------------------------------------
Ancillary earl_of_warwick
Type Title
Transferable 0
Image item_documents.tga
ExcludeCultures mesoamerican
Description earl_of_warwick_desc
EffectsDescription earl_of_warwick_effects_desc
Effect EarlofWarwick 1
;------------------------------------------
;------------------------------------------
Trigger earl_of_warwick_vnv_trigger
WhenToTest CharacterTurnEnd
Condition CharFactionType england
and not IsFactionHeir
and I_SettlementOwner Warwick = england
and not FactionwideAncillaryExists
and not FatherTrait KingofEngland >= 1
AcquireAncillary earl_of_warwick chance 100
;------------------------------------------
The Earl of Warwick trait is entered like this and does work as a stand alone trait with separate triggers
;------------------------------------------
Trait EarlofWarwick
Characters family
Level Earl_of_Warwick
Description Earl_of_Warwick_desc
EffectsDescription Earl_of_Warwick_effects_desc
GainMessage Earl_of_Warwick_gain_desc
Epithet Earl_of_Warwick_epithet_desc
Threshold 1
Effect Command 1
;------------------------------------------
and the trigger is
;------------------------------------------
Trigger EarlofWarwick
WhenToTest CharacterTurnEnd
Condition CharFactionType england
and IsGeneral
and I_SettlementOwner Warwick = england
and not FatherTrait FactionLeader >= 1
and not IsFactionHeir
Affects EarlofWarwick 1 Chance 100
;------------------------------------------
Now the game does not run with all these as they are- the logfile shows this error
15:08:23.953 [system.rpt] [always] CPU: SSE2
15:08:23.953 [system.rpt] [always] ==== system log start, build date: Oct 5 2006 version bld-medieval2-final-52 (29455) ===
15:08:23.953 [system.io] [always] mounted pack packs/data_0.pack
15:08:23.953 [system.io] [always] mounted pack packs/data_1.pack
15:08:23.968 [system.io] [always] mounted pack packs/data_2.pack
15:08:23.968 [system.io] [always] mounted pack packs/data_3.pack
15:08:23.968 [system.io] [always] mounted pack packs/data_4.pack
15:08:23.968 [system.io] [always] mounted pack packs/localized.pack
15:08:28.265 [script.err] [error] Script Error in mymod/data/export_descr_ancillaries.txt, at line 15, column 12
Unknown attribute type(EarlofWarwick).
changing the entry in the line with the error from EarlofWarwick to Command allows the game to run but it then seems that the ancillary and trait are issues independently of each other.
How can I get this all to correctly link up?
Any help would be much appreciated.
EDIT: I should add that I added Warwick as a province, so it's not that before anyone says anything!
Here is my test ancillary entry and trigger
;------------------------------------------
Ancillary earl_of_warwick
Type Title
Transferable 0
Image item_documents.tga
ExcludeCultures mesoamerican
Description earl_of_warwick_desc
EffectsDescription earl_of_warwick_effects_desc
Effect EarlofWarwick 1
;------------------------------------------
;------------------------------------------
Trigger earl_of_warwick_vnv_trigger
WhenToTest CharacterTurnEnd
Condition CharFactionType england
and not IsFactionHeir
and I_SettlementOwner Warwick = england
and not FactionwideAncillaryExists
and not FatherTrait KingofEngland >= 1
AcquireAncillary earl_of_warwick chance 100
;------------------------------------------
The Earl of Warwick trait is entered like this and does work as a stand alone trait with separate triggers
;------------------------------------------
Trait EarlofWarwick
Characters family
Level Earl_of_Warwick
Description Earl_of_Warwick_desc
EffectsDescription Earl_of_Warwick_effects_desc
GainMessage Earl_of_Warwick_gain_desc
Epithet Earl_of_Warwick_epithet_desc
Threshold 1
Effect Command 1
;------------------------------------------
and the trigger is
;------------------------------------------
Trigger EarlofWarwick
WhenToTest CharacterTurnEnd
Condition CharFactionType england
and IsGeneral
and I_SettlementOwner Warwick = england
and not FatherTrait FactionLeader >= 1
and not IsFactionHeir
Affects EarlofWarwick 1 Chance 100
;------------------------------------------
Now the game does not run with all these as they are- the logfile shows this error
15:08:23.953 [system.rpt] [always] CPU: SSE2
15:08:23.953 [system.rpt] [always] ==== system log start, build date: Oct 5 2006 version bld-medieval2-final-52 (29455) ===
15:08:23.953 [system.io] [always] mounted pack packs/data_0.pack
15:08:23.953 [system.io] [always] mounted pack packs/data_1.pack
15:08:23.968 [system.io] [always] mounted pack packs/data_2.pack
15:08:23.968 [system.io] [always] mounted pack packs/data_3.pack
15:08:23.968 [system.io] [always] mounted pack packs/data_4.pack
15:08:23.968 [system.io] [always] mounted pack packs/localized.pack
15:08:28.265 [script.err] [error] Script Error in mymod/data/export_descr_ancillaries.txt, at line 15, column 12
Unknown attribute type(EarlofWarwick).
changing the entry in the line with the error from EarlofWarwick to Command allows the game to run but it then seems that the ancillary and trait are issues independently of each other.
How can I get this all to correctly link up?
Any help would be much appreciated.
EDIT: I should add that I added Warwick as a province, so it's not that before anyone says anything!