Results 1 to 12 of 12

Thread: Giving Plague as a trait.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    SonofPeverel's Avatar GLORY TOTHE BROTHERHOOD
    Moderator Emeritus Content Emeritus

    Join Date
    Oct 2009
    Location
    Texas
    Posts
    1,219

    Default Giving Plague as a trait.

    Is it possible to give a character the plague through traits?

    HOUSE OF HADER

  2. #2
    Boustrophedon's Avatar Grote Smurf
    Citizen

    Join Date
    Oct 2010
    Location
    Rome, Italy
    Posts
    3,158

    Default Re: Giving Plague as a trait.

    Interesting question. I think it might be possible because the plague is linked to an event. You would have to add it through a script though because there is no trigger for events when coding in EDCT.

    Not sure though I'm more familiar with RTW anyways..

  3. #3
    SonofPeverel's Avatar GLORY TOTHE BROTHERHOOD
    Moderator Emeritus Content Emeritus

    Join Date
    Oct 2009
    Location
    Texas
    Posts
    1,219

    Default Re: Giving Plague as a trait.

    Yeah, I have not found a way to get the effects of the plague w/o scripting it to a city .

    HOUSE OF HADER

  4. #4
    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: Giving Plague as a trait.

    You could use a trait to generate a plague event at the characters location if they're in a settlement but that's about it.
    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

  5. #5
    SonofPeverel's Avatar GLORY TOTHE BROTHERHOOD
    Moderator Emeritus Content Emeritus

    Join Date
    Oct 2009
    Location
    Texas
    Posts
    1,219

    Default Re: Giving Plague as a trait.

    How would that look?

    HOUSE OF HADER

  6. #6

    Icon1 Re: Giving Plague as a trait.

    Quote Originally Posted by SonofPeverel View Post
    How would that look?

    This:
    Spoiler Alert, click show to read: 
    campaign_script:
    Code:
    	monitor_event CharacterTurnEnd EndedInSettlement
    		and SettlementName Anorien
    		and Trait Plague = 1
    		add_events
    			event plague plague_hits_minas_tirith
    			date 0
    			position 239, 128
    		end_add_events
    	terminate_monitor
    	end_monitor
    Or this:
    Code:
    	monitor_event CharacterTurnEndInSettlement SettlementName Anorien
    		and Trait Plague = 1
    		add_events
    			event plague plague_hits_minas_tirith
    			date 0
    			position 239, 128
    		end_add_events
    	terminate_monitor
    	end_monitor
    And:

    historic_events:
    Code:
    {PLAGUE_HITS_MINAS_TIRITH_BODY}Plague in Minas Tirith.
    {PLAGUE_HITS_MINAS_TIRITH_TITLE}Plague
    Last edited by TNZ; November 09, 2011 at 08:15 PM. Reason: 'and' not 'amd':doh:

  7. #7

    Default Re: Giving Plague as a trait.

    Thanks

    The Orcs of Gundabad Erin go Bragh FROGS

    When I came back to Dublin I was court marshaled in my absence and sentenced to death in my absence, so I said they could shoot me in my absence"
    Brendan Behan
    The Irish won an Empire
    The Scots ran an Empire
    The English lost an Empire

    "When I told the people of Northern Ireland that I was an atheist, a woman in the audience stood up and said, 'Yes, but is it the God of the Catholics or the God of the Protestants in whom you don't believe?"
    - Quentin Crisp

    There is one weapon that the British cannot take away from us: we can ignore them.
    - Michael Collins

    They have nothing in their whole imperial arsenal that can break the spirit of one Irishman who doesn't want to be broken.
    - Bobby Sands

  8. #8
    SonofPeverel's Avatar GLORY TOTHE BROTHERHOOD
    Moderator Emeritus Content Emeritus

    Join Date
    Oct 2009
    Location
    Texas
    Posts
    1,219

    Default Re: Giving Plague as a trait.

    So would I hv to write one for each settlement or could I make it plague any city that a general with that trait enters with one script?
    And thanks alot...+rep when I get to my computer

    HOUSE OF HADER

  9. #9

    Default Re: Giving Plague as a trait.

    you would need one for each settlement. Due to the script requiring a position to start the plague... This will unfortunately cause a lot of turn lag because you will be monitoring a character and his traits and every settlement that he could enter. With all my testing, monitoring any character through script causes the most lag. Where as scripts that dont monitor characters can be over 100,000 lines of script and cause no turn lag at all...
    ...longbows, in skilled hands, could reach further than trebuchets...

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

    Default Re: Giving Plague as a trait.

    Quote Originally Posted by Tsarsies View Post
    With all my testing, monitoring any character through script causes the most lag. Where as scripts that dont monitor characters can be over 100,000 lines of script and cause no turn lag at all...
    That's really good to know.

  11. #11
    SonofPeverel's Avatar GLORY TOTHE BROTHERHOOD
    Moderator Emeritus Content Emeritus

    Join Date
    Oct 2009
    Location
    Texas
    Posts
    1,219

    Default Re: Giving Plague as a trait.

    Quote Originally Posted by Tsarsies View Post
    you would need one for each settlement. Due to the script requiring a position to start the plague... This will unfortunately cause a lot of turn lag because you will be monitoring a character and his traits and every settlement that he could enter. With all my testing, monitoring any character through script causes the most lag. Where as scripts that dont monitor characters can be over 100,000 lines of script and cause no turn lag at all...
    well thats upsetting...Thanks +rep

    HOUSE OF HADER

  12. #12

    Icon1 Re: Giving Plague as a trait.

    Quote Originally Posted by Tsarsies View Post
    This will unfortunately cause a lot of turn lag because you will be monitoring a character and his traits and every settlement that he could enter. With all my testing, monitoring any character through script causes the most lag. Where as scripts that dont monitor characters can be over 100,000 lines of script and cause no turn lag at all...
    You could try doing it this way:
    Spoiler Alert, click show to read: 
    Code:
    	monitor_event SettlementTurnEnd SettlementName Anorien
    		and GovernorInResidence
    		and GovernorAttribute Finance = 1
    		add_events
    			event plague plague_hits_minas_tirith
    			date 0
    			position 239, 128
    		end_add_events
    	terminate_monitor
    	end_monitor

Posting Permissions

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