crystal pillar with crystal shard

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

crystal pillar with crystal shard

Post by bongobeat »

You alway wanted to "mine" some crystal shards?
I have tried something with altars.
I dont know how, but certainly there is a script which can do better without doing new models, and show a more realistic visual.

here you have 2 crystal pillars:
I'm not very happy with the visual of the crystal shards placement, like if they were on the ground, but that's the altar "restriction".
the left one is a standart crystal pillar, the right one, made of 2 altars, has 2 crystals shards of healing that can be picked up: (1 on the right of the pillar and the other on the left)
SpoilerShow
Image
how they had to be placed in the editor: (don't forget to uncheck the "clickable" box, or you can place items on the surface)
the rock function is a sound that you hear when picking the crystal.
the standart mine_crystal_pillar is on the left
SpoilerShow
Image
the code for the 2 objects:
SpoilerShow

Code: Select all

	defineObject{
		name = "mine_pillar_crystal_altar_north_right",
		baseObject = "base_altar",
		components = {
			{
			class = "Surface",
			offset = vec(-0.3,0.54,0.6),
			size = vec(0.1, 0.1, 0.1),
			},
		},
	}
	defineObject{
		name = "mine_pillar_crystal_altar_north_left",
		baseObject = "base_altar",
		components = {
			{
			class = "Surface",
			offset = vec(0.3,1.5,0.7),
			size = vec(0.1, 0.1, 0.1),
			},
		},
	}
I have modified the surface height of the first object from 0.57 to 0.54, but after I have taking the screenshot. So actually, the crystal shard is a little lower.
(I was too lazy to make a new screenshot :lol: )
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: crystal pillar with crystal shard

Post by Drakkan »

seems fine to me. Can you probably define some "mini" healing shards to be mined, which will for example heal only some hp to the party. Mining whole healing shards is quite OP to me (but depends of dungeon layout of course) :)
thanks for sharing
Breath from the unpromising waters.
Eye of the Atlantis
Post Reply