Removing unused lua scripts.

This commit is contained in:
Faerbit 2015-03-16 16:14:22 +01:00
parent 1dde41d5f4
commit 761d25e9c7
8 changed files with 0 additions and 181 deletions

View File

@ -1,15 +0,0 @@
local global = require( "global" )
if(global.triggeredDeleteObject == nil) then
global.triggeredDeleteObject = false
end
function trigger(objectToChange)
if(global.triggeredDeleteObject == false) then
if(not level) then
print("No level found in Lua!")
return
end
level:deleteObject(objectToChange)
global.triggeredDeleteObject = true
print("deleteObject")
end
end

View File

@ -1,19 +0,0 @@
local global = require( "global" )
if(global.triggeredDeleteRandomObject == nil) then
global.triggeredDeleteRandomObject = false
end
function trigger(objectToChange)
if(global.triggeredDeleteRandomObject == false) then
if(not level) then
print("No level found in Lua!")
return
end
a = level:getObjectCount()
rand = math.random(0, a - 1)
level:deleteObject(rand)
global.triggeredDeleteRandomObject = true
print("deleteRandomObject")
end
end

View File

@ -1,29 +0,0 @@
local global = require( "global" )
if(global.triggeredOpenDoor1 == nil) then
global.triggeredOpenDoor1 = false
end
function trigger(objectToChange)
if(global.triggeredOpenDoor1 == false) then
if(not level) then
print("No level found in Lua!")
return
end
if(not global.openDoorCounter) then
global.openDoorCounter = 0
end
global.openDoorCounter = global.openDoorCounter + 1
if (global.openDoorCounter == 3) then
local strength = 1
local xPos = 0
local yPos = 0
local zPos = 0
level:moveObject(objectToChange, strength, xPos, yPos, zPos)
print("Opening the door")
end
global.triggeredOpenDoor1undo = false
global.triggeredOpenDoor1 = true
print("openDoor1")
end
end

View File

@ -1,20 +0,0 @@
local global = require( "global" )
if(global.triggeredOpenDoor1undo == nil) then
global.triggeredOpenDoor1undo = true
end
function trigger(objectToChange)
if(global.triggeredOpenDoor1undo == false) then
if(not level) then
print("No level found in Lua!")
return
end
if(global.triggeredOpenDoor1) then
global.openDoorCounter = global.openDoorCounter - 1
global.triggeredOpenDoor1 = false
end
global.triggeredOpenDoor1undo = true
print("openDoor1undo")
end
end

View File

@ -1,29 +0,0 @@
local global = require( "global" )
if(global.triggeredOpenDoor2 == nil) then
global.triggeredOpenDoor2 = false
end
function trigger(objectToChange)
if(global.triggeredOpenDoor2 == false) then
if(not level) then
print("No level found in Lua!")
return
end
if(not global.openDoorCounter) then
global.openDoorCounter = 0
end
global.openDoorCounter = global.openDoorCounter + 1
if (global.openDoorCounter == 3) then
local strength = 1
local xPos = 0
local yPos = 0
local zPos = 0
level:moveObject(objectToChange, strength, xPos, yPos, zPos)
print("Opening the door")
end
global.triggeredOpenDoor2undo = false
global.triggeredOpenDoor2 = true
print("openDoor2")
end
end

View File

@ -1,20 +0,0 @@
local global = require( "global" )
if(global.triggeredOpenDoor2undo == nil) then
global.triggeredOpenDoor2undo = true
end
function trigger(objectToChange)
if(global.triggeredOpenDoor2undo == false) then
if(not level) then
print("No level found in Lua!")
return
end
if(global.triggeredOpenDoor2) then
global.openDoorCounter = global.openDoorCounter - 1
global.triggeredOpenDoor2 = false
end
global.triggeredOpenDoor2undo = true
print("openDoor2undo")
end
end

View File

@ -1,29 +0,0 @@
local global = require( "global" )
if(global.triggeredOpenDoor3 == nil) then
global.triggeredOpenDoor3 = false
end
function trigger(objectToChange)
if(global.triggeredOpenDoor3 == false) then
if(not level) then
print("No level found in Lua!")
return
end
if(not global.openDoorCounter) then
global.openDoorCounter = 0
end
global.openDoorCounter = global.openDoorCounter + 1
if (global.openDoorCounter == 3) then
local strength = 1
local xPos = 0
local yPos = 0
local zPos = 0
level:moveObject(objectToChange, strength, xPos, yPos, zPos)
print("Opening the door")
end
global.triggeredOpenDoor3undo = false
global.triggeredOpenDoor3 = true
print("openDoor3")
end
end

View File

@ -1,20 +0,0 @@
local global = require( "global" )
if(global.triggeredOpenDoor3undo == nil) then
global.triggeredOpenDoor3undo = false
end
function trigger(objectToChange)
if(global.triggeredOpenDoor3undo == false) then
if(not level) then
print("No level found in Lua!")
return
end
if(global.triggeredOpenDoor3) then
global.openDoorCounter = global.openDoorCounter - 1
global.triggeredOpenDoor3 = false
end
global.triggeredOpenDoor3undo = true
print("openDoor3undo")
end
end