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![]()





Reply With Quote





