Results 1 to 5 of 5

Thread: Accept\Decline Events

Hybrid View

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

    Default Accept\Decline Events

    Not sure if this is the correct thread for this post...

    I was having trouble getting accept decline events working in Stainless Steel 5.1. as this is a kingdoms only mod those events should be working. i have tested the accept decline events in other kingdoms mods and all works well, just not in SS. This was annoying because i wanted to script some interactive events for SS.

    So i went on a search to figure out how to get them to work.

    I have now got accept decline events working in M2TW mods. so the feature is NOT unique to kingdoms only mods as we had previously thought. just simpler to use.

    How to get them to work?
    you need to edit one file to get events to appear with accept decline options. the file is 'descr_event_images', found in your M2TW\data directory. Copy that into your mod\data directory. open it and search for 'historic_event'. you want the historic event not the movie... delete it and in it's place paste this.
    historic_event
    icon historic
    footer_items 1
    importance high
    format
    {
    string center verdana black
    image center
    spacer 8
    multistring left verdana_sml khaki left
    group center 8
    {
    accept right
    decline left
    }
    }

    This will make ALL event messages have the accept decline option. they do nothing unless you script it in the campaign script.txt. script it the EXACT same way you would for a kingdoms only Mod. ive tested it, and it works. as an example, here is the script i used to ensure it works.

    monitor_event FactionTurnStart FactionIsLocal
    historic_event draft_enacted true
    end_monitor

    monitor_conditions I_EventCounter draft_enacted_accepted = 1
    set_event_counter draft_enacted_accepted 0
    add_money england 100000
    end_monitor

    NOTE
    Normal events will appear with the accept decline options, but the accept decline buttons will only close the message. UNLESS you have it scripted to do something.

    All in all, i thought i could simply add a new 'event'. but it is hardcoded to a certain number of them, and i got crashes to desktop everytime i tried. so i then decided to try editing the historic event one. took me a little while to understand exactly how the file works and its relation to other files, but i figured it out and it works.

    So, we can now have accept\decline events in SS (and any mod not for kingdoms for that matter)

    and with the research i did into this file, it seems easy enough to edit all events to further customise a mod!

    hope this helps some people
    ...longbows, in skilled hands, could reach further than trebuchets...

  2. #2

    Default Re: Accept\Decline Events

    I found a better solution.

    descr_event_images.txt
    Spoiler Alert, click show to read: 

    Replace this:
    Code:
    historic_event
    	icon	historic
    	importance high
    	format
    	{
    		string	center verdana black
    		image	center
    		spacer	8
    		multistring	left verdana_sml khaki left
    	}
    With this:
    Code:
    historic_event
    	icon	historic
    	importance high
    	format
    	{
    		string	center verdana black
    		image	center
    		spacer	8
    		multistring	left verdana_sml khaki left
    		condition
    		{
    			true
    			{
    				group center 8
    				{
    					accept    right
    					decline   left
    				}
    			}
    			false
    			{
    				group center 8
    				{
    					spacer 1	; dummy item to fix event message formatting wrt header and footer items
    				}
    			}
    		}
    	}


    This makes it work the way it 'should', so you now only get accept/decline options when you use the true condition.
    Grand Campaign: Extended - Adding Kingdoms content to the Grand Campaign.

  3. #3

    Default Re: Accept\Decline Events

    Sorry to resurrect an old thread, but I tried this and it didn't work. The event popped up, but there were no accept/decline buttons. Does it work with 1.2 vanilla, or will I have to update to 1.3?

  4. #4

    Default Re: Accept\Decline Events

    It probably only works in Kingdoms (1.4).
    Grand Campaign: Extended - Adding Kingdoms content to the Grand Campaign.

  5. #5

    Default

    But the OP did mention himself getting it to work in M2TW, not Kingdoms...

    Anyways, I'm getting 1.3 now. I'll get some results up here soon.

    Alright so neither do they work in 1.3.

    Either Kingdoms is strictly necessary for this, or I'm really messing up somewhere. I'm hoping it's the latter...

    Apparently 1.3 didn't update the docudemons, so the command historic_event doesn't have an accept/decline parameter, only a movie_path. So "historic_event test_event true" only brings up a movie event.

    What I don't understand is why the buttons never show up. The interface of historic events remain just the same as before.
    Last edited by Amroth; July 20, 2008 at 02:00 PM. Reason: tp

Posting Permissions

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