Warp (TeaScript)
Revision as of 18:26, 24 May 2019 by Void-the-Bat (talk | contribs)
Warp is a class in TeaScript.vbs that allows you to read/write values for warps.
To read the value of Warp
use:
Warp(id).name
id
stands for the warp index (as seen in the editor). Note: the name is not case sensitive.
To change the value of Warp
use:
Warp(id).name = vale
Name | Description |
---|---|
X
|
The X-scene coordinate of the warp's entrance. |
Y
|
The Y-scene coordinate of the warp's entrance. |
Ex
|
The X-scene coordinate of the warp's exit. |
Ey
|
The Y-scene coordinate of the warp's exit. |
Xsp
|
The X-axis speed of the warp. |
Ysp
|
The Y-axis speed of the warp. |
cannon
|
The flight duration of the pipe cannon. Use 0 to disable the cannon. |
StarCnt
|
The number of stars needed to enter the warp. |
StarMsg
|
The message shown when the player doesn't have enough stars. Note, this is a string. |
Locked
|
Should the warp be locked with a key?
|
Bomb
|
Should the warp be locked with a bomb?
|
NoYoshi
|
Should Mounts be allowed to pass through the warp?
|
CanPick
|
Should items be allowed to pass through the warp?
|
Mini
|
Should the warp only be accessed in mini form?
|