I removed the experience line from this standard ice_guardian taken directly from default assets.
Code: Select all
defineObject{
baseObject = "base_monster",
name = "ice_guardian1",
components = {
{
name = "model",
class = "Model",
storeSourceData = true,
model = "assets/models/monsters/ice_guardian.fbx"
},
{
animations = {
fall = "assets/animations/monsters/ice_guardian/ice_guardian_get_hit_front_left.fbx",
attack = "assets/animations/monsters/ice_guardian/ice_guardian_attack_close.fbx",
getHitFrontLeft = "assets/animations/monsters/ice_guardian/ice_guardian_get_hit_front_left.fbx",
rangedAttack = "assets/animations/monsters/ice_guardian/ice_guardian_attack_far.fbx",
turnRight = "assets/animations/monsters/ice_guardian/ice_guardian_turn_right.fbx",
getHitRight = "assets/animations/monsters/ice_guardian/ice_guardian_get_hit_right.fbx",
getHitFrontRight = "assets/animations/monsters/ice_guardian/ice_guardian_get_hit_front_right.fbx",
strafeRight = "assets/animations/monsters/ice_guardian/ice_guardian_strafe_right.fbx",
getHitBack = "assets/animations/monsters/ice_guardian/ice_guardian_get_hit_back.fbx",
moveForward = "assets/animations/monsters/ice_guardian/ice_guardian_walk.fbx",
turnLeft = "assets/animations/monsters/ice_guardian/ice_guardian_turn_left.fbx",
idle = "assets/animations/monsters/ice_guardian/ice_guardian_idle.fbx",
getHitLeft = "assets/animations/monsters/ice_guardian/ice_guardian_get_hit_left.fbx",
strafeLeft = "assets/animations/monsters/ice_guardian/ice_guardian_strafe_left.fbx"
},
class = "Animation",
name = "animation",
currentLevelOnly = true
},
{
hitSound = "ice_guardian_hit",
health = 500,
immunities = {
"sleep",
"blinded"
},
meshName = "ice_guardian_mesh",
capsuleRadius = 0.3,
deathEffect = "death_icy",
protection = 10,
resistances = {
cold = "absorb",
fire = "weak"
},
class = "Monster",
flying = true,
hitEffect = "hit_ice",
traits = {
"elemental"
},
evasion = 10,
dieSound = "ice_guardian_die",
capsuleHeight = 0.6,
name = "monster",
collisionRadius = 0.8
},
{
sight = 5,
seeInvisible = true,
class = "IceGuardianBrain",
name = "brain",
morale = 100
},
{
animationSpeed = 1.3,
cooldown = 3,
sound = "ice_guardian_walk",
class = "MonsterMove",
name = "move"
},
{
animationSpeed = 1.5,
class = "MonsterTurn",
name = "turn",
sound = "ice_guardian_walk"
},
{
sound = "ice_guardian_walk",
class = "MonsterChangeAltitude",
name = "changeAltitude"
},
{
animation = "attack",
onAttack = function() print('Cannot Scrape Functions'); end,
cooldown = 5,
sound = "ice_guardian_attack",
class = "MonsterAttack",
name = "basicAttack",
attackPower = 30
},
{
animationSpeed = 1.5,
shootProjectile = "frostbolt",
attackType = "projectile",
class = "MonsterAttack",
animation = "rangedAttack",
cooldown = 3,
sound = "ice_guardian_attack",
name = "rangedAttack",
attackPower = 30
},
{
name = "light",
offset = {
0,
0.5,
0.25,
0
},
color = {
0.5,
0.8,
1.7,
0
},
parentNode = "light1",
fillLight = true,
class = "Light",
range = 4,
brightness = 5
},
{
rotation = {
0,
0,
90,
0
},
parentNode = "light1",
class = "Particle",
name = "particle",
particleSystem = "ice_guardian"
}
}
}