[HELP] Unlimited Key uses?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Kamun
Posts: 6
Joined: Mon Apr 16, 2012 8:43 am

[HELP] Unlimited Key uses?

Post by Kamun »

I have a question - I am developing the Legend of Grimkeep campaign ( viewtopic.php?f=14&t=1654 ), and I need to be able to use one key, for essentially forever, through a series of locks. I need to be able to find just one Brass Key, and use it on X amounts of Brass Key Locks. How can I do this?
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: [HELP] Unlimited Key uses?

Post by Neikun »

I would think of an on use, spawn item in inventory.
I wonder if you can alter a lock to behave more like a button pushed by a specific object though..
"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!
Lmaoboat
Posts: 359
Joined: Wed Apr 11, 2012 8:55 pm

Re: [HELP] Unlimited Key uses?

Post by Lmaoboat »

This one's pretty simple, actually.

Code: Select all

function keyuse()
	setMouseItem(spawn"ornate_key")
end
Just connect the lock to this script, and replace "ornate_key" with whatever key you want to use.
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: [HELP] Unlimited Key uses?

Post by Komag »

wow, that's elegant!

It totally deserves inclusion in the script repository 8-)
Finished Dungeons - complete mods to play
User avatar
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Re: [HELP] Unlimited Key uses?

Post by HaunterV »

someone needs to come up with a key ring
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
Szragodesca
Posts: 59
Joined: Sun Oct 14, 2012 7:13 am

Re: [HELP] Unlimited Key uses?

Post by Szragodesca »

What would it be, an item with an attached list that adds whatever keys you pick up to the keyring, and then checks to see if the key is on that list when you use it on a lock? Doesn't seem incredibly difficult in theory, but I'm not exactly "in practice" yet. :lol:
Lmaoboat
Posts: 359
Joined: Wed Apr 11, 2012 8:55 pm

Re: [HELP] Unlimited Key uses?

Post by Lmaoboat »

Maybe it would be a container that, when you put a key in, adds it self as a valid key for that key's respective locks.
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: [HELP] Unlimited Key uses?

Post by msyblade »

Add a simple spawn key spell to your scripts with a difficult rune pattern.Once they find the key, include a scroll explaining the rune pattern to summon it at will.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Szragodesca
Posts: 59
Joined: Sun Oct 14, 2012 7:13 am

Re: [HELP] Unlimited Key uses?

Post by Szragodesca »

msyblade wrote:Add a simple spawn key spell to your scripts with a difficult rune pattern.Once they find the key, include a scroll explaining the rune pattern to summon it at will.
My only complaint with that idea is that it will tie up spell combinations just to do what the script posted above does automatically, give you a key when you still have locks that need it.
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: [HELP] Unlimited Key uses?

Post by Grimwold »

Assuming you do use the re-spawn key in hand script, If you care how many times a key is used, you could have a counter with an initial value of the number of uses. every time it is used decrement the counter and if the value is not 0 respawn the key. When the counter activates print something like "the key finally breaks" and do-not respawn it.
Post Reply