"Gladiators" masterscript
I use this script running my "gladiators" server. Its simple and effective, and also quite fun. When someone dies, it drops an energy pack and a burst that explodes immediately. It could easily be modified to drop health packs, resource items, asteroids, or cores.
I run the server with strictly FFA maps, which complements the script.
I run the server with strictly FFA maps, which complements the script.
- Code:
- function onShipKilled(ship)
local loc = ship:getLoc()
local boom = Burst.new()
boom:setLoc(loc)
levelgen:addItem(boom)
local spoils = EnergyItem.new()
spoils:setLoc(loc)
spoils:setRegenTime(10000) --Technically not optimal, but does the job.
levelgen:addItem(spoils)
end
function onMsgReceived(message, playerInfo)
if(message == "!info") then
globalMsg("Killing someone will cause them to drop a burst and an energy pack")
end
end
function main()
subscribe(Event.MsgReceived)
subscribe(Event.ShipKilled)
end
Little_Apple wrote:DnD: the REAL bitfighter levelgen documentation
Santiago ZAP wrote:bob doesn't make new maps, he makes new gamemodes