Results 1 to 5 of 5

Thread: Help on more information scripts please?

Hybrid View

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

    Default Help on more information scripts please?

    Is there a way to check if certain nations share adjacent territories, ie border on each other? I am working on a script where you hear rumours of cities that are taken, but with more information if you are allied with one of the nations... I'd like to add being adjacent to one of them but can't seem to find this. I know the game can check it for some thing or other it does, though.

    Also, would I have to write a specific event for each single city or is there a way to make it display the city in question?

    Thanks,

    Twist.

  2. #2

    Icon1 Re: Help on more information scripts please?

    Code:
    campaign_script:
    
    declare_counter Anorien_Lost
    
    	monitor_event FactionTurnStart FactionType milan
    		and FactionIsLocal
    		and DiplomaticStanceFromFaction sicily = Allied
    		and not I_SettlementOwner Anorien = sicily
    		and I_CompareCounter Anorien_Lost = 0
    		if I_CharacterTypeNearTile milan named_character, 15 239,128
    		set_counter Anorien_Lost 1
                    historic_event anorien_lost_A
    		snap_strat_camera 239, 128 ;or move_strat_camera 239, 128
    	end_if
    
    		if I_CharacterTypeNearTile milan named_character, 30 239,128
    		set_counter Anorien_Lost 1
                    historic_event anorien_lost_B
    		snap_strat_camera 239, 128 ;or move_strat_camera 239, 128
    	end_if
    	end_monitor
    
    historic_events:
    
    {ANORIEN_LOST_A_BODY}Minas Tirith has fallen.
    {ANORIEN_LOST_A_TITLE}Minas Tirith
    
    {ANORIEN_LOST_B_BODY}Minas Tirith has fallen to the Followers of Melkor.
    {ANORIEN_LOST_B_TITLE}Minas Tirith

  3. #3

    Default Re: Help on more information scripts please?

    Wow. Thank you, sir! I'd managed to get about half that far, and would be embarrassed to admit how long it took. PS +Rep. Even though it is against my religion.
    Last edited by Twist of Cain; October 06, 2009 at 02:29 AM.

  4. #4

    Default Re: Help on more information scripts please?

    Alright, I think I have grasped the code kindly given. Now, I quickly realized that (factions * cities * rumour types * detail level) could result in literally thousands of different events to display. Best to plan this wisely before starting!

    So instead of one event, "Gondor has come under siege by forces of Mordor at Minas Tirith!" it seems better to seperate them, and depending on all the circumstances and chance, you might get one or both of:

    "Rumours go about in Mordor, telling of mighty armies that set forth to take an enemy city." (I_FactionBesieging)
    "Messengers go out from Gondor to their allies, asking for aid in fending off an invasion!" (I_FactionBesieged)

    That would at least "only" require (nations * rumour type) events. Level of detail is in how many of the individual parts you get. In order to avoid adding (cities * rumour type) I would like to know: So "Gondor is sieged" comes up, for instance... and if you meet conditions, it has a "magnifying glass" to zoom on the location. I've looked and searched, but all I seem to find are commands to zoom or snap the camera to a location, I assume this happens independently of the historic event window popping up?

    How do I make an event with one of those little magnifying glasses to click and go somewhere, or is it possible?
    Last edited by Twist of Cain; October 07, 2009 at 04:31 AM.

  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: Help on more information scripts please?

    I think the hourglass works only with the 'historic_events' file, not the script. There doesn't seem to be a way to script co-ordinates with the "historic_event" command.

    On the other hand I had spawned a faction and then got the 'mongols in your region' event with a magnifying glass. No idea where that script might be.










Posting Permissions

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