Hammerwatch Forum

Custom mapping and Mods => Editor Discussion => Topic started by: KptnKook on August 29, 2013, 01:30:43 AM

Title: Basic (door)Key mechanism?
Post by: KptnKook on August 29, 2013, 01:30:43 AM
I realized, that i don't even know how to open a door, after taking the bonus_key. how do i trigger, toggle or set this up?
i don't know how to detect that a key was picked up.  ???

thanks
Title: Re: Basic (door)Key mechanism?
Post by: Linaru on August 29, 2013, 10:02:21 AM
doors are automatically opened by the corresponding key when you walk into them its hard coded.
it is possible to make custom keys using this string:
Code: [Select]
<entry name="type"><int>4</int></entry>
however there is no way to display the new key on the hud so when i do this i apply and on item destroyed trigger that activates some text.
Title: Re: Basic (door)Key mechanism?
Post by: Myran on August 29, 2013, 01:31:07 PM
doors are automatically opened by the corresponding key when you walk into them its hard coded.
it is possible to make custom keys using this string:
Code: [Select]
<entry name="type"><int>4</int></entry>
however there is no way to display the new key on the hud so when i do this i apply and on item destroyed trigger that activates some text.
You can actually show them in the hud if you are willing to modify it, take a look at line 52-54 in the menus/gui/hud.xml.
Title: Re: Basic (door)Key mechanism?
Post by: KptnKook on August 29, 2013, 03:44:52 PM
great.. i am so willing to do this!   8)

i am also willing to add a new "rope" item, which can be used on some occasions. it should be seen in the hud, also.