-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Aliens-in-cilinders must be collected by player. function alienincilinder_init(e) --finish = 50 allcilinders = 0 alienincilinder = 10 end function alienincilinder_main(e) PlayerDist = GetPlayerDistance(e) if PlayerDist < 50 then Prompt ("Press E To pick up Alien") if g_KeyPressE == 1 then alienincilinder = alienincilinder - 1 allcilinders = allcilinders + 1 PromptDuration(alienincilinder.. " aliens still need to be collected",1500) PlaySound(e,0); Destroy(e); if alienincilinder == 0 then PromptDuration(" You have picked up all aliens in this level",1500) end end end end