Code: Select all
<t id="99">404</t>
<t id="100">galnet</t>
<t id="101">Terran/Solaran conflict gets front page news</t>
<t id="102">With the tension between Terrans and Solarans in the new universe a special team has been established to make reports and explorations of this new fight. The XTC team will send you into the deepest of the thick of things and return you with fresh info into the happenings in and around the X universe.\n\nSign up for XTC today and see what is really going on in Solaran space, and who, if any, will come out on top.\n\nRity Fist, Galnet News</t>
100 is the tagging, this can include also race tagging, for instance "galnet,trade:Argon,Boron"
101 is the title of the article
102 is the article itself
this is described in the manual more extensive, the next set would be from 110 to 112, then 120 to 122 and so on. Have a look at the 9500-file to understand the tagging.
You can use your own t-file, no need to change the 9500-file... even this example (with id 99=1) would work... lets say this is file 9800, then the script should be:
Code: Select all
001 $null = null
002
003 @ = $null -> call script 'plugin.news.add.newsfile' : text-file number=9800
004 return null
For the second part, the economic news, which should of course only be shown, when such an event occurs, a new script (AL or something similar) would be handy... for XTC we have already done such an event, dealing with ware shortage or overflow, but this will not become released out from XTC, so you are free to do so
About your questions:
Several miscellaneous questions:
- Can the news be formatted in columns as was in X3R's BBS? I haven't studied the MSCI in detail, thought I'd just ask here.
- The max.duration option affects an entry's display duration within a game session, but the show-once argument will determine if an entry is displayed only once within a single player campaign (unless re-added by the controlling script). Am I correct?
- If an article is clipboarded, will GNS remember the variables' values?
- No, the new custom menues don't allow direct formatting in columns like it was for the X3R-BBS, theoretically possible, but too difficult and unhandy to include.
- max duration = maximal time until the article is removed automatically (0=endless)
show-once = article will be removed, when player has opened it, so when wanting to reopen it, the control script has to include it again, or you could disable this feature and remove the article by the included remove.news-script (with the used id) - The clipboard saves only text, so all text which is shown when seeing the article can be saved into the clipboard, but not the enhanced features for using a button for starting another script from an article.
These parts in the example from the earlier post, the "this is the headline above the button of our news" and "this is the text for our button" cannot be seen, when the article is viewed from the clipboard... but as the dynamic articles are time-sensitiv, this makes sense, imo.