Results 1 to 13 of 13

Thread: Trigger identifier for recruitable generals

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Trigger identifier for recruitable generals

    Hello all,

    I have added the recruitable general i.e. being able to build a generals bodyguard. However when trying to give them traits when spawing, I've been unable to find any useful trigger identifiers. The CharacterComesOfAge, OfferedForMarriage or OfferedForAdoption doesn't seem to apply for them, with reason... I'm not sure what the LesserGeneralOfferdForAdoption does, but the one trigger I made wasn't working. Could that be the Man of the Hour identifier? Anybody any thoughts on what identifiers might work?

    Cheers, Haleth

  2. #2

    Default Re: Trigger identifier for recruitable generals

    Hello,

    try it with some logic:

    For example:
    Trigger newGeneral
    WhenToTest CharacterTurnStart

    Condition Trait IAmGeneral = 0 ; Each general will have this Trait, if not he is freshly recruited

    Affects IAmGeneral 1 Chance 100 ;Now he is a general so next time the trait is not 0
    Affects xyTrait 1 Chance 55
    ...


    cheers

    Aramiteus

  3. #3

    Default Re: Trigger identifier for recruitable generals

    Hey, thanks for your reply. However, I'm afraid I don't really understand. My question is not to find the newly recruited generals, but to find the right 'identifier'. I use this term because I saw it in a tutorial topic. To make sure we are talking about the same thing: I'm interested in the proper red line in the quote.

    Trigger Worthy_Of_Marriage_loyalty_2
    WhenToTest OfferedForMarriage

    Condition Trait Loyal >= 1

    Affects Loyal 1 Chance 50

  4. #4

    Default Re: Trigger identifier for recruitable generals

    Oh sorry,

    There is no such one. (not know to me and never saw it, nor in the docudemons_events.txt) Thats why I offered the solution.

    Hm:
    Identifier: AgentCreated
    Event: An agent has been trained
    Exports: character_record, character_type, settlement, faction
    Class: ET_AGENT_CREATED
    Author: Lee

    Identifier: AgentType
    Trigger requirements: character_record
    Parameters: character type (spy, assassin, diplomat, admiral, general, named character, family)
    Sample use: AgentType = diplomat
    Description: Test to see if a character is of a particular type (spy, admiral, named character &c.)
    Battle or Strat: Strat
    Class: CHARACTER_TYPE_TEST
    Implemented: Yes
    Author: Lee

    Code:
    Trigger Worthy_Of_Marriage_loyalty_2
        WhenToTest AgentCreated
    
        Condition AgentType = general
    
        Affects Loyal  1  Chance  50
    Do not think it will work, but worth trying it.
    If it does not do first time try to replace general with named character.
    Or general is normaly used for captains. So try first with named character.
    family is normaly for family members.
    Last edited by Aramiteus; March 15, 2011 at 02:56 PM.

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

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

    Default Re: Trigger identifier for recruitable generals

    Other way to do it would be as follows, have two traits IsFamily and IsGeneral that have triggers as follows:

    Code:
    Trigger FamilyTrigger
    WhenToTest CharacterComesOfAge
    
    Effect IsFamily 1 Chance 100
    and

    Code:
    Trigger GeneralTrigger
    WhenToTest CharacterTurnEnd
    Condition Trait IsFamily = 0
    
    Effect IsGeneral 1 Chance 100
    Last edited by Squid; March 15, 2011 at 03:35 PM.
    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. #6

    Default Re: Trigger identifier for recruitable generals

    Hmm, interesting idea. I'll work with that and see if it does the trick!

  7. #7

    Default Re: Trigger identifier for recruitable generals

    and what about... governor if recruit in a city ,general if recruited on a castle

  8. #8
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: Trigger identifier for recruitable generals

    Quote Originally Posted by betto View Post
    and what about... governor if recruit in a city ,general if recruited on a castle
    That's an artificial distinction that doesn't exist in the game. A character is either a general or a family member (or a captain if there are no general units in the army), whether a character is a governor of a city/castle has only to do with their stats and not any other factor.
    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

  9. #9

    Default Re: Trigger identifier for recruitable generals

    Quote Originally Posted by Squid View Post
    That's an artificial distinction that doesn't exist in the game. A character is either a general or a family member (or a captain if there are no general units in the army), whether a character is a governor of a city/castle has only to do with their stats and not any other factor.
    i know but... the traits to be a decent field general or to be a decent governor are not the same

    like in bgr for ss...governor inclination/ military inclination

  10. #10

    Default Re: Trigger identifier for recruitable generals

    Silly question: a recruited body guard (general) is a normal unit, why would you be able to attribute traits (or ancillaries) to it? Or is a recruited body guard unit automatically a named_character?
    If you recruit a 'bodyguard' unit the game will automatically link a general (named_character) to that unit just like a 'bodyguard' unit created when a general spawns (such as marrying your princess to an acceptable suitor or an adoption.) Additionally such generals use the min_adoption_age unit max_adoption_age unit as per descr_campaign_db as well as the 'starter' traits as WhenToTest OfferedForAdoption in export_descr_character_traits

  11. #11
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Trigger identifier for recruitable generals

    Silly question: a recruited body guard (general) is a normal unit, why would you be able to attribute traits (or ancillaries) to it? Or is a recruited body guard unit automatically a named_character?










Posting Permissions

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