Release 2.2024 New features:continuescore{1/2}
Goes in levels.txt on a per set basis.
1 = score is reset to 0 when you continue.
2 = 1 point is added to your score when you continue!
subject_to_minz {int} - Model header command. Toggles minimum Z bounding for model on playfield. Available to script methods getentityproperty and changeentityproperty as "subject_to_minz".
{int} - Default 1 for all except panel type models.
- 1: Entity cannot move beyond current minimum Z boundry.
- 0: Entity can move freely beyond current minium Z boundry.
subject_to_maxz {int} - Model header command. Toggles maximum Z bounding for model on playfield. Available to script methods getentityproperty and changeentityproperty as "subject_to_maxz".
{int} - Default 1 for all except panel type models.
- 1: Entity cannot move beyond current maximum Z boundry.
- 0: Entity can move freely beyond current maximum Z boundry.
instantitemdeath {int} - Model header command, set to 1 to remove the pause before an item commits suicide after being grabbed.
2.2001+mpset {mp} {stable type} {stable} {recover rate} {drop rate} {charge rate}
- Model header command. Replaces mp, chargerate, and mprate (left in for backward compatibility). Also adds ability to set up different types of “rubber band” style mp gauges.
{mp} – Maximum MP for model (same as old “mp” command).
{stable type} – MP recovery type.
- 0 (default): Entity continuously recovers mp over time.
- 1: Entity recovers mp over time, up to {stable}.
- 2: Entity loses mp over time, down to {stable}.
- 3: Entity recovers mp over time if below {stable}, and looses mp over time if above {stable}
{stable} – Target MP amount (see {stable type}). Has no effect if {stable type} is 0.
{recover rate} – Rate mp recovers over time.
{drop rate} – Rate mp is lost over time.
{charge rate} – Rate mp is recovered while entity is charging.
2.2002+fontmonospace {1} {2} {3} {4} {5} {6} {7} {8}
- Menu.txt command. Sets whether font# is monospaced.
- 0 (default): Variable width font.
- 1: Monospaced.
Script Updates:2.2023+- "trymove" added to changeentityproperty:
1 - common_trymove
2 - player_trymove
Anything else - NULL
2.2017+- setmusicvolume(int left, int right) - sets music volume, left and right are combined on windows, they might be actual separate channels on consoles, untested
- pausemusic(int toggle) - pausemusic(0) unpauses, pausemusic(1) pauses
2.1998+- ondeathscript {path} - Entity script. Executed when entity is killed by attack (not from damage on landing), after knockdown and velocity values are applied. Adds following local variables:
self - Calling entity.
attacker - Killing entity.
damage - Damage from killing attack.
drop - Knockdown power of killing attack.
attacktype - Attack type of killing attack. Returned as integer; see 'openborconstant'.
2.1996+- subject_to_maxz added to get/changeentityproperty.
- subject_to_minz added to get/changeentityproperty.
- gfxshadow get/changeentityproperty