Page 1 of 2
[HELP] Unlimited Key uses?
Posted: Sun Oct 14, 2012 3:58 am
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?
Re: [HELP] Unlimited Key uses?
Posted: Sun Oct 14, 2012 4:03 am
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..
Re: [HELP] Unlimited Key uses?
Posted: Sun Oct 14, 2012 5:04 am
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.
Re: [HELP] Unlimited Key uses?
Posted: Sun Oct 14, 2012 11:49 am
by Komag
wow, that's elegant!
It totally deserves inclusion in the script repository
Re: [HELP] Unlimited Key uses?
Posted: Sun Oct 14, 2012 2:31 pm
by HaunterV
someone needs to come up with a key ring
Re: [HELP] Unlimited Key uses?
Posted: Sun Oct 14, 2012 2:52 pm
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.
Re: [HELP] Unlimited Key uses?
Posted: Sun Oct 14, 2012 7:34 pm
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.
Re: [HELP] Unlimited Key uses?
Posted: Thu Oct 18, 2012 8:43 am
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.
Re: [HELP] Unlimited Key uses?
Posted: Thu Oct 18, 2012 11:21 am
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.
Re: [HELP] Unlimited Key uses?
Posted: Thu Oct 18, 2012 11:35 am
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.