[94] ACS_LockedExecute key messages
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- Chris
- Posts: 2971
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
I wouldn't say it's a bug. ACS_LockedExecute isn't limited to just doors, so if you apply it to, say, a computer terminal, it'd look weird if it said "door". Although I can see the card/skull part of the message coming back. If you need comething more specific than "object" use the CheckInventory in your script to show your message and return.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
And here is a ZDoomified version of it. I hope it is of any use!Graf Zahl wrote:The key system I developed is fully customizable so it would only involve adding the Heretic key names to the lock definition so they continue to work.
As for the messages, they are defined within the lock itself so with a proper definition of all locks nothing would be messed up.
Here's an example (for compatibility this would have to be extended to read messages from the LANGUAGE lump by default):
Some explanation:Code: Select all
Lock 6 { YellowSkull Message "You need a yellow skull to open this door" RemoteMessage "You need a yellow skull to activate this object" Mapcolor 255 255 0 } Lock 129 { Any { RedCard RedSkull } Message "You need a red key to open this door" RemoteMessage "You need a red key to activate this object" Mapcolor 255 0 0 }
-The lock number is the number to be used in the line special.
-There is one 'door' message and one 'remote' message for each lock.
-The map color is for the automap (I never checked whether ZDoom supports colored doors on the map. PrBoom does.)
-If you specify a list of keys in Any{} you need one of them
-You can specify as many keys/groups as you want. If you do so you need every single key and one out of each group.
For your Heretic key all that needed to be done is to add the Heretic key to all affected locks (can be done by default without problems and since all messages can be explicitly stated there should be no messing up - unless somebody uses altered messages through Dehacked with Boom's single key locks - but so far I haven't seen any WAD that is doing so.

BTW: Did I read P_CheckKeys correctly that it did not print a proper message for the 'any key' locks?
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place