Skip to content

DEV ACS Map APIs

PROPHESSOR edited this page Jan 16, 2019 · 10 revisions

ACS Map APIs

Contents

Scripts

The Map APIs contains in the acs/mapapis.acs file.

Script 3000 - Door Unlocker

Opens the specified door (change action to Script 3002 and change texture to opened).

Script 3000 (int line_front, int line_back = 0, bool nosound = false) // Door Unlocker
  • line_front - Id of the door's front line
  • line_front - Id of the door's back line. If you're using the same textures (mirrored by scale -1), you should set this argument to 0.
  • nosound - Don't play the "Access granted" sound

Note! If the door is mirrored while executing this script, swap the door_front and door_back values.

Script 3001 - Door Closed

Display "Door closed!" text and play "Access denied" sound.

Script 3001 (void) // Door Closed

Script 3002 - Generic Door

Generic door with default DRRP open parameters.

Script 3002 (int sectorid = 0) // Generic Door
  • sectorid - Id of the door's sector (use 0 to open activator's sector)

Script 3003 - Secret Door

Secret door with default DRRP open parameters.

Script 3003 (int sectorid = 0) // Secret Door
  • sectorid - Id of the door's sector (use 0 to open activator's sector)

Script 3004 - Give Automap

Give automap

Script 3004 (void) // Give Automap

Script 3005 - WIP Level

Display message

Warning!
This level is under construction!
Part of the functionality may not work correctly, or not work at all!
Script 3005 (void) // WIP Level

Script 3006 - Jammed Door

Can be open by DRRPAxe

Script 3006 (void) // Jammed Door

Script 3007 - Door Locker

Opens the specified door (change action to Script 3002 and change texture to opened).

Script 3007 (int line_front, int line_back = 0) // Door Locker
  • line_front - Id of the door's front line
  • line_back - Id of the door's back line. If you're using the same textures (mirrored by scale -1), you should set this argument to 0.

Note! If the door is mirrored while executing this script, swap the door_front and the door_back values.

Script 3008 - Earth Quake

Doom RPG-compatible earth quake script.

Script 3008 (int time, int intensivity) // Earth Quake
  • time - Time to quake (in Doom RPG time units)
  • intensivity - Intensivity of quake (in Doom RPG intensivity units) [0; 12]

Script 3009 - Damage Character

Damage or kill DRRPCharacter. Includes blood splashes, screen flash and pain/death sound.

Script 3009 (int tid, bool fatal) // Damage Character
  • tid - Tid of the character
  • fatal - Damage (0) or kill (1) the character

Script 3010 - Colorful Door

Key-locked colorful doors API.

Script 3010 (int sectorid = 0, int keyid, bool mute = 0) // Colorful Door
  • sectorid - Id of the door's sector (use 0 to open activator's sector).
  • keyid - Id of the DRRP....Card. You can find the list below.
  • mute - If equals 1 - disable voice message and it's delay before open the door.

Key IDs:

  • 1 - DRRPRedCard
  • 2 - DRRPBlueCard
  • 3 - DRRPYellowCard
  • 7 - DRRPGreenCard

Script 3011 - Teleport

Doom RPG-like teleport to coordinates with the teleport particles.

Script 3011 (fixed x, fixed y, int direction = 0) // DRPG Teleport
  • x - X coordinate
  • y - Y coordinate
  • direction - Direction // Not implemented yet

Note This script not fully implemented yet