Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Here is the new crystal design that I will implement though out the set. I darkened the area where they attach to the rock and added a nice lava like color to the rest of it. Hope this looks a little better
Maybe the biggest ones are a bit too big? From the picture they seem to be very huge...
THOM formaly known as tschrage _______________________________________________ My MOD (LoG1):Castle RingfortThread My MOD (LoG2):Journey To JusticeThread | Download
They look stunning!
Could be cool placed where land meets lava too?
Im guessing you may have defined the red crystals as their own separate objects for folk to place as they like
(hopefully that doesn't sound too presumptuous)
Akroma
akroma222 wrote: ↑Sun Jul 21, 2019 10:23 am
They look stunning!
Could be cool placed where land meets lava too?
Im guessing you may have defined the red crystals as their own separate objects for folk to place as they like
(hopefully that doesn't sound too presumptuous)
Akroma
I like the idea of having some that meet the lava, ill look into that. Yes the red crystals will be placeable for the ceiling and floor.
I have a question about a script component, I was wondering if there is a way to factor in elevation to this:
{
class = "Null",
onInit = function(self)
local x = self.go.x
local y = self.go.y
local facing = self.go.facing
local level = self.go.level
local fx,fy = getForward(facing)
local rx,ry = getForward((facing+1)%4)
do
local x = self.go.x + fx
local y = self.go.y + fy
if x >= 0 and y >= 0 and x < 32 and y < 32 then
self.go.map:setAutomapTile(x, y, 4) -- rocky wall
end
end
--destroy wall slopes
for yy=-1,1 do
for xx=-1,1 do
local x = x + rx * xx + fx * yy
local y = y + ry * xx + fy * yy
if x >= 0 and y >= 0 and x < 32 and y < 32 then
for e in self.go.map:entitiesAt(x, y) do
if e.name == "rc_wall_slope"
or e.name == "rc_edge_support_01"
or e.name == "rc_edge_support_02"
or e.name == "rc_edge_support_03"
or e.name == "rc_edge_support_04"
or e.name == "rc_edge_support_01b"
or e.name == "rc_edge_support_02b"
or e.name == "rc_edge_support_03b"
or e.name == "rc_edge_support_04b"
then e:destroy()
end
end
end
end
end
end
},
I want to be able to destroy objects above and below, this only works on the objects current elevation.
Isaac wrote: ↑Tue Jul 23, 2019 12:41 am
How exactly is this component used?
I use it to destroy objects around a particular asset, such as stairs, chasms, contraptions etc. The way Red Cave is set up, some details stick out and over other things, so I have that component on some objects to automatically destroy them so you wont have worry about it. Its a small thing for me to have this destroy objects on a certain elevation, just wanted to see if it was easily possible to add, if its more complicated then I'm cool with out it .
That's what I had thought. I haven't scrutinized the script yet. I asked because I made a test map, and defined my own objects named "rc_wall_slope", "rc_edge_support_01" ,"rc_edge_support_02", "rc_edge_support_03", "rc_edge_support_04", "rc_edge_support_01b", "rc_edge_support_02b", "rc_edge_support_03b", and "rc_edge_support_04b".
I then placed my test objects on the map, each having the Null component (and even placed on the same tiles as the RC assets), and nothing happened. I then added a print(e.name) statement just before the e.destroy() statement, and nothing printed.
Isaac wrote: ↑Tue Jul 23, 2019 3:59 am
That's what I had thought. I haven't scrutinized the script yet. I asked because I made a test map, and defined my own objects named "rc_wall_slope", "rc_edge_support_01" ,"rc_edge_support_02", "rc_edge_support_03", "rc_edge_support_04", "rc_edge_support_01b", "rc_edge_support_02b", "rc_edge_support_03b", and "rc_edge_support_04b".
I then placed my test objects on the map, each having the Null component (and even placed on the same tiles as the RC assets), and nothing happened. I then added a print(e.name) statement just before the e.destroy() statement, and nothing printed.
entitiesAt(x,y) includes all elevations.
Yep your right hahaha, again I'm just stupid lol. I had it on the wrong object." Face Palm"
I started putting together some small crystal beds. I Think Ill have 2 of them, a large bed (2x2 tiles) and a small bed(1x1 tile). I finished the 2x2 bed, have a look.
I will have some larger crystals in a bed format too.
I do have the ceiling crystal finished.
Oh I almost forgot the lava edge extras I created. These are extra rounded edges and a side edge to put in your lava to give it a less squarish feeling. I also added a lava window so to speak, to add to the environment.