-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Default script - does nothing. function convo_init(e) convo = 0 timer = 0 timerstarted = 0 end function convo_main(e) if GetPlayerDistance(e) <150 and convo == 0 then Prompt("press e to talk") if g_KeyPressE == 1 then convo =1 end end if convo == 1 then Prompt("Says a bunch of dumb stuff") if timerstarted == 0 then timer = GetTimer(e) timerstarted = 1 end if GetTimer(e)-timer > 3000 then convo = 2 timerstarted = 0 end elseif convo == 2 then Prompt("Says a bunch of even dumber stuff") if timerstarted == 0 then timer = GetTimer(e) timerstarted = 1 end if GetTimer(e)-timer > 3000 then convo = 3 timerstarted = 0 end end end