Liquid (TeaScript)

From Moondust Wiki
Jump to navigation Jump to search

Liquid is a class in TeaScript.vbs that allows you to read/write values of liquid boxes.

To read the value of Liquid use:

Liquid(id).name

id is the unique identifier for a specific liquid box.


To change the value of a Liquid use:

Liquid(id).name = value
Type Name Read/Write Description
double x - -
double y Read Only -
double z Write Only -
Name Description
X The X-coordinate of the liquid.
Y The Y-coordinate of the liquid.
Width The width of the liquid. -1 if the liquid uses circular collision.
Height The height of the liquid. -1 if the liquid uses circular collision.
Xsp The X-axis speed of the liquid.
Ysp The Y-axis speed of the liquid.
Fdir The direction of the force field.
Fval The acceleration of the force field.
Fmax The max speed of the force field.


Types of liquids

Use these IDs if you are using a Liquid iterator.

ID Type
1 Water
2 Quicksand
3 Custom Water
4 Gravitational Field
5 Event Once (Player)
6 Event Always (Player)
7 Event Once (Player/NPC)
8 Event Always (Player/NPC)
9 Click Event
10 Collision Script
11 Click Script
12 Collision Event
13 Air
14 Event Once (NPC)
15 Event Always (NPC)
16 NPC Hurting Field
17 Sub Area