Difference between revisions of "NDDynamicSpawnerHUDVars"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<p style="width:60%;margin: 0 auto">[[NewDawnHome|[Main]]] [[NDDynamicSpawners|[Dynamic Spawners]]]</p>
 
<p style="width:60%;margin: 0 auto">[[NewDawnHome|[Main]]] [[NDDynamicSpawners|[Dynamic Spawners]]]</p>
<p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">HUDVars</p>
+
<p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">About HUDVars</p>
<p style="width: 60%;margin: 0 auto">Below is a sample generic item template file.</p>
+
<p style="width: 60%;margin: 0 auto">HudVars is the way to tell the new HUD element what to display when players are near your dynamic spawner. The dynamic window function UpdateDynamicEventHUD is located in the hud.lua</p>
 
<div style="width:60%;margin: 0 auto">
 
<div style="width:60%;margin: 0 auto">
 
  <ObjectTemplate>
 
  <ObjectTemplate>

Revision as of 06:18, 9 December 2019

[Main] [Dynamic Spawners]

About HUDVars

HudVars is the way to tell the new HUD element what to display when players are near your dynamic spawner. The dynamic window function UpdateDynamicEventHUD is located in the hud.lua

<ObjectTemplate>
	<ClientId>320</ClientId>
	<Name>[FF9500]Candle[-]</Name>
	<SharedStateEntry name="Weight" type="int" value="1"/>
	<ObjectVariableComponent>					
    	<StringVariable Name="PluralName">Candles</StringVariable>
		<BoolVariable Name="Worthless">true</BoolVariable>
		<StringVariable Name="ResourceType">Candle</StringVariable>
   	</ObjectVariableComponent>		
	<ScriptEngineComponent>
		<LuaModule Name="stackable" />
	</ScriptEngineComponent>
</ObjectTemplate>