Warp (TeaScript)

From PGE Wiki
Revision as of 23:04, 24 March 2020 by Void-the-Bat (talk | contribs) (Added more names discovered recently.)
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 = value
Name Type Description
X R&W The X-scene coordinate of the warp's entrance.
Y R&W The Y-scene coordinate of the warp's entrance.
Ex R&W The X-scene coordinate of the warp's exit.
Ey R&W The Y-scene coordinate of the warp's exit.
Xsp W The X-axis speed of the warp. Also affects entrance effect.
Ysp W The Y-axis speed of the warp. Also affects entrance effect.
cannon W The flight duration of the pipe cannon. Use 0 to disable the cannon.
StarCnt W The number of stars needed to enter the warp.
StarMsg W The message shown when the player doesn't have enough stars. Note, this is a string.
Locked W Should the warp be locked with a key?
  • 0: No
  • 1: Yes
Bomb W Should the warp be hit by an explosion before being allowed to enter?
  • 0: No
  • 1: Yes
NoYoshi W Should Mounts be allowed to pass through the warp?
  • 0: Yes
  • 1: No
CanPick W Should NPCs the player is holding be allowed to pass through the warp?
  • 0: No
  • 1: Yes
Mini W Should the warp only be accessed in mini form?
  • 0 : No
  • 1: Yes
twoway W Should the warp be able to be used from its exit?
  • 0: No
  • 1: Yes
WarpEvent W The event/script that should be called when entering the warp.
levelname W The filename of the level the warp will send the player to. Will automatically force the Level Exit warp type in game.
levelwarp W The ID of the warp the player exits to if the warp sends the player to another level.