Actions

Documentation:generatorinfo

From LMHack

Author(s)

weirdboo

Description

Documentation on the jump table generatorinfo. This file deals with generator type actors that can spawn small enemies, elements, or even certain Portrait Ghosts.

generatorinfo can be edited with Jumpah.

Field Type Proper Values Description
name String generator This field must be set to "generator" for the entry to function properly.
type String Generator actor name. Generator Types
path_name String Must match a filename in the path folder of the map archive. If not, then simply put (null). Makes the generator use a path file with the string name specified. This path must be inside the path folder of the map archive, and also must be properly defined in railinfo to prevent crashes.
CodeName String Any string. This string will allow the generator to be called with event script tags, specifically <GENON> and <GENOFF>.
pos_x Float Coordinates within the room's bounding box. These are the spawn coordinates for the generator.
pos_y Float
pos_z Float
dir_x Float -360.000000 < n < 360.000000 The degree (n) of x-axis rotation for the generator. Negative values tilt backwards, while positive values tilt forwards.
dir_y Float The degree (n) of y-axis rotation for the generator. Negative values turn left, while positive values turn right.
dir_z Float The degree (n) of z-axis rotation for the generator. Negative values tilt left, while positive values tilt right.
scale_x Float N/A Useless.
scale_y Float
scale_z Float
room_no Integer map0, map5, map6, map7, and map8: 0-3. The room number that the generator should spawn in.
map1, map3, map4, map9, map10, map11, and map12: 0.
map2: 0-71.
appear_flag Integer 0-255. This flag will allow the generator to spawn.
disappear_flag Integer 0-255. This flag will prevent the generator from spawning.
appear_time Integer Any nonnegative integer. The amount of time (in frames) that it should take to spawn each actor from the generator.
max_enemy_once Integer Any nonnegative integer. The maximum number of actors the generator is allowed to spawn at once.
max_enemy Integer Any nonnegative integer. The total number of actors the generator is allowed to spawn.
arg0 Integer Any integer. Generator Types
arg1 Integer Any nonnegative integer.
arg2 Integer -360 < n < 360
arg3 Integer Any nonnegative integer.
arg4 Integer N/A
arg5 Boolean 0 or 1.
arg6 Integer N/A
arg7 Integer N/A
arg8 Boolean 0 or 1.
stay Boolean 0 or 1. (WIP) Something to do with keeping the generator on the proper path while switching rooms. This is only used by main Boo (telesa) generator that loads in the Foyer.