PDA

View Full Version : Trait question concerning Egypt



Thurnor
09-28-2005, 20:17
I was wondering if it was possible to create traits?

If so, i was also wonderingif you can set a trigger or event that gives a trait.
What i Had in mind was the charachter that captures the egyptian capital gains a new trait... a Pharoah (sp?) trait. The trait would boost command, influence, management, resistance to assasination. Is it possible?

Could i make this hereditary?

Any help would be appreciated, thanks in advance.

lysarin
09-28-2005, 20:56
It is possible to create traits and triggers. I'm not 100% sure of how to activate a trait-trigger in a certain settlement though (I've thought about it, but never tried it).

There are people who can describe how to create traits and triggers better then me, so I won't even try it as my descriptions would only confuse you. ~;)
I can say this though: It's possible, and quite easy. And remember to backup your files before changing anything.

fenir
09-29-2005, 08:47
Hello Thurnor,

I don't see why you can't have a trait on a specific happening, or event.

Simply put, design your pharoah trait, and insert it into the "export_descr_character_traits". Then the Description into "export_descr_VnVs_enums".
Put the effect cause in “export_VnVs”.

Because ultimately, all you are saying is lets give another trait for this. At worst you may have to design the trait so it happens when a certian building is built?

A thought on this, you may want to also design the anti-trait, off Pharaoh kicked out, -4 influence. et cetera...

You can certianly make this trait if it works, hereditary.
EG:
;------------------------------------------
Trigger dads_Pharaoh
WhenToTest CharacterComesOfAge

Condition FatherTrait Pharaoh >= 1
and romans_julii

Affects Pharaoh 1 Chance 100

;------------------------------------------

Maybe have it so the father has pharoah, and son has little pharoah prince thingie person.

;------------------------------------------
Trigger dads_Pharaoh
WhenToTest FatherDies

Condition FatherTrait Pharaoh >= 2
and romans_julii

Affects Pharaoh 2 Chance 100

;------------------------------------------

Play around and see what you can do. ~D

Let me know how you go.

fenir

Malrubius
09-29-2005, 09:54
Something like this is what you're looking for (change SettlementName Memphis to whatever the capital is):

export_descr_character_traits.txt:


;put this in the Traits section, just before the triggers section
;------------------------------------------
Trait Pharoah
Characters family

Level Pharoah
Description Pharoah_desc
EffectsDescription Pharoah_effects_desc
Threshold 1

Effect Influence 1
Effect Command 1
Effect Management 1
Effect PersonalSecurity 1

;put the following at the very bottom of the file, in the triggers section
;------------------------------------------
Trigger I_am_Pharaoh
WhenToTest GeneralCaptureSettlement

Condition SettlementName Memphis

Affects Pharaoh 1 Chance 100



;-------------------------------------------------------------------

export_descr_VnV_enums.txt:


Pharoah
Pharoah_desc
Pharoah_effects_desc



text\export_VnVs.txt:


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

{Pharoah} Pharoah

{Pharoah_desc}
This man is a pharoah, worshipped as a god.

{Pharoah_effects_desc}
+1 to Influence, +1 Management, +1 Command, +1 to personal security (decreases the likelihood of falling victim to assassination).



This thread tells you how to make your own traits and triggers:
https://forums.totalwar.org/vb/showthread.php?t=38481

Thurnor
09-29-2005, 19:06
Thanks for the replies, im experimenting right now, ill tell you if im successful or not.

About losing the trait, would i be able to make it so that the trait was removed when the city was lost, as well as the hereditary status?

And can i make it so that the son (supposing he does have a son) only gets the trait when his father dies?

And what about making it so that only if you capture it off the egyptians you get the trait. (The reason being so you couldnt capture the city, turn it rebel, capture it again with another guy and have a family of pharoahs)

Lastly, i would like to limit this benefit to Greeks, Macedon, and Selucia - possible?

Sorry i know its a lot of questions, but help would be appreciated, Thanks again!

Malrubius
09-30-2005, 18:39
I'll list the conditions you'd use in the triggers


Thanks for the replies, im experimenting right now, ill tell you if im successful or not.

About losing the trait, would i be able to make it so that the trait was removed when the city was lost, as well as the hereditary status?




Trigger Greek_no_longer_pharoah
WhenToTest CharacterTurnEnd

Condition FactionType greek_cities
and Trait Pharoah = 1
and not I_SettlementOwner Memphis = greek_cities

Affects notPharoah 1 Chance 100


(macedon and seleucid would both need their own triggers)



And can i make it so that the son (supposing he does have a son) only gets the trait when his father dies?

I'm not aware of a FatherDies event. If so, it would be nice for this.



And what about making it so that only if you capture it off the egyptians you get the trait. (The reason being so you couldnt capture the city, turn it rebel, capture it again with another guy and have a family of pharoahs)

You'd need to keep track of whether the general had just fought a battle versus the Egyptians:



Condition GeneralFoughtFaction egypt


and store that in a hidden trait, JustFoughtEgypt, and reset that trait at the end of every turn. If the general captured Memphis that turn, and JustFoughtEgypt = 1, then he must have got it from the egyptians.





Lastly, i would like to limit this benefit to Greeks, Macedon, and Selucia - possible?

each trigger would need a Greek, Macedonian, and Seleucid version, is all.

Thurnor
09-30-2005, 21:53
Thanks for the reply, thats perfect, just what i wanted thanks again!!!!!~:cheers:

Edit: Ive looked around, but i couldnt find anything on the subject, so ill just ask and see if anyone knows.

Now and then when im doing well in a campaign one of my super generals will become The Great, or have another name change.

I was wondering if i could mod the game so that when my general captures egypt his name will change,with a Pharoah in front of it, E.g Pharoah Alexander?

Again i woud only like to this to happen for the Hellenic cultures.
Thanks for any help.

Malrubius
10-01-2005, 05:06
Check out the epithets in the files. You just need to add similar lines to your trait description, the enums file, and add the epithet to the export_VnVs.txt file.