-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Player Enters Checkpoint Zone
--if firstrun == 1 then
--else
-- firstrun = 1
KillCount = 0
--end
function supplydump_init(e)
end
function supplydump_main(e)
if g_Entity[e]['plrinzone']==1 then
if KillCount < 6 then
Prompt ( "Blow up all piles of ant eggs! " .. 6 - KillCount .. " left" )
end
end
end
this is the script that i use. i took a look at "coindisplay.lua" from the cartoon level where there is this:
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Displays coins to collect
function coindisplay_init(e)
LoadImages("cartoon",0)
end
function coindisplay_main(e)
SetImagePosition(50,10)
ShowImage(0)
PromptTextSize(5)
Prompt (" " .. 100 - CoinCount .. " more to collect!" )
if CoinCount==100 then
HideImage(1)
FreezePlayer()
SetImagePosition(50,50)
ShowImage(1)
if g_KeyPressE == 1 then
UnFreezePlayer()
HideImage(0)
FinishLevel()
Destroy(e)
end
Prompt("Press E to close or Esc to end level.")
end
end
so do i see this right that i could solve my problem by changing the lines like this:
if g_Entity[e]['plrinzone']==1 then
if KillCount < 6 then
Prompt ( "Blow up all piles of ant eggs! " .. 6 - KillCount .. " left" )
end
remove the red??
http://www.nuncio-rap.de
intel core i5-3570K CPU @ 3.40GHz; 8GB RAM // NVIDIA GeForce GTX560Ti