<?xml version="1.0" encoding="utf-8"?>
<s1 title="Screen"><p></p>
<s2 id="Screen" title="Screen">
<p>The Screen object contains the content as you see it on your screen. This means certain things you see in the bot can be referenced through scripts. Below I&apos;ve included a collection of references that will assist you to grab data from certain Screen elements. As well as referencing these elements, you can also add values to some of them. the <jump href="/wiki/Screen#a">addEvent</jump> function shows this. </p>
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p><strong>Name</strong> </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p><strong>Type</strong> </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p><strong>Description </strong> </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#M">Screen.mainLog</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the main log tab. </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#C">Screen.cityLog</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the city Log tab. </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#R">Screen.reportLog</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the Reports tab. </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#A">Screen.aChat</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the Alliance chat tab. </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#P">Screen.pChat</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the Private chat tab. </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#W">Screen.wChat</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the World chat tab. </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#B">Screen.bChat</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the Beginners chat tab. </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#S">Screen.sChat</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the System chat tab. </p>
</td></tr><tr><td><p><jump href="/wiki/Screen#C">Screen.commandLog</jump> </p>
</td><td><p>String </p>
</td><td><p>Contains the information seen in the commandLog tab. </p>
</td></tr></table><p></p>
<s3 id="MainLog" title="MainLog">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.mainlog.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.mainLog.buffer </p>
</td></tr></table><p>Outputs the contents of the main Log. </p>
<p></p>
</s3>
<s3 id="CityLog" title="CityLog">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.cityLog.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.cityLog.buffer </p>
</td></tr></table><p>Outputs the contents of the city Log. </p>
<p></p>
</s3>
<s3 id="ReportLog" title="ReportLog">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.reportLog.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.reportLog.buffer </p>
</td></tr></table><p>Outputs the contents of the report Log. </p>
<p></p>
</s3>
<s3 id="AllianceChat" title="AllianceChat">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.aChat.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.aChat.buffer </p>
</td></tr></table><p>Outputs the contents of the alliance chat. </p>
<p></p>
</s3>
<s3 id="PrivateChat" title="PrivateChat">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.pChat.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.pChat.buffer </p>
</td></tr></table><p>Outputs the contents of the private chat. </p>
<p></p>
</s3>
<s3 id="WorldChat" title="WorldChat">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.wChat.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.wChat.buffer </p>
</td></tr></table><p>Outputs the contents of the world chat. </p>
<p></p>
</s3>
<s3 id="BeginnersChat" title="BeginnersChat">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.bChat.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.bChat.buffer </p>
</td></tr></table><p>Outputs the contents of the beginners chat. </p>
<p></p>
</s3>
<s3 id="SystemChat" title="SystemChat">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.sChat.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.sChat.buffer </p>
</td></tr></table><p>Outputs the contents of the system chat. </p>
<p></p>
</s3>
<s3 id="CommandLog" title="CommandLog">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.commandLog.buffer </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>echo Screen.commandLog.buffer </p>
</td></tr></table><p>Outputs the contents of the command Log. </p>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> </p>
<p></p>
</s3>
<s3 id="addEvent" title="addEvent">
<table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.mainLog.addEvent(&quot;Contents&quot;) </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>Screen.mainLog.addEvent(&quot;&lt;b&gt;Why hello there.&lt;/b&gt;&quot;) </p>
</td></tr></table><p>Outputs the contents of the addEvent function to the specified Screen object. </p>
<p>This addEvent method also allows you to use HTML markup within the event. This means you&apos;re able to (somewhat) use styling within the logs. </p>
<p>Example: </p>
<ul><li><p>[Image:Example Missing]</img> </p>
</li>
</ul>
<p></p>
<p><strong>Note</strong> The addEvent() function only adds the event to the local client, meaning even if it looks like it posted to world-chat using <em>Screen.wChat.addEvent(&quot;hi&quot;)</em> it in-fact did NOT. </p>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/ScriptObjects">ScriptObjects</jump> </p>
</s3></s2></s1>