Keyinfo / Teidenkeyinfo
From LMHack
More actions
Original Author(s)
weirdboo
Description
Documentation on the appropriately named jump table keyinfo. It can only spawn the actors key01-key05 and ed07key. teidenkeyinfo is loaded during the blackout instead of keyinfo.
keyinfo and teidenkeyinfo can be edited with Jumpah.
| Field | Type | Proper Values | Description |
|---|---|---|---|
| name | String | key01, key02, key03, key04, key05, and ed07key. | The name of the key to spawn. key01 is the normal key, key02 is the heart key, key03 is the club key, key04 is the diamond key, and key05 is the spade key. ed07key is the cutscene model used in the Foyer key ghost event (event07). |
| create_name | String | Must match string_arg0 in an observerinfo entry. If not, then simply put ----. | Checks if a global string output by an observerinfo entry matches the string given. If there's a match, the key will be allowed to spawn. Note: if you don't want the key to spawn from an observer, then you must use ---- as the create_name. |
| CodeName | String | Any string. | This string will allow the key to be called with event script tags. |
| pos_x | Float | Coordinates within the room's bounding box. | These are the spawn coordinates for the key. Note that appear_type 4 will make the key spawn about 200 units higher than the original pos_y value. |
| pos_y | Float | ||
| pos_z | Float | ||
| dir_x | Float | -360.000000 < n < 360.000000 | The degree (n) of x-axis rotation for the key. Negative values tilt backwards, while positive values tilt forwards. |
| dir_y | Float | The degree (n) of y-axis rotation for the key. Negative values turn left, while positive values turn right. | |
| dir_z | Float | The degree (n) of z-axis rotation for the key. Negative values tilt left, while positive values tilt right. | |
| scale_x | Float | N/A | Useless. |
| scale_y | Float | ||
| scale_z | Float | ||
| OpenDoorNo | Integer | If it's key01-key05, then a valid door number in the map. | Since keyinfo keys aren't defined in iteminfotable, the door number that the key unlocks needs to be defined here. |
| appear_flag | Integer | 0-255. | This flag will allow the key to spawn. |
| disappear_flag | Integer | 0-255. | This flag will prevent the key from spawning. |
| cond_type | Integer | 0, 2, 5, 9-13, 15, and 16. | Cond Types |
| appear_type | Integer | If it's key01-key05, then 0, 3, or 4. | If a value of 4 is given, then the key will spawn above its coordinates once created, hover for around a second, and then fall directly downwards. If a value of 0 or 3 is given, then the key will spawn normally (like characterinfo). |
| invisible | Boolean | 0 or 1. | If set to 0, the actor will be visible. If set to 1, the actor will be invisible. Note that appear_type 4 will force the key to become visible once it spawns. |