Re: Ask a simple question, get a simple answer
Posted: Thu Jun 23, 2016 9:50 pm
What exactly is your intended use of the test?zimberzimber wrote:Looks useful, except I have absolutely no idea on how to use tables.![]()
Help please?
Official Legend of Grimrock Forums
http://grimrock.net/forum/
What exactly is your intended use of the test?zimberzimber wrote:Looks useful, except I have absolutely no idea on how to use tables.![]()
Help please?
Here you gozimberzimber wrote:Looks useful, except I have absolutely no idea on how to use tables.![]()
Help please?
viewtopic.php?f=22&t=7913Eleven Warrior wrote:Hi all.
Has anyone got these objects with the Scrips, Models and Textures: ball_chain and trap_trigger_pendulum?
They were on the forum ages ago and I did have them but, had hard drive problems.
Code: Select all
defineSound{
name = "worm_attack_DM",
filename = "mod_assets/monsters/worm/DM_worm.wav",
loop = false,
volume = 1,
minDistance = 1,
maxDistance = 4,
}
defineObject{
name = "worm",
baseObject = "base_monster",
tags = {"monster" },
components = {
{
class = "Model",
model = "mod_assets/monsters/worm/leech_worm.fbx",
storeSourceData = true,
},
{
class = "Animation",
name = "animation",
currentLevelOnly = true,
animations = {
idle = "assets/animations/monsters/snail/snail_idle.fbx",
moveForward = "assets/animations/monsters/snail/snail_walk.fbx",
turnLeft = "assets/animations/monsters/snail/snail_turn_left.fbx",
turnRight = "assets/animations/monsters/snail/snail_turn_right.fbx",
attack = "assets/animations/monsters/snail/snail_attack.fbx",
getHitFrontLeft = "assets/animations/monsters/snail/snail_get_hit_front_left.fbx",
getHitFrontRight = "assets/animations/monsters/snail/snail_get_hit_front_right.fbx",
getHitBack = "assets/animations/monsters/snail/snail_get_hit_back.fbx",
getHitLeft = "assets/animations/monsters/snail/snail_get_hit_left.fbx",
getHitRight = "assets/animations/monsters/snail/snail_get_hit_right.fbx",
fall = "assets/animations/monsters/snail/snail_get_hit_front_left.fbx",
},
},
{
class = "Monster",
meshName = "leech_worm_mesh",
health = 90,
evasion = 0,
protection = 10,
exp = 120,
traits = { "animal" },
hitEffect = "hit_goo",
capsuleHeight = 0.2,
capsuleRadius = 0.7,
hitSound = "snail_hit",
dieSound = "snail_die",
resistances = { ["poison"] = "absorb", ["fire"] = "vulnerable" },
immunities = { "sleep", "stunned", "blinded", "burning", "poison" },
},
{
class = "MeleeBrain",
name = "brain",
sight = 2.5,
},
{
class = "MonsterMove",
name = "move",
sound = "snail_walk",
resetBasicAttack = false,
turnDir = 0,
cooldown = 6,
},
{
class = "MonsterTurn",
name = "turn",
sound = "snail_walk",
cooldown = 2,
},
{
class = "MonsterAttack",
name = "basicAttack",
-- sound = "snail_attack",
sound = "worm_attack_DM", --works only, if new sound is defined
cooldown = 3,
attackPower = 6,
animationSpeed = 1,
animation = "attack",
causeCondition = "poison",
conditionChance = 17,
},
}
}
defineMaterial{
name = "leech_worm_mat",
diffuseMap = "mod_assets/monsters/worm/leech_worm_diffuse.tga",
specularMap = "mod_assets/monsters/worm/leech_worm_spec.tga",
normalMap = "mod_assets/monsters/worm/leech_worm_normal.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 200, --25
depthBias = 0,
}
Code: Select all
defineAnimationEvent{
animation = "assets/animations/monsters/snail/snail_attack.fbx",
event = "attack",
frame = 13,
}