A speedrun map must have the following features:
- Spawn
- Ways (normal_0 to 6, secret_0 to 6)
- Endmap trigger
- Remove every code that is not necessary for speedrunning (music, iPrintLnBold, rooms, traps)
- Remove moving platforms
- Remove teleporter delays
Create normal ways seperated by a ";".
Usage Example:
sr\api\_speedrun::createNormalWays("Normal Way;");
Create secret ways seperated by a ";".
Usage Example:
sr\api\_speedrun::createSecretWays("Secret Way;");
Change the player's way.
Usage Example:
player sr\api\_speedrun::changeWay("secret_0");
Finish the player's way.
Usage Example:
player sr\api\_speedrun::finishWay("secret_0");
Create an end map trigger, if the way
parameter is not specified, the trigger will end any player ways.
Usage Example:
sr\api\_map::createEndMap((0, 0, 0), 150, 100);
Create a trigger that will change the player's way.
Usage Example:
sr\api\_speedrun::createWay((0, 0, 0), 150, 100, "yellow", "normal_1");
Create a teleporter.
Parameters:
- triggerOrigin: The trigger origin.
- width: The trigger width.
- height: The trigger height.
- origin: The teleporter origin.
- angles: The teleporter angles.
- state: "freeze" Will freeze the player on teleporting, "none" will not freeze.
- color: The color of the teleporter trigger.
- way: Change the way on teleporting.
Usage Example:
sr\api\_map::createTeleporter((0, 0, 0), 150, 100, (0, 0, 0), 90, "none", "blue", "secret_0");
Make this map a CJ map.
Usage Example:
sr\api\_speedrun::cj("Secret Way;");
Make this map a slide map.
Usage Example:
sr\api\_speedrun::slide(500);
Disable XP.
Usage Example:
sr\api\_speedrun::disableXP();