release:zzt_enhancer:oop_enhancements
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
release:zzt_enhancer:oop_enhancements [2021/05/28 21:24] – created asie | release:zzt_enhancer:oop_enhancements [2021/05/29 10:24] – asie | ||
---|---|---|---|
Line 8: | Line 8: | ||
* ZZT Enhancer commands are prefixed with ''' | * ZZT Enhancer commands are prefixed with ''' | ||
+ | * Variables must always be specified in quotes, like ''' | ||
===== Variables ===== | ===== Variables ===== | ||
TODO (potential names: '' | TODO (potential names: '' | ||
+ | |||
+ | ===== String IDs ===== | ||
+ | |||
+ | ^ ID ^ String ^ | ||
+ | | 7 | '' | ||
+ | | 8 | '' | ||
+ | | 11 | '' | ||
+ | | 25 | '' | ||
+ | |||
+ | TODO: Complete list. | ||
===== Commands ===== | ===== Commands ===== | ||
Line 33: | Line 44: | ||
==== add ==== | ==== add ==== | ||
- | Takes two arguments. | + | Syntax: '' |
+ | |||
+ | Adds '' | ||
==== addcstat ==== | ==== addcstat ==== | ||
- | Takes five arguments. | + | Syntax: '' |
+ | |||
+ | Adds a stat to the sidebar, at Y position '' | ||
==== allocscreen ==== | ==== allocscreen ==== | ||
Line 45: | Line 60: | ||
==== becomeb ==== | ==== becomeb ==== | ||
- | Takes two arguments. | + | Syntax: '' |
+ | |||
+ | Becomes a statless '' | ||
==== becomeo ==== | ==== becomeo ==== | ||
- | Takes five arguments. | + | Syntax: '' |
+ | |||
+ | Becomes a statted element with the specified parameters. | ||
==== bgfade ==== | ==== bgfade ==== | ||
Line 65: | Line 84: | ||
==== changeb ==== | ==== changeb ==== | ||
- | Takes four arguments. | + | Syntax: '' |
+ | |||
+ | Changes all instances of a given element ID and color to the other element ID and color. ? may be used as a wildcard in from_color. Faster than ZZT ''# | ||
+ | |||
+ | TODO: Can ? be used elsewhere? | ||
==== charedit ==== | ==== charedit ==== | ||
Line 77: | Line 100: | ||
==== chstr ==== | ==== chstr ==== | ||
- | Takes one argument. | + | Syntax: '' |
+ | |||
+ | Replaces the string with ID '' | ||
==== color, colour ==== | ==== color, colour ==== | ||
- | Takes one argument. | + | Syntax: '' |
+ | |||
+ | Sets the color value of the tile to '' | ||
==== colorxy, colourxy ==== | ==== colorxy, colourxy ==== | ||
Line 97: | Line 124: | ||
==== delete ==== | ==== delete ==== | ||
- | Takes one argument. | + | Syntax: '' |
+ | |||
+ | Deletes the variable ''" | ||
+ | |||
+ | ==== deletecstat ==== | ||
+ | |||
+ | Seemingly **not implemented** as of Enhancer 0.3b. TODO: Verify | ||
+ | |||
+ | Syntax: '' | ||
+ | |||
+ | Removes the custom stat at '' | ||
==== dieitem ==== | ==== dieitem ==== | ||
- | Takes no arguments. | + | Syntax: '' |
+ | |||
+ | Destroys the object and moves stat 0 - the player - to its location. | ||
==== divide ==== | ==== divide ==== | ||
- | Takes two arguments. | + | Syntax: '' |
+ | |||
+ | Divides ''" | ||
==== dualfont ==== | ==== dualfont ==== | ||
Line 164: | Line 205: | ||
==== ifat ==== | ==== ifat ==== | ||
- | Takes four arguments. | + | Syntax: '' |
+ | |||
+ | If, at location '' | ||
==== ifbup ==== | ==== ifbup ==== | ||
Line 240: | Line 283: | ||
==== moveplayer ==== | ==== moveplayer ==== | ||
- | Takes two arguments. | + | Syntax: '' |
+ | |||
+ | Moves the player to location '' | ||
==== moveplayerhere ==== | ==== moveplayerhere ==== | ||
Line 248: | Line 293: | ||
==== multiply ==== | ==== multiply ==== | ||
- | Takes two arguments. | + | TODO: Is mul also valid? |
+ | |||
+ | Syntax: '' | ||
+ | |||
+ | Multiplies ''" | ||
==== playerchar ==== | ==== playerchar ==== | ||
Line 264: | Line 313: | ||
==== playsong ==== | ==== playsong ==== | ||
- | Takes no arguments. | + | Syntax: '' |
+ | |||
+ | Plays the song '' | ||
==== playsongres ==== | ==== playsongres ==== | ||
- | Takes one argument. | + | Syntax: '' |
+ | |||
+ | Playes the song at asset index '' | ||
==== playwav ==== | ==== playwav ==== | ||
Line 276: | Line 329: | ||
==== putblock ==== | ==== putblock ==== | ||
- | Takes four arguments. | + | Syntax: '' |
+ | |||
+ | Place a statless '' | ||
==== putcolor, putcolour ==== | ==== putcolor, putcolour ==== | ||
Line 300: | Line 355: | ||
==== puttext ==== | ==== puttext ==== | ||
- | Takes three arguments. | + | Syntax: '' |
+ | |||
+ | Puts the "'' | ||
==== putval ==== | ==== putval ==== | ||
Line 313: | Line 370: | ||
Takes the following types of arguments: '' | Takes the following types of arguments: '' | ||
+ | |||
+ | Makes future "x, y" location arguments be calculated relative to the provided target. | ||
==== restorescreen ==== | ==== restorescreen ==== | ||
Line 320: | Line 379: | ||
==== rgb ==== | ==== rgb ==== | ||
- | Takes four arguments. | + | Syntax: '' |
+ | |||
+ | Set the color '' | ||
==== savescreen ==== | ==== savescreen ==== | ||
Line 336: | Line 397: | ||
==== set ==== | ==== set ==== | ||
- | Takes two arguments. | + | Syntax: '' |
+ | |||
+ | Sets the variable ''" | ||
==== setcoli ==== | ==== setcoli ==== | ||
- | Takes two arguments. | + | Syntax: '' |
+ | |||
+ | Sets the intensity of color '' | ||
==== setmusicvol ==== | ==== setmusicvol ==== | ||
- | Takes one argument. | + | Syntax: '' |
+ | |||
+ | Sets the music volume to '' | ||
==== setpali ==== | ==== setpali ==== | ||
- | Takes one argument. | + | Syntax: '' |
+ | |||
+ | Sets the global palette intensity to '' | ||
==== setsongpos ==== | ==== setsongpos ==== | ||
Line 368: | Line 437: | ||
==== stopsong ==== | ==== stopsong ==== | ||
- | Takes no arguments. | + | Stops the currently playing song. |
==== subtract ==== | ==== subtract ==== | ||
- | Takes two arguments. | + | Syntax: '' |
+ | |||
+ | Subtracts '' | ||
==== teleport ==== | ==== teleport ==== | ||
Line 392: | Line 463: | ||
==== walk ==== | ==== walk ==== | ||
- | Takes two arguments. | + | Syntax: '' |
+ | |||
+ | Sets the walking direction to '' | ||
==== walkxy ==== | ==== walkxy ==== | ||
Takes four arguments. | Takes four arguments. | ||
- | |||
- | ===== Variables ===== | ||
- | |||
- | TODO |
release/zzt_enhancer/oop_enhancements.txt · Last modified: 2021/05/29 10:47 by asie