v4.0.0 (Godot 3)
viniciusgerevini
released this
14 Feb 15:03
·
24 commits
to godot_4
since this release
Breaking changes
- Dialogues now return an object when ended. This impacts how you determined if the dialogue has ended.
- Changed identifier for blocks when persisting so changing block order does not impact already saved files. This will impact variations and single use options on all existing save files.
- Variation standalone
shuffle
option does simple random and has no guarantee every item will be returned.
Added
- Assignment initializer operator
?=
. It only assigns if variable was not set before. - Resource loader and saver to simplify file usage.
- External variable support. You can set variables that are not included in the persistence object.
- Implemented helpers: Dialogue config, singleton and fixed dialogue bubble.
Changed
- Increment assigment now have default values. i.e. If you run
set a += 1
whena
is not set, it will be set to 1. Before it would break because value was null.- As
+
is also used for strings, thisset a += "abc"
also works.
- As
- Return end object (
{ "type": "end" }
) instead of null on dialogue end. - Changing block order in file does not impact persisted options and variations anymore.
- Make variation
shuffle
option be really random. There is no guarantee all items will be executed. - The importer now saves a ClydeDialogueFile resource instead of PackedDataContainer.
- Improve dialogue examples.
Fixed
- Use correct
fmod
fora %=
operations. - variable interpolation with value "0" was not being printed, as godot interprets it as falsy
- Changing block order in file does not impact persisted options and variations anymore.