Is there a crystal script?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Resu
Posts: 141
Joined: Tue Nov 10, 2015 12:09 am

Is there a crystal script?

Post by Resu »

Hey guys, I wonder, can you script a crystal use without having a crystal near by? With such a script its also possible to copy a crystal shard of healing from LoG2
Last edited by Resu on Mon Mar 18, 2024 4:08 pm, edited 1 time in total.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: I there a crystal script?

Post by Isaac »

What —specifically— do you mean by 'Crystal Use'?
Crystals heal the party, revive the dead, and auto-save the game, as well as deactivate (and reactivate) the crystal on a delay; also animate it and brighten and fade its luminance.

Are you visually faking a use of the crystal? IIRC the crystal's behavior in LoG1 is hard coded. I know of no way to manipulate it as you might a button. Perhaps minmay or one of the others know differently.

But it is possible to script a fake crystal entity... though it might be more involved than most would like.
User avatar
Resu
Posts: 141
Joined: Tue Nov 10, 2015 12:09 am

Re: I there a crystal script?

Post by Resu »

Well, I am especially interested in the revive the dead effect because it seems only to be available when using a crystal.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: I there a crystal script?

Post by Isaac »

The crystal's reviving the dead is effectively (if not actually) just the party heal command.

Code: Select all

Party:heal()
User avatar
Resu
Posts: 141
Joined: Tue Nov 10, 2015 12:09 am

Re: I there a crystal script?

Post by Resu »

oh really? :o

I will test that soon
Post Reply