<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://backup.witchspacewiki.org/index.php?action=history&amp;feed=atom&amp;title=NewCargoesAPI%2FPersonalities</id>
	<title>NewCargoesAPI/Personalities - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://backup.witchspacewiki.org/index.php?action=history&amp;feed=atom&amp;title=NewCargoesAPI%2FPersonalities"/>
	<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Personalities&amp;action=history"/>
	<updated>2026-04-12T03:31:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Personalities&amp;diff=35452&amp;oldid=prev</id>
		<title>Svengali: added category</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Personalities&amp;diff=35452&amp;oldid=prev"/>
		<updated>2013-01-11T23:09:52Z</updated>

		<summary type="html">&lt;p&gt;added category&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 23:09, 11 January 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Otherwise return false.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Otherwise return false.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:OXPDoc]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Svengali</name></author>
		
	</entry>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Personalities&amp;diff=31229&amp;oldid=prev</id>
		<title>Cim: New Cargoes API for trade floor personalities</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Personalities&amp;diff=31229&amp;oldid=prev"/>
		<updated>2012-03-31T20:25:32Z</updated>

		<summary type="html">&lt;p&gt;New Cargoes API for trade floor personalities&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Any world script registered as providing trade floor personalities for New Cargoes through&lt;br /&gt;
[[NewCargoesAPI#registerPersonality|registerPersonality]] must contain all of these&lt;br /&gt;
functions.&lt;br /&gt;
&lt;br /&gt;
Look at the Scripts/cargotypefetch.js script of the New Cargoes OXP&lt;br /&gt;
for a simple example.&lt;br /&gt;
&lt;br /&gt;
==Trade floor functions==&lt;br /&gt;
&lt;br /&gt;
===traderDesc===&lt;br /&gt;
&amp;lt;code&amp;gt;String traderDesc()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns a basic introduction and greeting for the trader, to be shown on New Cargoes trade floor screen before the player starts dealing with them. The player will get the option to either talk to the trader (which starts [[#runOffer|runOffer]]) or move on to another person on the trade floor.&lt;br /&gt;
&lt;br /&gt;
===traderHere===&lt;br /&gt;
&amp;lt;code&amp;gt;bool traderHere(PrimaryRole? srole)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return true if the trader is at the specified station (srole will be&lt;br /&gt;
blank for main stations, and the primary role otherwise), and false&lt;br /&gt;
otherwise.&lt;br /&gt;
&lt;br /&gt;
===traderName===&lt;br /&gt;
&amp;lt;code&amp;gt;String traderName()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return the name and title of the trader. e.g. &amp;quot;Vela Smithson, bounty&lt;br /&gt;
hunter&amp;quot;. Should be kept relatively short, and shouldn't change unless&lt;br /&gt;
the trader's identity does.&lt;br /&gt;
&lt;br /&gt;
===runOffer===&lt;br /&gt;
&amp;lt;code&amp;gt;void runOffer()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function is called when New Cargoes hands control of the mission&lt;br /&gt;
screen to this script. This function should call whatever functions&lt;br /&gt;
are necessary (including at least one&lt;br /&gt;
[[Oolite_JavaScript_Reference:_Mission#runScreen|mission.runScreen]]) to talk the player&lt;br /&gt;
through any deals they might accept or reject, change the player's&lt;br /&gt;
hold contents or cash levels, and so on.&lt;br /&gt;
&lt;br /&gt;
Unless the result of talking to the trader means that the player is&lt;br /&gt;
immediately launched from the station, or temporarily incapacitated&lt;br /&gt;
(e.g. by arrest), then when the player's dealings with the trader are&lt;br /&gt;
over, you should call&lt;br /&gt;
&amp;lt;code&amp;gt;worldScripts[&amp;quot;CargoTypeExtension&amp;quot;].tradeFloor();&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Information functions==&lt;br /&gt;
&lt;br /&gt;
===describeContracts===&lt;br /&gt;
&amp;lt;code&amp;gt;String describeContracts()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the player has any active contracts with the personalities in this&lt;br /&gt;
world script, this function should return a string describing&lt;br /&gt;
them. The description should be less than 80 characters per contract,&lt;br /&gt;
and each contract should be described on a separate line. The final&lt;br /&gt;
contract should end in a new line &amp;quot;\n&amp;quot; as well.&lt;br /&gt;
&lt;br /&gt;
If there are no active contracts, return the empty string (no new&lt;br /&gt;
line).&lt;br /&gt;
&lt;br /&gt;
Use of this is generally preferred to describing the contracts with&lt;br /&gt;
mission information on the F5 F5 screen.&lt;br /&gt;
&lt;br /&gt;
===traderGossip===&lt;br /&gt;
&amp;lt;code&amp;gt;String? traderGossip()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you wish there to be gossip in the trader bars of this system about&lt;br /&gt;
the individuals defined by this script, return it here. Gossip should&lt;br /&gt;
be at most 80 characters in length, and start with the string &amp;quot;* &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Otherwise return false.&lt;/div&gt;</summary>
		<author><name>Cim</name></author>
		
	</entry>
</feed>