The DungeonToolKit (Plug-in!)
I made this plug-in to make nice levels faster! You can add delayed teleporters, spinning Speed Zones, energy items, ghost ships, scaled asteroids or turrets with different weapons all in-game without even touching the level file!
WARNING: This plug-in will not work in 019 or later
- Code:
- ---- DUNGEON TOOLKIT
---- by fordcars
---- I will try to keep this plug-in up-to-date
function getArgsMenu()
return "Dungeon ToolKit",
{
ToggleMenuItem.new("Select Item", {"DelayedTeleport", "TurretWeapon", "RotatingSpeedZones", "EnergyItem", "GhostShip", "ScaledAsteroids"}, 1, true, "Pick one!"),
CounterMenuItem.new("Delayed Teleport", 2, 1, 0, 100, "seconds", "", "The amount of time before the teleporter will be usable again", "Select a delay time"),
ToggleMenuItem.new("Turret Weapon", {"Phaser", "Triple", "Burst", "Bouncer", "Seeker"}, 1, true, "Pick a weapon!"),
CounterMenuItem.new("Rotating SpeedZone", 1, 1, 0, 100, "", "", "The speed of the rotating speed zone", "Select a speed"),
CounterMenuItem.new("Asteroid Size", 1, 1, 0, 14, "", "", "The size of the asteroid", "Select a size"),
CounterMenuItem.new("Ghost Ship X", 0, 1, 0, 999999999, "", "", "The X coord of ghost ship", "Select coord"),
CounterMenuItem.new("Ghost Ship Y", 0, 1, 0, 999999999, "", "", "The Y coord of ghost ship", "Select coord")
}
end
function main()
local itemSel = arg[1]
local delay = arg[2]
local turWeapon = arg[3]
local rotZone = arg[4]
local astSize = arg[5]
local ghostX = arg[6]
local ghostY = arg[7]
local levelLine = nil
if (itemSel == "DelayedTeleport") then
levelLine = "Teleporter 0 0 1 0 Delay=" .. delay
end
if (itemSel == "TurretWeapon") then
levelLine = "Turret -1 0 0 0 W=" .. turWeapon
end
if (itemSel == "RotatingSpeedZones") then
levelLine = "SpeedZone 0 0 0.5 0 2000 Rotate=" .. rotZone
end
if (itemSel == "EnergyItem") then
levelLine = "EnergyItem 0 0 20"
end
if (itemSel == "GhostShip") then
levelLine = "Ship 0 " .. ghostX .. " " .. ghostY
end
if (itemSel == "ScaledAsteroids") then
levelLine = "Asteroid 0 0 Size=" .. astSize
end
plugin:addLevelLine(levelLine)
end
To install this plug-in, put this code in a document named "dungeonToolKit.lua" and put this document in the "editor_plugins" folder (located with the bitfighter.ini) and type "Plugin2=Ctrl+.|dungeonToolKit.lua|Make dungeons!" under the [EditorPlugins] section of your "bitfighter.ini".
Enjoy!
UPDATE: I added Ghost Ships, Energy Items and Scaled Asteroids!
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.