jakeob22 Posted August 15, 2009 Author Share Posted August 15, 2009 I dont know how to script it so that if you press "enter" next to my character it makes them talk. I want them to give you a quest that you can do. So can anybody help me make sombody that you can talk to that gives you a quest. And after I make that guy how do I script the rest of the quest? Link to comment Share on other sites More sharing options...
emplay Posted August 15, 2009 Share Posted August 15, 2009 Call PlayerMessage Link to comment Share on other sites More sharing options...
jakeob22 Posted August 15, 2009 Author Share Posted August 15, 2009 where do I put that message to get him to say somthing.P.S. Do I need to do playermessage(Hi my name is bob) ? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted August 15, 2009 Share Posted August 15, 2009 You would put under Sub ScriptedNpc. Like this```Case 1Call PlayerMsg (index, "Hi my name is bob")```Sorry if this doesn't work, i'm tired… Link to comment Share on other sites More sharing options...
emplay Posted August 15, 2009 Share Posted August 15, 2009 it will work srry i forgot to abbreviate message to Msg Link to comment Share on other sites More sharing options...
Ruins of Hell Posted August 15, 2009 Share Posted August 15, 2009 Also, you can't make it so that Enter makes you talk with monsters. It's control. You have to set the NPC's behavior to Scripted and put it under Script 1. Link to comment Share on other sites More sharing options...
Agoraphobic Posted August 15, 2009 Share Posted August 15, 2009 Here is a tutorial that will hopefully help.http://www.touchofdeathforums.com/smf/index.php/topic,38183.0.html Link to comment Share on other sites More sharing options...
Patrick Posted August 15, 2009 Share Posted August 15, 2009 @The:> You would put under Sub ScriptedNpc. Like this> > ```> Case 1> Call PlayerMsg (index, "Hi my name is bob")> > ```> Sorry if this doesn't work, i'm tired…It'sCase 1Call PlayerMsg (index, "lulz!", BLACK) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted August 15, 2009 Share Posted August 15, 2009 Sorry, forgot the colors, thanks for the help Frogurt Friday - üÑÂøчġġÑâ€Ã‘‚… You also need to change the case accordingly. So let's say this is my script.Case 1Call PlayerMsg (index, "Hi my name is bob", BLACK)Case 1Call PlayerMsg (index, "Hi my name is bob", BLACK)WRONG! Here's the right way.Case 1Call PlayerMsg (index, "Hi my name is bob", BLACK)Case 2Call PlayerMsg (index, "Hi my name is bob", BLACK)The difference is the cases. You would have to keep going up for each new script. Link to comment Share on other sites More sharing options...
Godlord Posted August 15, 2009 Share Posted August 15, 2009 @The:> Sorry, forgot the colors, thanks for the help Frogurt Friday - üÑÂøчġġÑâ€Ã‘‚… You also need to change the case accordingly. So let's say this is my script.> > Case 1> Call PlayerMsg (index, "Hi my name is bob", BLACK)> > Case 1> Call PlayerMsg (index, "Hi my name is bob", BLACK)> > WRONG! Here's the right way.> > Case 1> Call PlayerMsg (index, "Hi my name is bob", BLACK)> > Case 2> Call PlayerMsg (index, "Hi my name is bob", BLACK)> > The difference is the cases. You would have to keep going up for each new script.If someone doesn't know that yet, then I recommend him/her to read [these](http://www.touchofdeathforums.com/smf/index.php/topic,48978.0.html).Regards, Godlord. Link to comment Share on other sites More sharing options...
jakeob22 Posted August 15, 2009 Author Share Posted August 15, 2009 Thanks everybody you have all helped alot! Now I'm going to try to get it to work and post another question here if I have one. Link to comment Share on other sites More sharing options...
jakeob22 Posted August 15, 2009 Author Share Posted August 15, 2009 I went to character behavior and put it as scripted. Then I put the script at number one. I targeted my character and hit ctrl and it kind of showed me walking into him. The thing I typed was:Sub ScriptedNPC(index, Script)Select Case Script Case 0 Call PlayerMsg(index, "NPCz Work", 15) Case 1 Call PlayerMsg(index, "Shawn: Hi! Welcome to my house!", RED)End SelectEnd Sub Link to comment Share on other sites More sharing options...
Godlord Posted August 15, 2009 Share Posted August 15, 2009 > Sub ScriptedNPC(Index, Script)> Select Case Script> Case 0> Call PlayerMsg(Index, "NPCz Work", WHITE)> Exit Sub> > Case 1> Call PlayerMsg(Index, "Shawn: Hi! Welcome to my house!", BRIGHTGREEN)> Exit Sub> End Select> End SubFixed that.Regards, Godlord. Link to comment Share on other sites More sharing options...
jakeob22 Posted August 15, 2009 Author Share Posted August 15, 2009 I targeted with the code you gave me and hit ctrl. It just kind of looked like I was walking in to him. I need help to get the message at the bottom when I hit ctrl when targeting. Any ideas? Link to comment Share on other sites More sharing options...
Godlord Posted August 15, 2009 Share Posted August 15, 2009 @jakeob22:> I targeted with the code you gave me and hit ctrl. It just kind of looked like I was walking in to him. I need help to get the message at the bottom when I hit ctrl when targeting. Any ideas?That's vague, rephrase please. Explain clearly what the problem is and what you want.Regards, Godlord. Link to comment Share on other sites More sharing options...
Patrick Posted August 16, 2009 Share Posted August 16, 2009 he pressed control and the walking (attack) animation happened. I don't think he selected it as a scripted NPC. Link to comment Share on other sites More sharing options...
xelander Posted August 16, 2009 Share Posted August 16, 2009 I think it allways happen. Link to comment Share on other sites More sharing options...
emplay Posted August 16, 2009 Share Posted August 16, 2009 It's always going to play the attack animation even if it's a friendly npc. i don't think there is anyway to stop it from playing. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted August 16, 2009 Share Posted August 16, 2009 Go to the NPC editor… Click the NPC you want to talk... Go to the top right corner... And there's a section called behavior with a drop down box... Go down to Scripted... Now there's a script selector, put it at one... Now try again... And next time...Read the goddamned tutorials. 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