Results 1 to 4 of 4

Thread: Problem with missing faction-leader traits

  1. #1
    Ming the Merciless is my idol Senior Member Watchman's Avatar
    Join Date
    Aug 2004
    Location
    Helsinki, Finland
    Posts
    7,967

    Default Problem with missing faction-leader traits

    The situation is that Pontos lacks a trait for the faction leader, although it has the usual trait ("Koiranides") for the faction heir with the usual effects, which has the odd side effect that the heir gets more Influence, personal security and therefore bodyguards than the king all other things being equal. Saba in turn lacks both. I tried to make suitable placeholder traits to fix the issues because that was sor tof annoying.

    The one for Pontos worked well enough - I basically just copy-pasted the "Basileus" trait triggers and altered the faction IDs as necessary. The trait and triggers look like this if someone wants to use them:
    Spoiler Alert, click show to read: 
    Code:
    Trait Basileus
        Characters family
        AntiTraits Koiranides
    
        Level Basileus
            Description Basileus_desc
            EffectsDescription Basileus_effects_desc
            Threshold  1
    
            Effect Influence  2
            Effect Law  2
            Effect Command  1
            Effect TroopMorale  1
            Effect PersonalSecurity  3
    Spoiler Alert, click show to read: 
    Code:
    ;------------------------------------------
    Trigger Pontos_is_Basileus
        WhenToTest CharacterTurnStart
    
        Condition IsFactionLeader
              and Trait Basileus < 1
              and FactionType carthage
    
        Affects Basileus  1  Chance  100
        Affects Factionheir  1  Chance  100
        Affects Exheir  1  Chance  100
        Affects Noble  1  Chance  100
    
    ;------------------------------------------
    Trigger Pontos_Becomes_Basileus
        WhenToTest BecomesFactionLeader
    
        Condition FactionType carthage
    
        Affects Basileus  1  Chance  100
    
    ;------------------------------------------
    These aren't very savegame compatible mind you - when I reloaded my ongoing Pontos campaign they kinda screwed up all the characters' traits up to and including ethnicities, but seemed to work fine when I briefly tested them in a new campaign.

    The problems came when I tried to adapt the whole factionleader/heir trait thingy and the relevant triggers for Saba. I created a "Malek" trait for the leader by copy-pasting and slightly altering the standard leader traits - the result looks like this:
    Spoiler Alert, click show to read: 
    Code:
    ;Trait: Malek
    ; o Malek: <Influence>  2, <Law> 2, <Command> 1, <TroopMorale> 1 , <PersonalSecurity>  3
    
    Trait Malek
        Characters family
        AntiTraits Prince
    
        Level Malek
            Description Malek_desc
            EffectsDescription Malek_effects_desc
            Threshold  1
    
            Effect Influence  2
            Effect Law  2
            Effect Command  1
            Effect TroopMorale  1
            Effect PersonalSecurity  3
    ,
    ...which should be correct enough (I used the existing generic "Prince" trait for the heir). I also created the appropriate trait description in export_VnVs.txt by the same method. The triggers I adapted from the existing ones for other factions, and they look as follows:
    Spoiler Alert, click show to read: 
    Code:
    ;------------------------------------------
    Trigger Saba_is_Malek
        WhenToTest CharacterTurnStart
    
        Condition IsFactionLeader
              and Trait Malek < 1
              and FactionType saba
    
        Affects Malek  1  Chance  100
        Affects Factionheir  1  Chance  100
        Affects Exheir  1  Chance  100
        Affects Noble  1  Chance  100
    
    ;------------------------------------------
    Trigger Saba_Becomes_Malek
        WhenToTest BecomesFactionLeader
    
        Condition FactionType saba
    
        Affects Malek  1  Chance  100
    
    ;------------------------------------------
    Trigger Saba_reinherited_Prince
        WhenToTest BecomesFactionHeir
    
        Condition Trait ExPrince = 1
              and FactionType saba
    
        Affects Prince  1  Chance  100
    
    ;------------------------------------------
    Trigger Saba_disinherited_Prince
        WhenToTest CeasedFactionHeir
    
        Condition not Trait ExPrince = 1
              and not IsFactionLeader
              and FactionType saba
    
        Affects ExPrince  2  Chance  100
    
    ;------------------------------------------
    Trigger Saba_inherited_Prince
        WhenToTest CeasedFactionHeir
    
        Condition IsFactionLeader
              and FactionType saba
    
        Affects ExPrince  1  Chance  100
    
    ;------------------------------------------
    Trigger Saba_is_heir_Prince
        WhenToTest CharacterTurnStart
    
        Condition IsFactionHeir
              and FactionType saba
              and Trait Prince < 1
    
        Affects Prince  1  Chance  100
    
    ;------------------------------------------
    Trigger Saba_becomesheir_Prince
        WhenToTest BecomesFactionHeir
    
        Condition FactionType saba
    
        Affects Prince  1  Chance  100
    
    ;------------------------------------------
    These should work as the syntax is identical to those used in the existing triggers, save for the factional references.

    They don't, though. Trying to start a new campaign with them in results in an immediate CTD without explanations. Which suggests I've done something wrong, or overlooked something I probably don't even know of. Could someone more clever point out what went wrong, as it is leaving me baffled ?
    Last edited by Watchman; 05-14-2007 at 18:29.
    "Let us remember that there are multiple theories of Intelligent Design. I and many others around the world are of the strong belief that the universe was created by a Flying Spaghetti Monster. --- Proof of the existence of the FSM, if needed, can be found in the recent uptick of global warming, earthquakes, hurricanes, and other natural disasters. Apparently His Pastaness is to be worshipped in full pirate regalia. The decline in worldwide pirate population over the past 200 years directly corresponds with the increase in global temperature. Here is a graph to illustrate the point."

    -Church of the Flying Spaghetti Monster

  2. #2
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Problem with missing faction-leader traits

    Quote Originally Posted by Watchman
    The situation is that Pontos lacks a trait for the faction leader, although it has the usual trait ("Koiranides") for the faction heir with the usual effects, which has the odd side effect that the heir gets more Influence, personal security and therefore bodyguards than the king all other things being equal.
    This was remedied about 2 months ago in our internal build. You'll see it's correct in the next release.

    Quote Originally Posted by Watchman
    Saba in turn lacks both. I tried to make suitable placeholder traits to fix the issues because that was sort of annoying.
    I don't see the problem. You know that your Basileus_desc and Basileus_effects_desc labels are working OK, so try using

    Code:
            Description Basileus_desc
            EffectsDescription Basileus_effects_desc
    in place of

    Code:
            Description Malek_desc
            EffectsDescription Malek_effects_desc
    just to make sure that there isn't something wrong with the Malek labels you put into export_VnVs.txt. I'm afraid that's all I can recommend right now. Perhaps BozosLiveHere will happen by and see something I'm missing.
    Last edited by Atilius; 05-15-2007 at 02:22.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  3. #3
    EB Traitor Member BozosLiveHere's Avatar
    Join Date
    Jan 2006
    Location
    Uqbar, Tl÷n
    Posts
    3,662

    Default Re: Problem with missing faction-leader traits

    I can't find anything wrong with the triggers either. Maybe it's something in export_VnVs.

    Oh, and I have to thank you twice: once for making me realize I should have added Koiranides as an AntiTrait for Basileus and another for reminding me I should be pestering people about leader and heir traits for Saba.
    Last edited by BozosLiveHere; 05-15-2007 at 03:21.

  4. #4
    Ming the Merciless is my idol Senior Member Watchman's Avatar
    Join Date
    Aug 2004
    Location
    Helsinki, Finland
    Posts
    7,967

    Default Re: Problem with missing faction-leader traits

    You're welcome. Hmm. I'll try making the Saba use one of the the proven-to-work leader-traits then. No need to be too demanding with placeholders, natch.
    "Let us remember that there are multiple theories of Intelligent Design. I and many others around the world are of the strong belief that the universe was created by a Flying Spaghetti Monster. --- Proof of the existence of the FSM, if needed, can be found in the recent uptick of global warming, earthquakes, hurricanes, and other natural disasters. Apparently His Pastaness is to be worshipped in full pirate regalia. The decline in worldwide pirate population over the past 200 years directly corresponds with the increase in global temperature. Here is a graph to illustrate the point."

    -Church of the Flying Spaghetti Monster

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