Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Zone0 = {} --Button1
- Zone1 = {} --Monster
- Zone2 = {} --MS1
- Zone3 = {} --MS2
- Zone4 = {} --MS3
- Zone5 = {} --MS4
- Zone6 = {} --Lift1 Start
- Zone7 = {} --Geist
- Zone8 = {} --Zelt
- Zone9 = {} --Geist2
- Zone10 = {} --
- Zone11 = {} --
- Zone12 = {} --
- Zone13 = {} --
- Zone14 = {} --
- Kill1 = {} --
- Kill2 = {} --
- Kill3 = {} --
- Kill4 = {} --
- Clear1 = {} --ms1
- Clear2 = {} --ms3 oben
- Clear3 = {} --
- Clear4 = {} --
- Clear5 = {} --Start
- Clear6 = {} --ms3 unten
- Clear7 = {} --
- ms = 0
- Mission1 = 0
- Zone0x = 0
- Zone1x = 0
- Zone2x = 0
- Zone3x = 0
- Zone4x = 0
- Zone5x = 0
- Zone6x = 0
- Zone7x = 0
- Zone8x = 0
- Zone9x = 0
- Zone10x = 0
- Zone11x = 0
- Zone12x = 0
- Zone13x = 0
- Zone14x = 0
- function OnLoad()
- Game.Message("Welcome to LEVELNAME")
- Game.SetKeyHook("E", "Enter")
- return true
- end
- function Kill1.OnEnter()
- Game.KillPlayer()
- end
- function Kill2.OnEnter()
- Game.KillPlayer()
- end
- function Kill3.OnEnter()
- Game.KillPlayer()
- end
- function Kill4.OnEnter()
- Game.KillPlayer()
- end
- function Clear1.OnEnter()
- Game.ClearMessages()
- end
- function Clear2.OnEnter()
- Game.ClearMessages()
- end
- function Clear3.OnEnter()
- Game.ClearMessages()
- end
- function Clear4.OnEnter()
- Game.ClearMessages()
- end
- function Clear5.OnEnter()
- Game.ClearMessages()
- end
- function Clear6.OnEnter()
- Game.ClearMessages()
- end
- function Clear7.OnEnter()
- Game.ClearMessages()
- end
- --Totem Rampe
- function Zone0.OnEnter()
- if (Zone0x==0) then
- Game.SetDynamicBlockTranslation("Button1", -0.5, 0, 800, 0, 400)
- Game.SetDynamicBlockTranslation("Totemblock1", 0, 2.4, 1000, 0, 500)
- Game.SetDynamicBlockTranslation("Totemblock2", 0, 2.4, 1000, 0, 500)
- Game.SetDynamicBlockTranslation("Totemblock3", 0, 2.4, 1000, 0, 500)
- Game.SetDynamicEntityTranslation("Totemsprite1", 0, 2.4, 1000, 0, 500)
- Game.SetDynamicEntityTranslation("Totemsprite2", 0, 2.4, 1000, 0, 500)
- Zone0x=1
- end
- end
- function Zone1.OnEnter()
- if (Zone1x==0) then
- if (Mission1==1) then
- ms=ms+1
- Game.KillEntity("ms1")
- Game.Message("You picked up a mushroom")
- Zone1x=1
- end
- end
- end
- function Zone2.OnEnter()
- if (Zone2x==0) then
- if (Mission1==1) then
- ms=ms+1
- Game.KillEntity("ms2")
- Game.Message("You picked up a mushroom")
- Zone2x=1
- end
- end
- end
- function Zone3.OnEnter()
- if (Zone3x==0) then
- if (Mission1==1) then
- ms=ms+1
- Game.KillEntity("ms3")
- Game.Message("You picked up a mushroom")
- Zone3x=1
- end
- end
- end
- function Zone4.OnEnter()
- if (Zone4x==0) then
- if (Mission1==1) then
- ms=ms+1
- Game.KillEntity("ms4")
- Game.Message("You picked up a mushroom")
- Zone4x=1
- end
- end
- end
- function Zone6.OnEnter()
- if (Zone6x==0) then
- if (Zone4x==1) then
- Game.ClearMessages()
- Game.SetDynamicBlockTranslation("Lift1", 0, 6, 1000, 0, 500)
- Game.SetDynamicBlockTranslation("vines", 0, 6, 1000, 0, 500)
- Zone6x=1
- end
- end
- end
- function Zone7.OnEnter()
- if (ms<4) then
- Game.Message("Ghost: Give me 4 mushrooms or i will kill you!!!")
- Mission1=1
- end
- end
- function Zone9.OnEnter()
- if (ms==4) then
- if (Zone9x==0) then
- Game.Message("Thanks, now u can enter the tent")
- Zone9x=1
- end
- end
- end
- function Zone8.OnEnter()
- if (Zone9x==1) then
- if (Zone8x==0) then
- Game.Message("Press 'E' to enter the tent")
- Zone8x=1
- end
- end
- end
- function Enter()
- if (Zone8x==1) then
- x, y = Game.GetEntityPos("TeleportPoint")
- Game.SetPlayerPosition(x, y, 0)
- end
- end
Add Comment
Please, Sign In to add comment