Chat.
#1
I was wondering how I would go about making a script where if a player says a certain phrase the game would respond. Some help would be appreciated.
Yes, I am a furry. Judge me if you want.
Did you like my post? Give me internets!
[Image: 76561198037771700.png][Image: 7923.png]
Reply
#2
(04-05-2011, 10:00 PM)Bramwell Wrote: I was wondering how I would go about making a script where if a player says a certain phrase the game would respond. Some help would be appreciated.

I never tried to make it, but I would guess something like this...

[lua]
link(game.Players.PlayerAdded, function(player)
link(player.Chatted, function(speaker, msg)
if msg == "reset" then
speaker.Character.Health = 0
end
end)
end)
[/lua]

Or something similiar to that. With some testing I could probably get it to work (should the above script not).
[Image: rogershanksluffy_display.gif]
Reply
#3
Thank you very much, as I was also looking for one of those scripts, however, what I had in mind was the game replying with a chat message.
Yes, I am a furry. Judge me if you want.
Did you like my post? Give me internets!
[Image: 76561198037771700.png][Image: 7923.png]
Reply
#4
If you're thinking about making a talking AI, I would give up. Otherwise, try using the message function.
[Image: rogershanksluffy_display.gif]
Reply
#5
game:chat(color, message)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)