[HELP] Healing Crystal Red and Green

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: [HELP] Healing Crystal Red and Green

Post by Neikun »

As the first tester of this thing, I'm pretty freakin' impressed. Very easy to manipulate as well.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: [HELP] Healing Crystal Red and Green

Post by Komag »

You guys are like the wizard crew!
Finished Dungeons - complete mods to play
User avatar
antti
Posts: 688
Joined: Thu Feb 23, 2012 1:43 pm
Location: Espoo, Finland
Contact:

Re: [HELP] Healing Crystal Red and Green

Post 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:
Steven Seagal of gaming industry
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: [HELP] Healing Crystal Red and Green

Post 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...
Grimfan
Posts: 369
Joined: Wed Jan 02, 2013 7:48 am

Re: [HELP] Healing Crystal Red and Green

Post 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. :)
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: [HELP] Healing Crystal Red and Green

Post 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.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: [HELP] Healing Crystal Red and Green

Post by Neikun »

I haven't forgotten about this, just got really distracted.
Here's a look at the first five custom colours.

Image
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Grimfan
Posts: 369
Joined: Wed Jan 02, 2013 7:48 am

Re: [HELP] Healing Crystal Red and Green

Post by Grimfan »

I really do love the orange and the dark healing crystal. Very funky. Can't wait till these babies are out! :D
User avatar
DeDy
Posts: 132
Joined: Sun Oct 07, 2012 3:41 pm
Location: Brno, Czech Republic

Re: [HELP] Healing Crystal Red and Green

Post by DeDy »

Amazing, what should I do to get red and green Crystal in your dungeon?
Nightfall: First Contact – http://dedy.euweb.cz/nightfall.html
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: [HELP] Healing Crystal Red and Green

Post 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.
Post Reply