Template:Command:warpdir

warpdir (, ,  )

Set the warp background of the given room, permanently for the given session. The changed warp background will not be preserved if you quicksave, quit, and load the level from the save again, but leaving the room and coming back will not reset its warp background to what it was originally. This means you can set the warp background of a certain room without having to be in it.

There is a bug with this command in versions 2.2 and below where if you are in a room with the Lab or Warp Zone tileset, and you set the warp background to none (e.g. make the room no longer warp anymore), instead of setting it to the Lab or stars-up background, it will set it to the stars-left background, always. But leaving and coming back will set the room's background to what it's supposed to be. In 2.3 and later, this bug is fixed.

In 2.2 and below, if the room number you end up indexing (which is just, without accounting for 1-indexing, ) is not in the range 0..399, undefined behavior will be triggered. In 2.3 and later, this undefined behavior is fixed.


 * : The x-coordinate of the room to target, 1-indexed.
 * : The y-coordinate of the room to target, 1-indexed.
 * : The warp background to set the room to. There are four intended values:
 * : No warping
 * : Horizontal
 * : Vertical
 * : All sides
 * All other values will still succeed in setting the warp dir to that value, and will make the room no longer warp, but the background will still be there.