Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Lua Online

--LUA Script - precede every function and global member with lowercase name of script + '_main'
-- player converse


function converse_init(e)
texttinme=0
stage=0
fin=0
end
function converse_main(e)
playerDist=GetPlayerDistance(e)
if playerDist <100 then
if g-KeypressE==1 and GetTimer(e)>texttime nd fin==0 then
texttime=GetTimer(e)+1000
stage=stage+1
end
if stage==1 then
TextCenteronx(50,50,3,"Hello.")
end
if stage==2 then
TextCenteronx(50,50,3," like urtles.")
end
if stage==3 then
TextCenteronx(50,50,3," Bibble.")
end
if stage==4 then
fin"1
end
end
if playerDist>100 then
fin=0
stage=0
end
end

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.