That looks great, definitely going to use it my new dungeon I am making now, Thank you Neikun your designs are always great!
I have an error on the particle file, not sure if its me or not. it says lua 147 Delving more into it is definitely is the particle system that is wrong as monster itself works fine when I take out particle link in LUA file.
I am new to lua scripting but slowly getting the hang of it as it is simular to PHP/HTML must close your brackets etc. But this is far beyond my lua knowledge and cannot find where the error is.
6 comments
It works now btw perfectly looks cool when it gets hit!
I have used a few of your other things and will give you full credit when I finally finish this new dungeon I am working on!
I actually don't get this error.
But after checking the released file, you are absolutely right.
To fix it without needing to install over again, select the entire defineParticleSystem[ hit_dirt,
and replace it with:
defineParticleSystem{
name = "hit_dirt",
emitters = {
{
spawnBurst = true,
maxParticles = 200,
sprayAngle = {0,40},
velocity = {1,4.5},
objectSpace = false,
texture = "mod_assets/textures/urgardian_textures/dirt_particle.tga",
frameRate = 40,
frameSize = 32,
frameCount = 40,
lifetime = {0.7,1.5},
colorAnimation = false,
color0 = {2.0, 2.0, 2.0},
color1 = {1.0, 1.0, 1.0},
color2 = {1.0, 0.5, 0.25},
color3 = {1.0, 0.3, 0.1},
opacity = 1,
fadeIn = 0.1,
fadeOut = 0.3,
size = {0.05, 0.17},
gravity = {0,-10,0},
airResistance = 0.1,
rotationSpeed = 2,
blendMode = "Additive",
clampToGroundPlane = true,
},
{
spawnBurst = true,
maxParticles = 30,
sprayAngle = {0,360},
velocity = {1,4},
objectSpace = false,
texture = "mod_assets/textures/urgardian_textures/dirt_particle2.tga",
frameRate = 30,
frameSize = 32,
frameCount = 40,
lifetime = {0.3,0.5},
color0 = {1, 1, 1},
opacity = 1,
fadeIn = 0.1,
fadeOut = 0.3,
size = {0.2, 0.4},
gravity = {0,0,0},
airResistance = 10,
rotationSpeed = 2,
blendMode = "Additive",
clampToGroundPlane = true,
},
-- glow
{
spawnBurst = true,
emissionRate = 1,
emissionTime = 0,
maxParticles = 1,
boxMin = {0,0,-0.1},
boxMax = {0,0,-0.1},
sprayAngle = {0,30},
velocity = {0,0},
texture = "assets/textures/particles/glow.tga",
lifetime = {0.5, 0.5},
colorAnimation = false,
color0 = {1.5, 1.5, 1.5},
opacity = 0.6,
fadeIn = 0.01,
fadeOut = 0.5,
size = {1.2, 1.2},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 2,
blendMode = "Additive",
}
}
}
I have an error on the particle file, not sure if its me or not. it says lua 147 Delving more into it is definitely is the particle system that is wrong as monster itself works fine when I take out particle link in LUA file.
I am new to lua scripting but slowly getting the hang of it as it is simular to PHP/HTML must close your brackets etc. But this is far beyond my lua knowledge and cannot find where the error is.
Kind regards
Karna
Eep D:
This is fixed now.