Difference between revisions of "NDMobileTemplates"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<p style="width:60%;margin: 0 auto">[[NewDawnHome|[Main]]] [[NDServerIndexTemplateMain|[Templates]]]</p> | <p style="width:60%;margin: 0 auto">[[NewDawnHome|[Main]]] [[NDServerIndexTemplateMain|[Templates]]]</p> | ||
− | <p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto"> | + | <p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Example Mobile Template</p> |
− | + | ||
− | <p style="width: 60%;margin: 0 auto"> | + | <p style="width: 60%;margin: 0 auto">Below is a sample mobile template file.</p> |
<div style="width:60%;margin: 0 auto"> | <div style="width:60%;margin: 0 auto"> | ||
<ObjectTemplate> | <ObjectTemplate> |
Latest revision as of 02:00, 5 December 2019
Example Mobile Template
Below is a sample mobile template file.
<ObjectTemplate> <ClientId>134</ClientId> <Name>Grizzly Bear</Name> <ScaleModifier>1</ScaleModifier> <SharedStateEntry name="BodyOffset" type="double" value="1.15"/> <MobileComponent> <BaseRunSpeed>0.9</BaseRunSpeed> <MobileType>Animal</MobileType> </MobileComponent> <ObjectVariableComponent> <DoubleVariable Name="BaseHealth">300</DoubleVariable> <StringVariable Name="MobileTeamType">Bear</StringVariable> <StringVariable Name="MobileKind">Animal</StringVariable> <DoubleVariable Name="HostileLevel">7</DoubleVariable> <BoolVariable Name="AI-Leash">False</BoolVariable> <BoolVariable Name="AI-RandomizeScale">False</BoolVariable> <BoolVariable Name="AI-CanUseCombatAbilities">false</BoolVariable> <BoolVariable Name="AI-ScaleToAge">False</BoolVariable> <BoolVariable Name="AI-CanFlee">True</BoolVariable> <DoubleVariable Name="Armor">46</DoubleVariable> <DoubleVariable Name="Attack">12</DoubleVariable> <DoubleVariable Name="BardingDifficulty">100</DoubleVariable> <BoolVariable Name="DoNotEquip">True</BoolVariable> <DoubleVariable Name="TamingDifficulty">59.1</DoubleVariable> <DoubleVariable Name="PetSlots">1</DoubleVariable> </ObjectVariableComponent> <ScriptEngineComponent> <LuaModule Name="ai_default_animal"> <Initializer> { Stats = { Str=40, Agi=30, Int=21, Wis=10, Wil=10 }, MobTraits = { }, Skills = { Brawling = 10, }, LootTables = { }, } </Initializer> </LuaModule> <LuaModule Name="animal_parts"> <Initializer> { MeatCount = 4, MeatType = "TenderMeat", AnimalParts = { { ResourceType="LeatherHide", RarityPct=100, Count=2 }, { ResourceType="CornSeed", RarityPct=5, Count=1 }, { ResourceType="SquashSeed", RarityPct=5, Count=1 }, { ResourceType="GreenLeafLettuceSeed", RarityPct=5, Count=1 }, { ResourceType="RedLeafLettuceSeed", RarityPct=5, Count=1 }, { ResourceType="ButtonMushroomSeed", RarityPct=5, Count=1 }, { ResourceType="MelonSeed", RarityPct=5, Count=1 }, }, } </Initializer> </LuaModule> </ScriptEngineComponent> </ObjectTemplate>