Page 3 of 4

Re: [HELP] Healing Crystal Red and Green

Posted: Mon Feb 18, 2013 6:39 pm
by Neikun
As the first tester of this thing, I'm pretty freakin' impressed. Very easy to manipulate as well.

Re: [HELP] Healing Crystal Red and Green

Posted: Mon Feb 18, 2013 7:51 pm
by Komag
You guys are like the wizard crew!

Re: [HELP] Healing Crystal Red and Green

Posted: Tue Feb 19, 2013 10:26 am
by antti
Diarmuid wrote:So now we have a fully working crystal recreation, that even has the exact animation of the original, including crystals moving up/down and rotating around their axis. It's not just projectiles anymore, but an hybrid of an altar, a pit, a projectile, an item, ligthsources, timers & gratings. :shock: 8-)
Haha, you guys truly are crazy. Crazy and ingenious :lol:

Re: [HELP] Healing Crystal Red and Green

Posted: Tue Feb 19, 2013 4:27 pm
by Diarmuid
Komag wrote:You guys are like the wizard crew!
antti wrote:Haha, you guys truly are crazy. Crazy and ingenious :lol:
The LotNR chat channel is the Grimrock voodoo club, that's a known fact. :mrgreen:

Here's another teaser of how this is coming along. With Neikun's masterful tweaking, the copies are now next-to-perfect:

Image

Lots of colors coming, too...

Re: [HELP] Healing Crystal Red and Green

Posted: Wed Feb 20, 2013 12:08 am
by Grimfan
Now, I'm assuming you can't replicate the autosave function of normal healing crystals in game (it may be within your scripting powers or not, I don't know how hardcoded this element is)? If this is the case it would probably be best to tell potential modders of this problem/hurdle/shortcoming in the readme.

Also, how modifiable will these crystals be without breaking them? Can you have a red crystal that kills players or a green crystal that heals the party but also infects them with disease or a yellow crystal that requires the sacrifice of an object to work? I'm sure it's all possible, but what's the limit?

Of course you may have already thought about both these things. If so just ignore my comments and carry on as normal. ;)

The purple healing crystal is pretty. :)

Re: [HELP] Healing Crystal Red and Green

Posted: Wed Feb 20, 2013 3:59 am
by Diarmuid
Hi Grimfan,

No, autosave is indeed off the map I think, unless someone knows a trick to trigger that. As for customizing crystals, I have thought about it, of course.

I designed a way to allow novice-to-intermediate scripters to very easily put custom effects with those crystals. In the main script entity that controls crystals behavior (called crystalHandler), there will be a function as follows:

Code: Select all

function onCrystalClick(crystal)
	
	if crystal.color == "green" then
	
		party:heal()
		
	end
	
	if crystal.color == "pink" then
	
		party:heal()
		
	end
	
	[...]
	
end
All colors will have a healing function by default, but you'll be able to remove it and change it to something else, whatever you want. You'll also be able to get the crystal position if needed by crystal.level, crystal.x, crystal.y. You'll also be able to return false from the function to prevent the crystal from turning "off" when clicked. For example:

Code: Select all

	if crystal.color == "green" then
	
		local championAboveLevel5 = false
		
		for i = 0,3 do
			if party:getChampion(i):getLevel() >= 5 then
				championAboveLevel5 = true
			end
		end
		
		if championAboveLevel5 then
			party:heal()
		else
			hudPrint("You must have a champion with level 5 or higher in the party to use this crystal!")
			return false
		end
		
	end
I'll also provide a onCrystalReactivate(crystal) trigger, if ever you want to do something when the crystal turns back on after 2 minutes, or if you want to prevent it from reactivating under certain conditions by returning false.

Re: [HELP] Healing Crystal Red and Green

Posted: Thu Feb 28, 2013 1:14 am
by Neikun
I haven't forgotten about this, just got really distracted.
Here's a look at the first five custom colours.

Image

Re: [HELP] Healing Crystal Red and Green

Posted: Thu Feb 28, 2013 9:11 am
by Grimfan
I really do love the orange and the dark healing crystal. Very funky. Can't wait till these babies are out! :D

Re: [HELP] Healing Crystal Red and Green

Posted: Thu Feb 28, 2013 9:58 pm
by DeDy
Amazing, what should I do to get red and green Crystal in your dungeon?

Re: [HELP] Healing Crystal Red and Green

Posted: Thu Feb 28, 2013 10:56 pm
by Diarmuid
DeDy wrote:Amazing, what should I do to get red and green Crystal in your dungeon?
As soon as we're finished preparing the crystals, we'll release them on nexus as a pack to download, with instructions on how to set them up easily.