Legend of Grimrock
 
Create and download new dungeons, items, monsters, & environments
Use the Dungeon Editor to build entirely new adventures and challenges for other players to solve. Fill your dungeons with puzzles, traps, or even totally new items, monsters and environments with custom graphics and audio! Click here to learn more.
THE EVIL THAT IS AKU Jun 7, 2013 @ 5:47pm
Somethings wrong with this script... *Edit2* Fix'd!
...and I have no idea what it is , whenever I try to run the dungeon editor it keeps saying "mod_assets/scripts/monsters.lua.48: unexpected symbol near <eof>"

Here's the script (Its in my Monsters.Lua)

defineObject{
name = "cultist",
class = "Monster",
model = "mod_assets/cultist/models/monsters/cultist.fbx",
meshName = "goromorg_mesh",
animations = {
idle = "assets/animations/monsters/goromorg/goromorg_idle.fbx",
moveForward = "assets/animations/monsters/goromorg/goromorg_walk.fbx",
strafeLeft = "assets/animations/monsters/goromorg/goromorg_strafe_left.fbx",
strafeRight = "assets/animations/monsters/goromorg/goromorg_strafe_right.fbx",
turnLeft = "assets/animations/monsters/goromorg/goromorg_turn_left.fbx",
turnRight = "assets/animations/monsters/goromorg/goromorg_turn_right.fbx",
attack = "assets/animations/monsters/goromorg/goromorg_attack.fbx",
getHitFrontLeft = "assets/animations/monsters/goromorg/goromorg_get_hit_front_left.fbx",
getHitFrontRight = "assets/animations/monsters/goromorg/goromorg_get_hit_front_right.fbx",
getHitBack = "assets/animations/monsters/goromorg/goromorg_get_hit_back.fbx",
getHitLeft = "assets/animations/monsters/goromorg/goromorg_get_hit_left.fbx",
getHitRight = "assets/animations/monsters/goromorg/goromorg_get_hit_right.fbx",
fall = "assets/animations/monsters/goromorg/goromorg_get_hit.fbx",
},
--attackAnimSpeed = 1.7,
--moveAnimSpeed = 1.2,
--turnAnimSpeed = 1.3,
moveSound = "goromorg_walk",
footstepSound = "goromorg_footstep",
attackSound = "goromorg_attack",
hitSound = "goromorg_hit",
dieSound = "goromorg_die",
hitEffect = "hit_dust",
capsuleHeight = 0.8,
capsuleRadius = 0.25,
collisionRadius = 0.8,
health = 200, -- goromorg shield is on top of this
sight = 2,
seeInvisible = false,
allAroundSight = false,
attackPower = 20,
protection = 0,
rangedAttack = { 45, "lightning_bolt_greater", 25, "ice_shards", 20, "fireball_greater", 10, "poison_bolt" },
coolDown = { 3, 4 },
movementCoolDown = 1.5,
exp = 300,
healthIncrement = 50,
brain = "Ranged",

*Edit: never post anything in the forums when you're working on 4 hours sleep, monsters.lua and materials.lua end up looking pretty similar :P
*Edit2: Fixed! turns out there wasn't a "}" at the end of the script, and that ends the script.
Last edited by THE EVIL THAT IS AKU; Jun 8, 2013 @ 7:45am
Showing 1-3 of 3 comments
< >
LocalFire Jun 8, 2013 @ 5:05am 
The error is saying that the fault is in the monsters.lua file not the materials.lua file

and I think the 48 is the line that contains the error
THE EVIL THAT IS AKU Jun 8, 2013 @ 6:46am 
Originally posted by Aggresive-russian:
The error is saying that the fault is in the monsters.lua file not the materials.lua file

and I think the 48 is the line that contains the error

Ah, thanks. totally derped there, I meant to post the monsters.lua.
Sleep deprivation is a ♥♥♥♥♥.

Turns out it was line 48, forgot to add a "}" to end the code, cheers!
da B man Jun 27, 2013 @ 2:59pm 
Wait, this game takes FBX files?! SWEET! Ima have to tinker once I get a little break from work and import some sweet models xD Cheers! Code looks very straight forward though, nicely done xD
Showing 1-3 of 3 comments
< >
Per page: 15 30 50