Warp (TeaScript)

From PGE Wiki
Jump to navigation Jump to search

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?
  • 0: No
  • 1: Yes
Bomb Should the warp be locked with a bomb?
  • 0: No
  • 1: Yes
NoYoshi Should Yoshis be allowed to pass through the warp?
  • 0: Yes
  • 1: No
CanPick Should items be allowed to pass through the warp?
  • 0: No
  • 1: Yes
Mini Should the warp only be accessed in mini form?
  • 0 : No
  • 1: Yes