purplystuff Posted January 31, 2013 Author Share Posted January 31, 2013 Hey guys.. I need a little bit of help. I'm making npc message box.. which is done.. But when he talks I want the message to write out letter by letter such as games like, Paper mario series.. and well most video games.. and no matter how hard I try, I can't figure out a way to do that. If anyone can help me I would greatly appreciate it!P.S. If you don't know what I mean.. I want it to write out LETTER-BY-LETTER. Link to comment Share on other sites More sharing options...
blkcrow Posted January 31, 2013 Share Posted January 31, 2013 are you rendering the text or are you using labels? If you are rendering the text you can do it easily with a timer. Link to comment Share on other sites More sharing options...
Growlith1223 Posted January 31, 2013 Share Posted January 31, 2013 ```If frmMain.picture1.Visible ThenIf Variable < Tick ThenfrmMain.label.Caption = Mid(arguments)Variable = Tick + End IfEnd If ```use that in the loop for the client. Link to comment Share on other sites More sharing options...
purplystuff Posted January 31, 2013 Author Share Posted January 31, 2013 I'm using a label, it's for npc message box. It displays npc attack say message, but writes out letter by letter through the label. Link to comment Share on other sites More sharing options...
blkcrow Posted January 31, 2013 Share Posted January 31, 2013 > I'm using a label, it's for npc message box. It displays npc attack say message, but writes out letter by letter through the label.Wich version is that? in EO 2.0 the attack say message are send from the server to the client with the PlayerMsg sub. Anyway whenver you are receiving the packet from the server store the message to a global variable and use the following code in the main loop```if Trim$(message) != vbNullString Then if timer < Tick Then if counter < Len(message) Then label.caption = MId$(message, 1, counter) counter = counter + 1 else message = vbNullString counter = 1 end if timer = Tick + 500 'This number means that a letter will be written every 500 milliseconds or half a second change to your liking end ifend if```message is your global variable wich holds the message, counter is a variable set to 1 outside the loop and timer is the variable wich is used to check if the desired time has passed Link to comment Share on other sites More sharing options...
Domino_ Posted January 31, 2013 Share Posted January 31, 2013 lol make scripted npc and use smtn like rand(1,100) for ticket.You can get a tut in tut section for npc scripting. Link to comment Share on other sites More sharing options...
purplystuff Posted January 31, 2013 Author Share Posted January 31, 2013 Npc Scripting? Huh.. Link to comment Share on other sites More sharing options...
Domino_ Posted January 31, 2013 Share Posted January 31, 2013 Or add to ur game conversation and add to it feature who allows to select between normal text and the code what blkcrow gave. 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