Page 6 of 9 FirstFirst 123456789 LastLast
Results 101 to 120 of 164

Thread: ATVTW - Trait/Ancillary Validator

  1. #101
    irishron's Avatar Cura Palatii
    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: ATVTW - Trait/Ancillary Validator

    Yes, thank you.

  2. #102
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Minor gremlin - HasAncType works perfectly in EDCT.

  3. #103
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: ATVTW - Trait/Ancillary Validator

    How are you testing this?
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  4. #104
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Simple set of triggers:
    Code:
    Trigger Untitled_trigger
     WhenToTest CharacterTurnStart
    
     Condition not HasAncType dearmad_her
           and Trait Untitled = 0
    
     Affects Untitled 1 Chance 100
    
    ;------------------------------------------
    Trigger Titled_trigger
     WhenToTest CharacterTurnStart
    
     Condition HasAncType dearmad_her
           and Trait Titled = 0
    
     Affects Titled 1 Chance 100
    And it switches between the titled untitled traits (antitraits) when i transfer the ancillary.

    Its not like i would say it works without testing it.

  5. #105
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: ATVTW - Trait/Ancillary Validator

    Assuming those are anti-traits, by the switching between them comments, then depending on the threshold level associated with the two traits it will switch between the two anyways. A condition that is not valid will always be evaluated to true by the engine, not false.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  6. #106
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    No Squid, that is incorrect.
    Assuming what you say is correct, i can only get the Titled trait, since "not HasAncType dearmad_her" will be always false.

  7. #107
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: ATVTW - Trait/Ancillary Validator

    Not true, any line with an invalid condition will always be true, with a not or without it.

    So if a line:

    if randomthing will be true

    and

    if not randomthinng will be true

    basically the engine will ignore the line with an invalid condition on it.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  8. #108
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Invalid conditions are reported as errors.
    How have you tested an "invalid condition which was not an error" and assumed it would evaluate to true? That's completely not possible!
    The condition parser is used in both EDCT EDA and a lot of other files (script, advice etc), so there is no way a condition that works inside EDA won't work inside EDCT.


    Now let's talk about the anti-traits system.
    If i have a trait with 1 point in it, and the anti-trait gets 1 point, they will erase themselves - meaning i won't get any text description as both trait = 0 and anti-trait = 0.
    So how in the world would any of the descriptions show up at all?
    And what's more, they perfectly mimic the fact that i transfer the ancillaries - meaning i can stay titled for 3 turns and then when i transfer the anc out i will no longer be titled.

  9. #109
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by gracul View Post
    Invalid conditions are reported as errors.
    How have you tested an "invalid condition which was not an error" and assumed it would evaluate to true? That's completely not possible!
    The condition parser is used in both EDCT EDA and a lot of other files (script, advice etc), so there is no way a condition that works inside EDA won't work inside EDCT.
    Of course there is, try and use the FactionWideAncillaryExists condition in EDCT and the condition will return an error in the log. Move the trigger, without altering it, into EDA and the error will not show up in the log. Further some events work with traits but not ancillaries, such as the adoption events. There are bunch of things that only work correctly in one file but not both.

    Now let's talk about the anti-traits system.
    If i have a trait with 1 point in it, and the anti-trait gets 1 point, they will erase themselves - meaning i won't get any text description as both trait = 0 and anti-trait = 0.
    So how in the world would any of the descriptions show up at all?
    And what's more, they perfectly mimic the fact that i transfer the ancillaries - meaning i can stay titled for 3 turns and then when i transfer the anc out i will no longer be titled.
    You'd need 2 points in the anti-trait to get the anti-traits description and then 2 points in the trait to get the trait description back again. This is provided both have at least one level and the level has a threshold of 1 for both the trait and the antitrait. I'd need to see how you have the actual traits defined in addition to the triggers.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  10. #110
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Although there are some file specific conditions, if you misplace them an error in the log will be shown.
    HasAncType does not throw out such an error, so i don't see a point in assuming that its not working properly.
    You'd need 2 points in the anti-trait to get the anti-traits description and then 2 points in the trait to get the trait description back again. This is provided both have at least one level and the level has a threshold of 1 for both the trait and the antitrait. I'd need to see how you have the actual traits defined in addition to the triggers.
    I am totally aware of that, that's why once again - no text description will ever appear if these are anti-traits and both triggers always fire.
    Code:
    ;------------------------------------------
    Trait Titled
     Characters family
     AntiTraits Untitled
    
     Level Titled
       Description Titled_desc
       EffectsDescription Titled_effects_desc
       Threshold 1
    
    ;------------------------------------------
    Trait Untitled
     Characters family
     AntiTraits Titled
    
     Level Untitled
       Description Untitled_desc
       EffectsDescription Untitled_effects_desc
       Threshold 1
    
    ;------------------------------------------
    Trigger Untitled_trigger
     WhenToTest CharacterTurnStart
    
     Condition not HasAncType dearmad_her
           and Trait Untitled = 0
    
     Affects Untitled 1 Chance 100
    
    ;------------------------------------------
    Trigger Titled_trigger
     WhenToTest CharacterTurnStart
    
     Condition HasAncType dearmad_her
           and Trait Titled = 0
    
     Affects Titled 1 Chance 100

  11. #111
    Live2sculpt's Avatar Senator
    Join Date
    Sep 2009
    Location
    MI, U.S.A.
    Posts
    1,153

    Default Re: ATVTW - Trait/Ancillary Validator

    This tool is awesome. But I am not really up to the mark on making use of its results.

    Squid, do you have a complimentary recommendation for a Traits-Ancillaries tutorial or thread that covers the basics well?

    I'm cleaning up a traits list full of old accumulations and if some of these interesting/useful trait titles your tool reports problems on aren't firing, and could be made to fire, I want to fix them.

  12. #112

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by Live2sculpt View Post
    Squid, do you have a complimentary recommendation for a Traits-Ancillaries tutorial or thread that covers the basics well?
    Ancillaries Tutorial.
    Traits Tutorials One & Two.

  13. #113
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: ATVTW - Trait/Ancillary Validator

    Version 2.2.2

    Changes/Fixes from v2.2.1:

    • Added M2TW condition GiveSettlement
    • Fixed output of conditions with not so the not is before the condition name, it had been displaying the not after the condition

    Go to the first post to get the new version.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  14. #114
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: ATVTW - Trait/Ancillary Validator

    Brilliant tool, thanks Squid.

    One thing: I couldn't get this to work with .NET 4.0. Works fine with 3.5. It could be my machine but if not then the "3.5 or later" is not quite true.

    I don't know much about .NET but surely it's backwards compatible.

  15. #115
    Heeehehe's Avatar Tiro
    Join Date
    Dec 2010
    Location
    City of Lightning, Equator Emerald, 1st Level of Heaven
    Posts
    246

    Default Re: ATVTW - Trait/Ancillary Validator

    can this tool search error in M2TW EDU?
    "And indeed We created man (Adam) out of an extract of clay (water and earth). Thereafter We made him (the offspring of Adam) as a Nutfah (mixed drops of the male and female sexual discharge) (and lodged it) in a safe lodging (womb of the woman). Then We made the Nutfah into a clot (a piece of thick coagulated blood), then We made the clot into a little lump of flesh, then We made out of that little lump of flesh bones, then We clothed the bones with flesh, and then We brought it forth as another creation. So blessed be Allah, the best of creators. After that, surely, you will die. Then (again), surely, you will be resurrected on the Day of Resurrection. And indeed We have created above you seven heavens (one over the other), and We are never unaware of the creation." (QS. Al-Mu'minun (23):12-17)

    "He who has not seen it does not know the power of Islam." -Ibn Khaldun

  16. #116

  17. #117
    Heeehehe's Avatar Tiro
    Join Date
    Dec 2010
    Location
    City of Lightning, Equator Emerald, 1st Level of Heaven
    Posts
    246

    Default Re: ATVTW - Trait/Ancillary Validator

    Owwww... ok, thank for the answer
    "And indeed We created man (Adam) out of an extract of clay (water and earth). Thereafter We made him (the offspring of Adam) as a Nutfah (mixed drops of the male and female sexual discharge) (and lodged it) in a safe lodging (womb of the woman). Then We made the Nutfah into a clot (a piece of thick coagulated blood), then We made the clot into a little lump of flesh, then We made out of that little lump of flesh bones, then We clothed the bones with flesh, and then We brought it forth as another creation. So blessed be Allah, the best of creators. After that, surely, you will die. Then (again), surely, you will be resurrected on the Day of Resurrection. And indeed We have created above you seven heavens (one over the other), and We are never unaware of the creation." (QS. Al-Mu'minun (23):12-17)

    "He who has not seen it does not know the power of Islam." -Ibn Khaldun

  18. #118
    Minas Moth's Avatar Senator
    Join Date
    Feb 2011
    Location
    Croatia
    Posts
    1,338

    Default Re: ATVTW - Trait/Ancillary Validator

    one quick question:

    do the values in conditions like BattleOdds/PercentageOfEnemyKilled need to be in the brackets like this {14.54} or we can use them whitout those brackets?

  19. #119

    Default Re: ATVTW - Trait/Ancillary Validator

    You can use them without curly brackets.

  20. #120
    Minas Moth's Avatar Senator
    Join Date
    Feb 2011
    Location
    Croatia
    Posts
    1,338

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by Ishan View Post
    You can use them without curly brackets.
    thank you wey much kind sir...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •