This tutorial will show you how to add your own historic events and make them come up during the game.
Firstly:
- Make sure you have unpacked your files.
- Either use the .txt.strings.bin Converter to convert your data/text files to txt, or
- Use the .txt.strings.bin Reader/Editor
- Back up the files if needed.
The files that you will be editing are:
* historic_events.txt/.txt.strings.bin
* descr_events
Adding Your Event
Go into the historic_events.txt/.txt.strings.bin file. You will see the format looks something like this:
Code:
{WORLD_IS_ROUND_BODY}Over the centuries several scholars have suggested that the world could be round, but most of them were burned at the stake as heretics, so the theory hasn't been particularly popular. However, with new advances in the fields of Astronomy, enough of the learned men of the world have accepted that the theory is well worth testing... Perhaps if someone were to establish a trade route to the far east by sailing west, they would both bring the debate to a close, as well as establish a trade lane that is most lucrative.
{WORLD_IS_ROUND_TITLE}The World is Round
After the last entry, you can paste in your event, using the same format:
Code:
{TEST_EVENT_BODY}This is the text that will appear about your event.
{TEST_EVENT_TITLE}This is the title of your event
You can call your event whatever you want, something like DIAS_SAILS_ROUND_CAPE - just remember to put BODY and TITLE after it.
Making Your Event Appear During The Campaign
Open up descr_events. You will see the format looks like this:
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;; EVENT LIST ;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
event historic first_windmill
date 50
You can add your event using the same format:
Code:
event historic test_event
date 2
The name (in this example "test_event") must be the same as the one you entered before.
You can change the date to whenever you want it to appear - 2 means that the event will appear in turn 2 or 1082 (if you are playing vanilla). However, do not put in 0 or 1 as it will not appear.
Adding An Event Picture
Go into the data/ui folder.
Go into southern_european/eventspic and copy any exisiting picture. Rename it as your event name (in this case "test_event").
You can always change this picture later to what you want it to be - this is just a placeholder to get it working.
You will need to do the same thing in the eastern_european, northern_european, greek and middle_eastern folders. Not doing this will cause a ctd during the campaign.
Heres an example of what it looks like:
Go crazy!