Re: Traits and Ancillaries
Okay, I managed to anwser one of my own questions.
Quote:
Question Two: What (if possible) is the code to check for the existence of an ancillary type ?
The code for this:
Code:
Condition HasAncType Title
And now the rest of the questions.
Re: Traits and Ancillaries
I'm working on a similar thing right now. I'll answer some of your questions
1) Didn't test yet
3) You can probably only test
4) No easy way to do this I think
5) Don't think so
6) Or is done with or, but you can't use parentheses unfortunately
7) Yes, use some event and use the HasAncType condition
Re: Traits and Ancillaries
Does anyone know if there is anyway to get an epithet to precede a character's name, rather than follow it?
I've also put a simple script in for awarding a trait to the faction heir.
However, I can't seem to get it to remove it when he becomes the leader, so as soon as he does he keeps the title and it is automatically given to the new heir as well.
How can I avoid this? Am I going about this the wrong way?
Here is the entry from my EDCT:
;------------------------------------------
Trigger PrinceofWales
WhenToTest CharacterTurnEnd
Condition CharFactionType england
and IsFactionHeir
Affects PrinceofWales 1 Chance 100
;------------------------------------------
Trigger PrinceofWales
WhenToTest CharacterTurnEnd
Condition IsFactionLeader
and CharFactionType england
Affects PrinceofWales 0 Chance 100
;------------------------------------------
I was under the impression that 1 added the trait and 0 removed it. I've also tried this using -1 instead of 0, but with no luck.
I'm also trying to award a unique trait- is it possible to do this so that other characters meeting the conditions do not receive it as well? I noticed the Condition HasAncType Title kind of thing in the docudemon conditions file but nothing similar for traits. Can this be done?
Any help appreciated.
Re: Traits and Ancillaries
Quote:
Originally Posted by d1ng0d0g
Question One: Is it possible to create new Types of Ancillaries as I did with the type Title ?
Question Two: What (if possible) is the code to check for the existence of an ancillary type ?
Question Three: What (if possible) is the code to check for the existence of an ancillary ?
Question Four: If Question two is possible, can I count the number of ancillaries of that type and how ?
Question Five: If Question Three is possible, can I count the number of ancillaries that are following a condition and how?
Question Six: OR Statements are done by "and not" ?
Question Seven: Is it even possible to trigger traits from the existence of ancillaries ??
Okay, I think I have asked enough questions now, but I'm merely bustling with ideas at the moment.
Dingo
:help:
1) Have to experiment with it but I think yes.
2) 3) 4) 5) I_WorldwideAncillaryExists and FactionwideAncillaryExists should do the trick... to count them you should use a counter and assign them through scripting
6) "and not" is, unsurprisingly, and not... not an "or"... you have to write different scripts with the other conditions you wanna test.
7) hmmm just if it's your father testing with condition FatherAnc... HasAncType just test the type of the ancillary