Full Changelog: 2.1.1...2.2
What's Changed
Major Updates
- fix #257 use double quotes inside strings by @theludovyc in #261
like the title says, you can do that now
"it is a "really" good one"
- fix #262 Handle common operators for variable assignment by @theludovyc in #263
You can use assignment operators like: =, +=, -=, *=, /= to assign a value to a variable.
Example:gd.bugs -= 1
We would like to handle expressions for the v2.3 (example: damage = dps + boost + 1)
- fix #255 Use variables inside any strings by @Jeremi360 in #256
The big update of this version ! You can now use variables inside any strings, for say, ask, menu, ... and for variables !
Example:player.life_str = "You have <player.life> life points left"
A very important thing: string is replaced with a value when you use/read it, not on assignment.
Example:
player.life = 10
player.life_str = "You have <player.life> life points left"
player.life = 5
narrator "<player.life_str>"
The narrator will say: "You have 5 life points left".
Also,
Rakugo.get_variable("<player.life_str>")
will return same string: "You have 5 life points left".
We took advantage of this to let you a new Rakugo method
replace_variables(text:String)
.
Example:Rakugo.replace_variables("You have <player.life> life points left")
, will return: "You have 5 life points left".
- fix #52 Rakugo not works on itch.io with firefox
Some time ago Rakugo wasn't working on itch.io with firefox for html5 export, because we use multi-threading feature.
it wasn't handled on this website. It is now resolved !
You can see my old post here https://itch.io/post/5713938, and the main one https://itch.io/t/2025776/experimental-sharedarraybuffer-support.
So you have just one thing to remember when you export now, is to not forget to add your .*rk files ! https://rakugoteam.github.io/rakugo-docs/2.1/export/
Fixed Bugs
- fix #49 handle escape characters by @theludovyc in #254
- hotfix for menu index out of range by @theludovyc in #258
Other Changes
- hotfix remove prints in Parser.gd by @theludovyc in #253
- fix #259 remove warning in get_character by @theludovyc in #260
- Bump version to 2.2, clean up rakugo dir from git config files by @Jeremi360 in #267