Liquid is a class in TeaScript.vbs that allows you to read/write values of liquid boxes and zones.
Using the Liquid Class
To read the value of
To change the value of a
Liquid(index).name = value
||-||The top left x position of the liquid in scene coordinates. In circular mode, this is the center of the liquid.|
||-||The top left y position of the liquid in scene coordinates. In circular mode, this is the center of the liquid.|
||-||The width of the liquid. In circular mode, this represents the radius.|
||-||The height of the liquid. In circular mode, this value is -1.|
||-||The horizontal speed of the player. Negative values cause leftwards movement, positive values cause rightwards movement.|
||-||The vertical speed of the player. Negative values cause upwards movement, positive values cause downwards movement.|
||-||The direction of the force field.|
||-||The acceleration of the force field.|
||-||The max speed of the force field.|
Oddities and Quirks
Below is a list of certain quirks players have that does not conform to standard behavior or simply other miscellaneous behavior.
- Liquids can either be rectangular or circular. This is entirely decided by setting height to -1 (for circular mode) or a positive value (for rectangular mode). You can set this value to -1 to force the liquid into circular mode or vice-versa. In circular mode, x and y instead define the center of the liquid and width defines the radius.