Warp (TeaScript)
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
| Type | Name | Read/Write | Description |
|---|---|---|---|
| double | x
|
- | - |
| double | y
|
Read Only | - |
| double | z
|
Write Only | - |
| 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?
|
Bomb
|
W | Should the warp be hit by an explosion before being allowed to enter?
|
NoYoshi
|
W | Should Mounts be allowed to pass through the warp?
|
CanPick
|
W | Should NPCs the player is holding be allowed to pass through the warp?
|
Mini
|
W | Should the warp only be accessed in mini form?
|
twoway
|
W | Should the warp be able to be used from its exit?
|
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. |
Types of Warps
Use these IDs if you are using a Warp iterator.
| ID | Type |
|---|---|
1
|
Instant Warp |
2
|
Pipe |
3
|
Warp Pipe |
4
|
Loop Warp |