and was wondering how to make so that the engine read my say and compare with type a goal
Ex say1 = {"Hello," Let's talk ","? "} Example if I say a sentence with these words he run a function
Sorry for not being so clear
addhook ("say","iSay"); function iSay(id, txt) 	 	if (txt=="roflcopter") then 		--do action 	end 	return 0; end
addhook ("say","iSay"); randomtable = {"hello", "ik moet kakken", "Tomate"}; function iSay(id, txt) 	 	for i=1,#randomtable do 		if (randomtable[i]==txt) then 			--do action 		end 	end 	return 0; end
badtal={ "123", "321", "000"} addhook("say","CensorText,9) function CensorText(id,t) for _,word in pairs(badtal) do if t:lower():match(word) then -- your action end end end
verbs={ 	walk ={ 		walk, 		walk, 		walks, 		walk, 		walk, 		walk, 		walking, 		walking, 		walking, 		etc etc. 	}, 	run, 	do, 	plant, 	write, 	etc. etc. etc. etc..... 	 }