Hello All,
I have a couple questions about events. I've read everything in the Wiki and have actually written some events that work. My question is more about some strange things. Here goes.
All the events I wrote work. They fire at the right time and all the commands do as coded. The strange thing is really the cosmetics portion of the event which displays the event name, description, and action name.
First I tried putting all those items between double quotes " ", and when the event fired It only showed the first word of each (event name, description, and action name).
Then I used the event_text file. Changed all the events to have a format of EVT_nnnn_NAME, _DESC, ACTIONNAMEnnnnA, etc. and placed all the text with the appropriate event id numbers in the event text file, using the same semicolon ;;; format for existing events. When the events fired this time they only dispalyed EVT_nnnn_NAME, EVT_nnnn_DESC, and ACTIONNAMEnnnnA, and not any of the real text.
By the way, when I made my events I simply appended them to the existing event file for the country in question in the /db/events folder.
In all examples of existing events the code shows something like...
name = "EVT_3000_NAME" and notice the double quotes. This is the way it is in the existing event files. I did the same thing.
Then on a whim, I got rid of the quotes to see what would happen, so my event would be coded...
name = EVT_nnnn_NAME with no quotes.
THIS WORKED! All name and text descriptions now showed up when the event fired.
So my question is what are the real rules to for getting the names and descriptions to show up properly. By the way, in the exact same country event file all the original game events still have the quotes around the name, desc, and action code, yet my code at the end of the file works only when quotes are not used!
I have a couple questions about events. I've read everything in the Wiki and have actually written some events that work. My question is more about some strange things. Here goes.
All the events I wrote work. They fire at the right time and all the commands do as coded. The strange thing is really the cosmetics portion of the event which displays the event name, description, and action name.
First I tried putting all those items between double quotes " ", and when the event fired It only showed the first word of each (event name, description, and action name).
Then I used the event_text file. Changed all the events to have a format of EVT_nnnn_NAME, _DESC, ACTIONNAMEnnnnA, etc. and placed all the text with the appropriate event id numbers in the event text file, using the same semicolon ;;; format for existing events. When the events fired this time they only dispalyed EVT_nnnn_NAME, EVT_nnnn_DESC, and ACTIONNAMEnnnnA, and not any of the real text.
By the way, when I made my events I simply appended them to the existing event file for the country in question in the /db/events folder.
In all examples of existing events the code shows something like...
name = "EVT_3000_NAME" and notice the double quotes. This is the way it is in the existing event files. I did the same thing.
Then on a whim, I got rid of the quotes to see what would happen, so my event would be coded...
name = EVT_nnnn_NAME with no quotes.
THIS WORKED! All name and text descriptions now showed up when the event fired.
So my question is what are the real rules to for getting the names and descriptions to show up properly. By the way, in the exact same country event file all the original game events still have the quotes around the name, desc, and action code, yet my code at the end of the file works only when quotes are not used!