New Features
- Added support to the scripting language for random number generation using the syntax “random(x, y)” to generate a number between x and y (inclusive). This can be used in most places where numeric literals are allowed. The example below will give the player a key if the random number is greater than 15, otherwise a potion is given:
- if random(1, 20) > 15 then
- give_item(“Gold Key”)
- else
- give_item(“Health Potion”)
- end
Bug Fixes
- Fixed a scripting error that could occur when attempting to compare two numerical values in a conditional expression.