= Screen = 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'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 [[#addEvent|addEvent]] function shows this. ||'''Name''' ||<#cccccc>'''Type''' ||<#cccccc>'''Description ''' || ||[[#MainLog|Screen.mainLog]] ||String ||Contains the information seen in the main log tab. || ||[[#CityLog|Screen.cityLog]] ||String ||Contains the information seen in the city Log tab. || ||[[#ReportLog|Screen.reportLog]] ||String ||Contains the information seen in the Reports tab. || ||[[#AllianceChat|Screen.aChat]] ||String ||Contains the information seen in the Alliance chat tab. || ||[[#PrivateChat|Screen.pChat]] ||String ||Contains the information seen in the Private chat tab. || ||[[#WorldChat|Screen.wChat]] ||String ||Contains the information seen in the World chat tab. || ||[[#BeginnersChat|Screen.bChat]] ||String ||Contains the information seen in the Beginners chat tab. || ||[[#SystemChat|Screen.sChat]] ||String ||Contains the information seen in the System chat tab. || ||[[#CommandLog|Screen.commandLog]] ||String ||Contains the information seen in the commandLog tab. || == MainLog == ||Usage: ||Screen.mainlog.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.mainLog.buffer || Outputs the contents of the main Log. == CityLog == ||Usage: ||Screen.cityLog.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.cityLog.buffer || Outputs the contents of the city Log. == ReportLog == ||Usage: ||Screen.reportLog.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.reportLog.buffer || Outputs the contents of the report Log. == AllianceChat == ||Usage: ||Screen.aChat.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.aChat.buffer || Outputs the contents of the alliance chat. == PrivateChat == ||Usage: ||Screen.pChat.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.pChat.buffer || Outputs the contents of the private chat. == WorldChat == ||Usage: ||Screen.wChat.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.wChat.buffer || Outputs the contents of the world chat. == BeginnersChat == ||Usage: ||Screen.bChat.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.bChat.buffer || Outputs the contents of the beginners chat. == SystemChat == ||Usage: ||Screen.sChat.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.sChat.buffer || Outputs the contents of the system chat. == CommandLog == ||Usage: ||Screen.commandLog.buffer || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||echo Screen.commandLog.buffer || Outputs the contents of the command Log. ---- == addEvent == ||Usage: ||Screen.mainLog.addEvent("Contents") || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||Screen.mainLog.addEvent("Why hello there.") || Outputs the contents of the addEvent function to the specified Screen object. This addEvent method also allows you to use HTML markup within the event. This means you're able to (somewhat) use styling within the logs. Example: . {{http://s2.postimg.org/fjszrspax/8_MXMAg_J.png|Example Missing|align="position"}} {{{#!wiki note '''Note''' The addEvent() function only adds the event to the local client, meaning even if it looks like it posted to world-chat using ''Screen.wChat.addEvent("hi")'' it in-fact did NOT. }}} ---- ScriptObjects