Results 1 to 9 of 9

Thread: code ancillary

Hybrid View

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

    Default code ancillary

    can there be a code be given for a trigger of a ancillary,so only a general can get the ancillary and not a family member,and not a factionheir and not a factionleader?
    try already ; not IsFamilyMember,but the engine don't recognise it.

    thanks for anny help

  2. #2
    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: code ancillary

    Yes use the character's type as a condition. Go into the tutorial->text editing section and grab the docudemons they have a list of all conditions you can use.
    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

  3. #3

    Default Re: code ancillary

    thanks Squid,found the answer in this one;plus rep offcourse

    Spoiler Alert, click show to read: 
    ---------------------------------------------------
    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

  4. #4
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: code ancillary

    A general is actually a captain in game, realize that

  5. #5

    Default Re: code ancillary

    thanks for this one, so captain is not a family member but only a general?

    i use this command for a ancillary not too get by a family memeber; and not AgentType = family
    our maybe better and AgentType = captain

    thanks for help plus rep

  6. #6

    Default Re: code ancillary

    Quote Originally Posted by stevietheconquer View Post
    thanks for this one, so captain is not a family member but only a general?

    i use this command for a ancillary not too get by a family memeber; and not AgentType = family
    our maybe better and AgentType = captain

    thanks for help plus rep
    not AgentType = family --- will cause it to fire on all agents except family member

    and AgentType = captain --- will cause it to fire on just captains....(yes this would be better)

  7. #7
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: code ancillary

    A general is a captain (I mean the guys leading an army when there is no real general [with a portrait] in the army)

    and not AgentType = family
    would probably work

  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: code ancillary

    No, you want

    Code:
    and AgentType = named character
             and AgentType != family
    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: code ancillary

    thanks for this one , will this code work? only a general can get it who is not in the family tree, our do i use code of Squid here?
    thanks for all information ,will rep if i can again lol.

    Spoiler Alert, click show to read: 
    ;------------------------------------------
    Trigger templarleader3 ;for france
    WhenToTest CharacterTurnEnd
    Condition IsGeneral
    and not IsFactionLeader
    and not IsFactionHeir
    and Attribute Chivalry >= 2
    and not AgentType = family
    and not I_WorldwideAncillaryExists templargm
    and FactionBuildingExists >= templars_minor_ch
    and CharFactionType france ;more often french...
    and not HasAncType pks_chiv ;not already holding another chivalric office

    AcquireAncillary templargm chance 90 ;so there's a chance for it to go around.
    Last edited by stevietheconquer; December 19, 2011 at 04:25 PM.

Posting Permissions

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