Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Alternatively you could take it to the Discord channel where I'm sure another modder will be happy to offer more in-depth advice.
"sectionId":"opt_needle",
"titleId":"specialist_display_2",
"inserts":["objPerson3","13_sea_needle"],
It for some reason only work for the complete message
For example in your 'main' section you could have:
"doOnStart":[
{"message":{
"id": "specialist_display_2",
"inserts": [
"objPerson3",
"13_sea_needle",
],
"uid": -18800, // Any unique number will do
"buttons": [
{
"doOnClick": [
{
"sideObjectiveStart": "opt_needle"
}
]
},
],
}
},
],
*Not tested YMMV
Or you could make a global trigger and use that to create the message. Just put it in a doOnTrigger instead of doOnStart.
Hope that gets you on the right track.
Extra info
=======
Here's how it works in general.
1. You define a "section" which is basically the objective itself (the thing in the window in the top right with the list of sub-objectives).
2. You choose a trigger for when you want the "section"/side objective to be offered. E.g. doOnStart or doOnTrigger.
3. You design a message (see above) which offers it to the player and put that in the doOnTrigger or doOnStart array. You can customise the text of the message by changing the "id" and then defining a set of strings in a strings file: id.title, id.text.0, id.reply.0 etc. The strings files for each of the base game campaign levels is a good source of inspiration.
4. The key bit of the message is the doOnClick ... sideObjectiveStart. This is what tells the button to start the side objective. The id here must match the section you defined earlier.