Results 1 to 7 of 7

Thread: delete

Hybrid View

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

    Default delete

    delete
    Last edited by RubiconDecision; November 14, 2011 at 06:26 AM.

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

    Default Re: What happens if an army spawns on another pre-existing army, and spy scripting?

    They will 'bounce' off of the existing unit and 'land' on an empty time somewhere nearby. Same for reposition_character. move_character, however, will put them on top of each other.

    Event text is static: 'hard-coded' in historic_events.txt. There's no way to dynamically generate and display text. I wish there were.

  3. #3
    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: What happens if an army spawns on another pre-existing army, and spy scripting?

    You will have to base your script on an agent (spy) character:

    Code:
    monitor_event CharacterTurnEnd AgentType = spy
       and FactionIsLocal 
       and I_SettlementOwner Milan = milan 
       and I_IsFactionAIControlled milan 
       and I_CharacterTypeNearTile [faction name] spy [distance] x,y 
       and [add a condition to narrow down the trigger to avoid frequent firing, like a turn number (I_TurnNumber) or garrison strength (GarrisonToPoppulationStrength)] 
    
       historic_event milan_intelligence 
    
    end_monitor
    Last edited by Gigantus; May 14, 2011 at 12:27 AM.










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

    Default Re: What happens if an army spawns on another pre-existing army, and spy scripting?

    There's that "I_Character_Near_Tile" condition again. I don't have that one in my docudemons; does it exist?

  5. #5
    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: What happens if an army spawns on another pre-existing army, and spy scripting?

    Maybe you have an old version?

    Identifier: I_CharacterTypeNearTile
    Trigger requirements:
    Parameters: faction, character type, distance in squares, x, z
    Sample use: I_CharacterTypeNearTile romans_julii named_character, 10 48,30
    Description: Is a particular character type of a faction near a particular tile?
    Battle or Strat: Strat
    Class: I_CHARACTER_NEAR_TILE

    Edit: corrected my example
    Last edited by Squid; June 08, 2011 at 05:15 PM.










  6. #6
    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: What happens if an army spawns on another pre-existing army, and spy scripting?











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

    Default Re: What happens if an army spawns on another pre-existing army, and spy scripting?

    Yes, it is I_CharacterTypeNearTile but the class is I_CHARACTER_NEAR_TILE.

Posting Permissions

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