All pastes #413873 Raw Edit

Miscellany

public text v1 · immutable
#413873 ·published 2007-03-28 19:06 UTC
rendered paste body
thomas_miller_AI = Mango.AIScripts.Create('thomas_miller_AI');

function thomas_miller_AI.Init(LuaAI)
	
        thomas_miller_AI.DoShout(LuaAI)
	LuaAI:SetUpdateInterval(8000)

	return true
end

function thomas_miller_AI.DoShout(LuaAI)

       local text = { "MOEP" , "Lecki" , "Lutschi" , "BOEP" };
         local i = 1
         while i <= text[i] do
	      i = i + 1
              i = rand_range(1,i)
              LuaAI:DoSay(text[i], 0)
         end
         thomas_miller_AI.Init(LuaAI)
         LuaAI:SetUpdateInterval(8000)
         return true
end

function thomas_miller_AI.Update(LuaAI)
	
	thomas_miller_AI.DoShout(LuaAI)
end