Releases: huderlem/poryscript
Releases · huderlem/poryscript
3.5.1
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
numLines
is missing from a font's config. Defaults tonumLines=2
in that case, rather than0
. - Added
msgbox
to 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
var
operator 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, andnumLines
has been included infont_config.json
.
- Additionally,
3.2.0
[3.2.0] - 2023-12-02
Added
- Add
-lm
option for C Preprocessor line markers to improve error messages.-lm
is enabled by default. You can specify-lm=false
to 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
cursorOverlapWidth
field infont_config.json
- Note, this change also changed the
maxLineLength
of the1_latin_frlg
font, 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()
3.0.3
Fixed
- Fix bug where specifying a non-default font id with
format()
would apply the wrong maximum line width configuration.
3.0.2
Fixed
- Fix bug where a
switch
statement with all emptycase
bodies would produce invalid output.
3.0.1
Fixed
- Fix bug where
end
andreturn
commands could cause labels to not render.