Aeon Trag Posted August 3, 2009 Author Share Posted August 3, 2009 how can i make a npc respomd to a player saying "hello" ?Ty in advance. Link to comment Share on other sites More sharing options...
DrNova Posted August 3, 2009 Share Posted August 3, 2009 as in command prompted reactions? Learn scripting, and become excellent at it. Then buy some aspirin for the ensuing headaches. Or code it. Or take some acid and imagine it Link to comment Share on other sites More sharing options...
Aeon Trag Posted August 3, 2009 Author Share Posted August 3, 2009 As in…If -player says "Hello" - ThenCall PlayerMsg(Index, "Hello", 7)End If Link to comment Share on other sites More sharing options...
DrNova Posted August 3, 2009 Share Posted August 3, 2009 Way more complicated then that.As it currently operates, NPC's react via button interaction, go up to em and hit control button, and they either say whats typed into their editor, or run associated script. They dont do anything just from a player typing.Only decent thing I can think of, without you needing to completely recode npc's, is to make custom menu's for npc's with options for comvo, but thats a cheesy shortcut, and still horribly convoluted. :( Link to comment Share on other sites More sharing options...
Diskmaster Posted August 3, 2009 Share Posted August 3, 2009 Hao do u know this is impossible, there is a / command list, isn't there, so why not make a command called "hello" which checks which map they are on, and calls for a playermsg if it is the right one here is what I would do (not tested tho)```Case "hello"If GetPlayerMap(index) = your map #Call Playermsg(index, "the npc says hello", BRIGHTGREEN)ElseEnd If```ok, add that to ur / commands (preferably at the bottom of them) but change the Your map # to the map # the NPC is on, and you can change the the npc says hello to whatever you want(warning, hello in that is definately case sensetive, so watch out!)Hope it works! Link to comment Share on other sites More sharing options...
Bobosk Posted August 3, 2009 Share Posted August 3, 2009 you've got it completely wrong diskmaster, the commands don't function without a "/" Link to comment Share on other sites More sharing options...
Diskmaster Posted August 5, 2009 Share Posted August 5, 2009 … well, it is worth a try, the best I can think of Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now