Difference between revisions of "NDDynamicSpawners"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Created page with "<p style="width:60%;margin: 0 auto">[Main] [Templates]</p> <p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Exa...")
 
Line 5: Line 5:
 
  <ObjectTemplate>
 
  <ObjectTemplate>
 
  <ClientId>2</ClientId>
 
  <ClientId>2</ClientId>
  <Color>0xFF00FF00</Color>
+
  <Name>Dynamic Rebel Spawner</Name>
  <Name>Time Controller</Name>
+
<ObjectVariableComponent>
  <Tag>TimeController</Tag>
+
  <DoubleVariable Name="spawnRadius">20</DoubleVariable>
  <ObjectVariableComponent/>
+
<DoubleVariable Name="SpawnRateIncrease">1.03</DoubleVariable>
 +
    <StringVariable Name="spawnEffect">none</StringVariable>
 +
    <StringVariable Name="spawnMode">Progressive</StringVariable>
 +
  <StringVariable Name="lootMode">Weighted</StringVariable>
 +
    <DoubleVariable Name="progressModifier">2.5</DoubleVariable>
 +
  </ObjectVariableComponent>
 
  <ScriptEngineComponent>
 
  <ScriptEngineComponent>
  <LuaModule Name="shard_time_controller">
+
  <LuaModule Name="dynamic_spawn_controller_rebels">
 
  <Initializer>
 
  <Initializer>
 
  {
 
  {
  DaylightDurationSecs = 45 * 60,
+
  TriggerSpawnTeamType = "Rebel",
  NighttimeDurationSecs = 15 * 60,
+
                    TriggerDeathRadius = 30,
 +
                    TriggerChance = 0.1,
 +
                    TeamType = "Rebel",
 +
  SpawnObjVars = {
 +
["AI-StationedLeash"] = false,
 +
["AI-LeashDistance"] = 20,
 +
["AI-CanWander"] = true,
 +
}
 
  }
 
  }
 
  </Initializer>
 
  </Initializer>
  </LuaModule>
+
  </LuaModule>
 
  </ScriptEngineComponent>
 
  </ScriptEngineComponent>
 
  </ObjectTemplate>
 
  </ObjectTemplate>
 
</div>
 
</div>

Revision as of 16:32, 7 December 2019

[Main] [Templates]

Example Controller ObjectTemplate

Below is a sample controller object template file.

<ObjectTemplate>
	<ClientId>2</ClientId>
	<Name>Dynamic Rebel Spawner</Name>
	<ObjectVariableComponent>	
	<DoubleVariable Name="spawnRadius">20</DoubleVariable>
	<DoubleVariable Name="SpawnRateIncrease">1.03</DoubleVariable>
    <StringVariable Name="spawnEffect">none</StringVariable>
    <StringVariable Name="spawnMode">Progressive</StringVariable>
	<StringVariable Name="lootMode">Weighted</StringVariable>
    <DoubleVariable Name="progressModifier">2.5</DoubleVariable>
	</ObjectVariableComponent>
	<ScriptEngineComponent>
		<LuaModule Name="dynamic_spawn_controller_rebels">
			<Initializer>
				{
					TriggerSpawnTeamType = "Rebel",
                    TriggerDeathRadius = 30,
                    TriggerChance = 0.1,
                    TeamType = "Rebel",
					SpawnObjVars = {
						["AI-StationedLeash"] = false,
						["AI-LeashDistance"] = 20,
						["AI-CanWander"] = true,
					}
				}
			</Initializer>
		</LuaModule>
	</ScriptEngineComponent>
</ObjectTemplate>