Repository navigation
Releases
Releases · huderlem/poryscript
3.6.1
3.6.0
Added
- Add multi-line string support.
- Inspired by HexManiacAdvance
- Add text-replacement support to
font_config.json.
3.5.2
3.5.1
Fixed
- Fix bug where
\Ndidn't respectnumLineswhen usingformat().
3.5.0
Added
- Movement can now be inlined within commands using a special
moves()operator, similar to text. For example:applymovement(OBJ_EVENT_ID_PLAYER, moves( walk_left * 4 face_down )) - Print a warning message when
numLinesis missing from a font's config. Defaults tonumLines=2in that case, rather than0. - Added
msgboxto the defaultcommand_config.json, sincemsgbox(.., MSGBOX_YESNO)would be a very common use case.
Changed
- Multi-line string literals will now remove newline characters, and separate each line by a space character instead.
- This should rarely, if ever, be used. But the previous behavior resulted in invalid compiled scripts.
3.4.0
- Add support for AutoVar commands.
- AutoVar commands can be used in place of the
varoperator to streamline comparisons. - AutoVar commands are defined in a new config file
command_config.json.
- AutoVar commands can be used in place of the
- Fix missing semicon character in FireRed/LeafGreen font config
The new command config file must now be specified with the -cc parameter in your Makefile
Example:
+ data/%.inc: data/%.pory; $(SCRIPT) -i $< -o $@ -fc tools/poryscript/font_config.json -cc tools/poryscript/command_config.json
3.4.0.2-autovars
Preview build for upcoming autovars feature.
3.3.0
- Add ability to configure number of lines used by
format(). For example, this is useful if the text is intended to render in, a 3-line textbox (instead of the usual 2).- Additionally,
format()now accepts named parameters, andnumLineshas been included infont_config.json.
- Additionally,
3.2.0
[3.2.0] - 2023-12-02
Added
- Add
-lmoption for C Preprocessor line markers to improve error messages.-lmis enabled by default. You can specify-lm=falseto disable line markers in the compiled output.
3.1.0
Added
- Add support for configuration of the textbox's cursor width to improve
format()'s ability to fit text on a line.- This is achieved with a new
cursorOverlapWidthfield infont_config.json - Note, this change also changed the
maxLineLengthof the1_latin_frlgfont, so existing uses offormat()could be affected--especially when used in combination with explicit line breaks inside theformat()text content.
- This is achieved with a new
- Add automatic line break (
\N) support toformat()