Difference between revisions of "NDDynamicSpawners"
Line 25: | Line 25: | ||
<ObjectTemplate> | <ObjectTemplate> | ||
<ClientId>2</ClientId> | <ClientId>2</ClientId> | ||
− | <Name>Dynamic | + | <Name>Dynamic Undead Spawner</Name> |
<ObjectVariableComponent> | <ObjectVariableComponent> | ||
<DoubleVariable Name="spawnRadius">20</DoubleVariable> | <DoubleVariable Name="spawnRadius">20</DoubleVariable> | ||
+ | <StringVariable Name="spawnEffect">none</StringVariable> | ||
<DoubleVariable Name="SpawnRateIncrease">1.03</DoubleVariable> | <DoubleVariable Name="SpawnRateIncrease">1.03</DoubleVariable> | ||
− | |||
<StringVariable Name="spawnMode">Progressive</StringVariable> | <StringVariable Name="spawnMode">Progressive</StringVariable> | ||
<StringVariable Name="lootMode">Weighted</StringVariable> | <StringVariable Name="lootMode">Weighted</StringVariable> | ||
Line 35: | Line 35: | ||
</ObjectVariableComponent> | </ObjectVariableComponent> | ||
<ScriptEngineComponent> | <ScriptEngineComponent> | ||
− | <LuaModule Name=" | + | <LuaModule Name="dynamic_spawn_controller_universal"> |
<Initializer> | <Initializer> | ||
{ | { | ||
− | TriggerSpawnTeamType = " | + | TriggerSpawnTeamType = "Demon", |
TriggerDeathRadius = 30, | TriggerDeathRadius = 30, | ||
TriggerChance = 0.1, | TriggerChance = 0.1, | ||
− | TeamType = " | + | TeamType = "Corruption1", |
+ | SpawnKey = "Corruption1DynamicSpawner", | ||
+ | HUDVars = { | ||
+ | Title = "Pitiful Calamity", | ||
+ | Description = "Kill the demons that are gathering around the pit." | ||
+ | }, | ||
+ | ProgressMessages = { | ||
+ | "A low rumble can be heard coming from the pit.", | ||
+ | nil, | ||
+ | nil, | ||
+ | "A demon emerges from the pit.", | ||
+ | }, | ||
SpawnObjVars = { | SpawnObjVars = { | ||
["AI-StationedLeash"] = false, | ["AI-StationedLeash"] = false, |
Revision as of 16:53, 7 December 2019
Example Dynamic Spawner Universal Template
Object Variables
- spawnRadius
- SpawnRateIncrease
- spawnEffect
- spawnMode
- lootMode
- progressModifier
Initializer Variables
- TriggerSpawnTeamType
- TriggerDeathRadius
- TriggerChance
- SpawnKey
- HUDVars
- SpawnObjVars
- ProgressMessages
Below is an example of a typical Dynamic Spawner template file for Rebels.
<ObjectTemplate> <ClientId>2</ClientId> <Name>Dynamic Undead Spawner</Name> <ObjectVariableComponent> <DoubleVariable Name="spawnRadius">20</DoubleVariable> <StringVariable Name="spawnEffect">none</StringVariable> <DoubleVariable Name="SpawnRateIncrease">1.03</DoubleVariable> <StringVariable Name="spawnMode">Progressive</StringVariable> <StringVariable Name="lootMode">Weighted</StringVariable> <DoubleVariable Name="progressModifier">2.5</DoubleVariable> </ObjectVariableComponent> <ScriptEngineComponent> <LuaModule Name="dynamic_spawn_controller_universal"> <Initializer> { TriggerSpawnTeamType = "Demon", TriggerDeathRadius = 30, TriggerChance = 0.1, TeamType = "Corruption1", SpawnKey = "Corruption1DynamicSpawner", HUDVars = { Title = "Pitiful Calamity", Description = "Kill the demons that are gathering around the pit." }, ProgressMessages = { "A low rumble can be heard coming from the pit.", nil, nil, "A demon emerges from the pit.", }, SpawnObjVars = { ["AI-StationedLeash"] = false, ["AI-LeashDistance"] = 20, ["AI-CanWander"] = true, } } </Initializer> </LuaModule> </ScriptEngineComponent> </ObjectTemplate>