[HELP] Unlimited Key uses?
[HELP] Unlimited Key uses?
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?
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 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
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!
Re: [HELP] Unlimited Key uses?
This one's pretty simple, actually.
Just connect the lock to this script, and replace "ornate_key" with whatever key you want to use.
Code: Select all
function keyuse()
setMouseItem(spawn"ornate_key")
end
Re: [HELP] Unlimited Key uses?
wow, that's elegant!
It totally deserves inclusion in the script repository
It totally deserves inclusion in the script repository
Finished Dungeons - complete mods to play
Re: [HELP] Unlimited Key uses?
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
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
-
- Posts: 59
- Joined: Sun Oct 14, 2012 7:13 am
Re: [HELP] Unlimited Key uses?
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?
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?
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
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
-
- Posts: 59
- Joined: Sun Oct 14, 2012 7:13 am
Re: [HELP] Unlimited Key uses?
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.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.
Re: [HELP] Unlimited Key uses?
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.
Puzzle Frameworks - http://www.grimrock.net/forum/viewtopic.php?f=14&t=4564
Magic Pack - https://www.nexusmods.com/grimrock/mods/70
Area of Effect Spell System - http://www.grimrock.net/forum/viewtopic ... 150#p44382
Magic Pack - https://www.nexusmods.com/grimrock/mods/70
Area of Effect Spell System - http://www.grimrock.net/forum/viewtopic ... 150#p44382