Page 1 of 1

crystal pillar with crystal shard

Posted: Tue Jan 13, 2015 7:11 pm
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: )

Re: crystal pillar with crystal shard

Posted: Tue Jan 13, 2015 8:19 pm
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