diff --git a/data/levels/scripts/unused/deleteObject.lua b/data/levels/scripts/unused/deleteObject.lua deleted file mode 100644 index 42e1194..0000000 --- a/data/levels/scripts/unused/deleteObject.lua +++ /dev/null @@ -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 diff --git a/data/levels/scripts/unused/deleteRandomObject.lua b/data/levels/scripts/unused/deleteRandomObject.lua deleted file mode 100644 index 161e511..0000000 --- a/data/levels/scripts/unused/deleteRandomObject.lua +++ /dev/null @@ -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 - - diff --git a/data/levels/scripts/unused/openDoor1.lua b/data/levels/scripts/unused/openDoor1.lua deleted file mode 100644 index 694fad6..0000000 --- a/data/levels/scripts/unused/openDoor1.lua +++ /dev/null @@ -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 diff --git a/data/levels/scripts/unused/openDoor1undo.lua b/data/levels/scripts/unused/openDoor1undo.lua deleted file mode 100644 index 29cb972..0000000 --- a/data/levels/scripts/unused/openDoor1undo.lua +++ /dev/null @@ -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 diff --git a/data/levels/scripts/unused/openDoor2.lua b/data/levels/scripts/unused/openDoor2.lua deleted file mode 100644 index 59422e0..0000000 --- a/data/levels/scripts/unused/openDoor2.lua +++ /dev/null @@ -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 diff --git a/data/levels/scripts/unused/openDoor2undo.lua b/data/levels/scripts/unused/openDoor2undo.lua deleted file mode 100644 index b03a4eb..0000000 --- a/data/levels/scripts/unused/openDoor2undo.lua +++ /dev/null @@ -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 diff --git a/data/levels/scripts/unused/openDoor3.lua b/data/levels/scripts/unused/openDoor3.lua deleted file mode 100644 index d11bd7f..0000000 --- a/data/levels/scripts/unused/openDoor3.lua +++ /dev/null @@ -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 diff --git a/data/levels/scripts/unused/openDoor3undo.lua b/data/levels/scripts/unused/openDoor3undo.lua deleted file mode 100644 index f5db0cb..0000000 --- a/data/levels/scripts/unused/openDoor3undo.lua +++ /dev/null @@ -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