Results 1 to 6 of 6

Thread: AgentType priest vs heretic

  1. #1
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default AgentType priest vs heretic

    I'm just curious, are heretics considered priests as well by the game?

    Reason is that in our PBM, a priest turned heretic would have the NaturalPriestSkill still. I then made a fix for that:

    Code:
    Trigger hereticinit1_naturalclear
        WhenToTest PriestBecomesHeretic
    
        Condition Trait NaturalPriestSkill > 0
    
        Affects NaturalPriestSkill -3  Chance  100
    But for some reason in my test game, priests turned heretic still seem to be getting the NaturalPriestSkill.

    The trigger for the trait itself only specifies Condition AgentType priest.

    Unless I missed something (which is unlikely because I checked every trigger for NaturalPriestSkill), I guess heretics are considered priests also by the game.

    I think I'll have to amend following code to

    Code:
    Trigger priestinit1
        WhenToTest AgentCreated
    
        Condition AgentType = priest
                and not AgentType = heretic
    
        Affects NaturalPriestSkill  1  Chance  100
    Comments?
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  2. #2
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: AgentType priest vs heretic

    The problem could be that the traits aren't cleaned by game hardcode when the character turns heretic, and that the NaturalPriestSkill is only available to priest characters, so you probably couldn't lower it again.
    Changing the trigger would have no effect on this behaviour if that theory is true.

    A possible workaround would be to make the trait available for all characters and differentiate in triggers, in which case your cleaning trigger should start functioning.

  3. #3
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: AgentType priest vs heretic

    Some priest traits were actually cleaned when a priest turns heretic by default in the character_trait file, but I merely expanded on the number of traits cleaned (as it wouldn't make much sense to have say a bishop heretic or a guildmember heretic) including naturalpriestskill, which somehow seems to be the only trait having a problem thus far (and its the only trait given on creation of any priest agent type)
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  4. #4
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: AgentType priest vs heretic

    After extensive testing, setting NaturalPriestSkill to priest and heretic and giving out the trait to priests but not heretics solved the issue.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  5. #5
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: AgentType priest vs heretic

    Quote Originally Posted by FactionHeir
    After extensive testing, setting NaturalPriestSkill to priest and heretic and giving out the trait to priests but not heretics solved the issue.
    You still have your cleaning trigger in, though, don't you?
    Or does it work out of the box?

  6. #6
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: AgentType priest vs heretic

    I got my cleaning trigger still in, yes.
    CA only cleaned 2 traits from priests turning heretic and they even had the same trigger name, which would cause some issues. I have triggers to clean every trait except BadDenouncer, Dogmatic, OpenMinded and SecretlyFemale.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO