<Var/String> = A string containing alphanumerical values (letters and/or numbers) or a variable containing the string.
<Var/Number> = The page id of the article's title.
<Var/Number> = The text id of the article's title.
<Var/Number> = The page id of the article's text title.
<Var/Number> = The text id of the article's text.
<Var/Number> = A positive numerical value in seconds or 'null'.
This command adds text with a title, listed under the specified page and text ids in a text file, to the encylopedia "History"-section of the custom category "Additional articles".
The custom category "Additional articles" as well as its sections "News", "Information", "History" and "Stories" can be used by scripters and modders to add own articles to the encylopedia. These sections aren't used in the Vanilla game. To change the names of these sections simply rename their entries in the main text file under page id 350037.
The article's id is important in order to be able to remove an article after it was added. You cannot find out an article's id with any command, so you should save it somewhere. For example directly in your t-file your in a global variable. Note that you cannot use the same id with more than one article at the same time. If you add an article with an already used id, this article will replace the article that currently uses that id. Also be aware of the fact that the order of the articles in a section is not determined by their ids. The article will be sorted alphanumerical (numbers take precedence over letters) by their titles.
Under timeout you can specifiy a timeframe in seconds, after which the article will be removed automatically from the encyclopedia. If you enter '0' or 'null' the article will stay there forever or until it's manually removed with the remove article-command.
Example:
add encyclopedia custom article: History, id='test', title page=7, title id=1020101, text page=19, text id=1030101, timeout=null
return null
This will add the sector description of Kingdom End (with "Kingdom End" as title) to the "History"-section of the "Additional articles"-category of the encyclopedia.
Note: There is a limit of characters (including spaces) you can use in one article. If your article has more than 6017 characters the game will crash, when you try to open it.
Also, if you're using an own textfile, you have to load it with the load text: id-command before, the SE can read text from it. Otherwise, the SE will take the text from the main textfile(s) or, if these page / text ids don't exist, simply display Readtext errors.
Related Commands:
add encyclopedia custom article: News, id=<Var/String>, title page=<Var/Number>, title id=<Var/Number>, text page=<Var/Number>, text id=<Var/Number>, timeout=<Var/Number>
add encyclopedia custom article: Information, id=<Var/String>, title page=<Var/Number>, title id=<Var/Number>, text page=<Var/Number>, text id=<Var/Number>, timeout=<Var/Number>
add encyclopedia custom article: Stories, id=<Var/String>, title page=<Var/Number>, title id=<Var/Number>, text page=<Var/Number>, text id=<Var/Number>, timeout=<Var/Number>
remove encyclopedia custom article: id=<Var/String>
Command Location:
- »» Other
add encyclopedia custom article: History, id=<Var/String>, title page=<Var/Number>, title id=<Var/Number>, text page=<Var/Number>, text id=<Var/Number>, timeout=<Var/Number>