secret button for crystal mine

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!
Post Reply
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

secret button for crystal mine

Post by bongobeat »

I figured how to add a secret button in the mine tileset: for the mine I think it need a completely new model, but for the crystal mine tileset, it's easy to make a custom button:

I ve modified a castle button, and use the rune particle to show the "invisible" button on a crystal mine pillar:

here what it gives:
you can see small rune particles. On the faceview it is hard to see in the screenshot, but you saw it better in the game.
SpoilerShow
Image
SpoilerShow
Image
it is relatively well hiden, as a secret button should be.
the object definition:
SpoilerShow

Code: Select all

defineObject{
	name = "mine_secret_button_crystal_pillar",
	baseObject = "wall_button",
	components = {
		{
			class = "Model",
			model = "assets/models/env/castle_wall_button.fbx",
			offset = vec(-0.16,0.78,0.335),
		},
		{
			class = "Particle",
			particleSystem = "runic_2",
			offset = vec(-0.16,0.78,0.335),
		},
		{
			class = "Light",
			offset = vec(-0.16,0.78,0.335),
			range = 3,
			color = vec(0.5, 1.0, 2.5),
			brightness = 3,
			fillLight = true,
		},
		{
			class = "Clickable",
			offset = vec(-0.16,0.78,0.335),
			size = vec(0.25, 0.25, 0.25),
			--debugDraw = true,
		},
	},
	replacesWall = false,
}
the particle: (it is the same particle than the castle button but without glow, stars and fog)
SpoilerShow

Code: Select all

defineParticleSystem{
	name = "runic_2",
	emitters = {
	
		-- runes
		{
			emissionRate = 4,
			emissionTime = 0,
			maxParticles = 100,
			boxMin = {-0.15, -0.1,-0.1},
			boxMax = { 0.15,  0.1, 0.2},
			sprayAngle = {0,360},
			velocity = {0.05,0.1},
			texture = "assets/textures/particles/magic_runes.tga",
			frameRate = 2,
			frameSize = 32,
			frameCount = 9,
			lifetime = {1,2},
			colorAnimation = false,
			color0 = {1, 1, 1},
			opacity = 1,
			fadeIn = 0.1,
			fadeOut = 0.1,
			size = {0.05, 0.075},
			gravity = {0,0,0},
			airResistance = 1,
			rotationSpeed = 1,
			blendMode = "Additive",
			depthBias = 0.1,
			objectSpace = true,
		},
	}
}
you have to place a crystal pillar (or even on a crystal wall, as long there is some glowing crytal behind), the orientation should be 1.
then uncheck the model in the component description, or you will see a castle wall button.
SpoilerShow
Image
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Mal85
Posts: 103
Joined: Fri Nov 16, 2012 10:56 am

Re: secret button for crystal mine

Post by Mal85 »

Nice! I am pretty sure I would just walk right past those sexy little crystal switches. I have a feeling I may end up using quite a few of your assets and scripts by the end of my dungeon Bongobeat. ^^ Very Cool.
User avatar
Ciccipicci
Posts: 154
Joined: Mon Oct 08, 2012 12:55 am

Re: secret button for crystal mine

Post by Ciccipicci »

Thanks!
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: secret button for crystal mine

Post by bongobeat »

I suppose that it has to be used with parcimony, or it can be awfull to check every crystal.
Here I suppose it is ok, as it is on the same area of a secret place.

Maybe the rune particle should be modified to something bigger, or a difference of color, that it can be found more easyly.
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: secret button for crystal mine

Post by Isaac »

bongobeat wrote:I figured how to add a secret button in the mine tileset: for the mine I think it need a completely new model, but for the crystal mine tileset, it's easy to make a custom button...
It really neat... in fact... I don't see it. Is this to be a ~more difficult to find~ secret button for the mine set? To compliment the existing secret button that is already in the mines?
it is relatively well hiden, as a secret button should be.
Actually... A real secret button should be well hidden, but in the game, I do think that all buttons should be visible to the eye when looked at; just that the secret buttons should be easy to miss in passing. Having to actually check the stones of a hundred identical walls would quickly become tedium... a completely concealed button should only be used in tightly confined space with a suspicious dead-end, or no visible exit.
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: secret button for crystal mine

Post by Drakkan »

so simple and cool solution, thanks !
Breath from the unpromising waters.
Eye of the Atlantis
Post Reply