darkburnerrok16 Posted July 20, 2009 Author Share Posted July 20, 2009 Can someone send me or post the script for an NPC to talk when you press enter. I'll edit the number and message myself, just write a little message telling me where in the script.Thank you ^^ Link to comment Share on other sites More sharing options...
Patrick Posted July 20, 2009 Share Posted July 20, 2009 The button is ctrl to interact but the script will be```Case XCall PlayerMsg (index, "text goes here", BLACK)```You don't even need a script though. It has a box to input what you want the npc to say on interaction. The BLACK is the colour. You must put the colour in caps lock though.Enjoy! Link to comment Share on other sites More sharing options...
Ridrik Posted July 22, 2009 Share Posted July 22, 2009 What if i want to add more than 1? do i just typeCase XCall PlayerMsg (index, "text goes here", BLACK)Call PlayerMsg (index, "text goes here", BLACK)Call PlayerMsg (index, "text goes here", BLACK)etc..?Oh yeah it also has to be Exit sub at the end. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 22, 2009 Share Posted July 22, 2009 @Ridrik:> What if i want to add more than 1? do i just type> > Case X> Call PlayerMsg (index, "text goes here", BLACK)> Call PlayerMsg (index, "text goes here", BLACK)> Call PlayerMsg (index, "text goes here", BLACK)> etc..?> > Oh yeah it also has to be Exit sub at the end.Yes, that's exactly what you do.Also, you don't _need_ the exit sub at the end, but it doesn't hurt. Link to comment Share on other sites More sharing options...
Ridrik Posted July 22, 2009 Share Posted July 22, 2009 Hm… i have 2.7 and every command has that.. oh well, thanks admiral. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 22, 2009 Share Posted July 22, 2009 @Ridrik:> Hm… i have 2.7 and every command has that.. oh well, thanks admiral.It's added for good style; it exits the sub early, instead of finishing it's way down the sub. There are some situations where you would want it to continue down the sub instead of exiting early on that case; in this situation, you wouldn't have the Exit Sub command. Link to comment Share on other sites More sharing options...
Ridrik Posted July 22, 2009 Share Posted July 22, 2009 Basically yes, like you said, for a good style, easier to see which one's are which. 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