<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetLiveEventData</id>
	<title>API:GetLiveEventData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetLiveEventData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetLiveEventData&amp;action=history"/>
	<updated>2026-10-17T16:47:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:GetLiveEventData&amp;diff=30420&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetLiveEventData&amp;diff=30420&amp;oldid=prev"/>
		<updated>2026-10-16T19:44:18Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=LiveEvent}}&lt;br /&gt;
Returns the texts, picture and sound of a live event.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
eventData = GetLiveEventData(eventId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;eventId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Event id, as in [[API:GetLiveEventList|GetLiveEventList]].&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;eventData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – The event&amp;#039;s data, or nothing if the event is unknown or inactive.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Event title.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;subTitle&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Subtitle.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Summary text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;loreText&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Lore text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;textureName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || Name of the event&amp;#039;s picture texture. The stock UI passes it to &amp;lt;code&amp;gt;DynamicImageSetTexture&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;soundId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Sound to play for the event; &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; for none. The stock UI plays it with &amp;lt;code&amp;gt;Sound.Play&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The table has no &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; field.&lt;br /&gt;
* Exactly one argument must be passed.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
These are written to the UI log, and the function returns nothing.&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;GetLiveEventData&amp;#039;: Event %d not found.&amp;lt;/code&amp;gt; (also for an event that exists but is inactive)&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_tomeofknowledge/source/tomewindow_liveevent.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local eventData = GetLiveEventData( TomeWindow.CurrentLiveEventId )&lt;br /&gt;
...&lt;br /&gt;
LabelSetText( PARENT_WINDOW..&amp;quot;Title&amp;quot;, wstring.upper( eventData.title ) )&lt;br /&gt;
LabelSetText( PARENT_WINDOW..&amp;quot;SubTitle&amp;quot;, eventData.subTitle )&lt;br /&gt;
LabelSetText( PARENT_WINDOW..&amp;quot;SummaryText&amp;quot;, eventData.description )&lt;br /&gt;
LabelSetText( PARENT_WINDOW..&amp;quot;LoreText&amp;quot;, eventData.loreText )&lt;br /&gt;
...&lt;br /&gt;
DynamicImageSetTexture( PARENT_WINDOW..&amp;quot;Image&amp;quot;, eventData.textureName, 0, 0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetLiveEventList|GetLiveEventList]]&lt;br /&gt;
* [[API:GetLiveEventTasks|GetLiveEventTasks]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>