|  | 
| 
 Sign messages 1 Attachment(s) Hey guys, today I made something similar like the say2() command for Shaded Legend. Itīs nothing special and I didnīt spend that much time on this. Basicly I first of wanted to try having it look like on Atlantis but for now this was ok aswell for me :). If you use it you might want to change some things (as example the layout). How you can change the layout: 
 It is right this part PHP Code: 
		PHP Code: 
		How you can use this: This is just a really simple example: 
 Here you can find the script: http://pastebin.graalcenter.org/read...d=102062213349 For those of you using a custom movement keep that there is enabledefmovement (line 101) and disabledefmovement (line 17) used. You should fit that with your movement than. Well I donīt think there is that much more to say. If you have any suggestions or if there is anything bugged feel free to tell me. | 
| 
 You know I released my version of an upgraded say2 system with scrolling and input and everything, right? | 
| 
 Constants should typically be in ALL_CAPITALS. | 
| 
 Quote: 
 Quote: 
 | 
| 
 Not bad :P Good work! | 
| 
 you should probably reserve functions with on prefixed for actual events that are being thrown. also rather than constantly creating the UI each time you want to use it, create the UI controls the first time and hide/show as necessary. | 
| 
 Dusty I am fixing this up a bit, probably not efficiently though.. I wanted to reread this statement to see if anyone has said anything helpful and so far not really. Do you mind linking me to yours? Currently what I've fixed on this is hiding and showing and not destroying. The problem where you had to click the screen to actually press a button. I've made it so you set the speed externally depending on who or what is saying it (I should add in if it is a person or sign) I have made it so it can speed up the process by pressing right a few times each time making it go faster. At the end of the page if you press right it ends the page (this means you need to use say3A and say3B, B for when there is another page). I need to add it to finish the page when down is pressed and to go back a page when left is pressed. Possibly add in head images if that is possible, and each page will have to be put in externally while using a timeout. This will allow there to be use of GUI buttons if there might be a yes or no question or whatever... Dusty please get back to me? Yours could be more efficient to work with since I'm not a great programmer and still claim the basics at the least, as I always will since there is always much to learn. :] PHP Code: 
		.1 and .11 is the text speed, which subtracts by .02 each time the right key is pressed. | 
| 
 So, I've edited the program Callimuc created, had a few ... differences in expectations of the script so I just wanted to post it like it was open-source. PHP Code: 
		How you can use this: 
 params[0] 0 is the main messages, 1 is the ending message that says press A. params[1] This is the sleep time per letter in the message. When it comes to a period it stops for the sleeptime +.15 An older NPC might have a slower speak time... Players can hold down left or right to slow down or speed up the text. Also players can press down to skip to the end. params[2] Place your gani name in quotes which you want to be set on each message. Idle might be what you want it to set, for mine it starts in bed. params[3] List your comment here. Here you can find the new script: http://pastebin.graalcenter.org/read...86866510101046 When you enter into the reading part it tells the script that you are reading with this.textStop = 1; If you aren't reading the next message will come up after the timeout. (I have yes or no buttons pop up to activate the next say3) Also, each time a message is finished this.read adds by 1. For my buttons I had the buttons pop up on 1 (starts on 0), and then do ++ so it stops everything on 2, and when a button is clicked it goes to 3, when the next say3 happens. For the future: As you can see I tried to have the message repeat when the up button was pressed... I had it working once but I broke it and gave up. Also I'd like to make the external side, the actual npc be able to go back to previous messages. Possibly have an easier way to have heads and directions show. Additions: Constants are capitalized - Thanks cbk. The new script works without having to click the GUI to use the buttons, I feel it is redundant and shouldn't need to do that. It is a great way to loop through say3s. Cons: The button that I have is outside of the class, and the timeout that calls the different say3's are outside of the class. (But I suppose that is how it should be.) Please let me know if there is anyway we could improve on his program. I couldn't find Dustys script anywhere. I don't think one should come into a thread, mention they have done it but not show where, and I have searched. Thank you Callimuc. -edit- I broke the down key for the ending say3's, that will have to be edited later. | 
| 
 Quote: 
 | 
| 
 Ah I see... I'm not sure I would take your sign over this one, however I am interested in the chickens.. is it alright if I use the chicken images?  Actually I'm not sure, I can understand why you wouldn't want the whole sign to 'move on' without you per se... But his I feel has a nice animated touch... so I don't know.. Also modify the old line with this: PHP Code: 
		I've also made it show the window on the second messages so it doesn't 'take over control'. I'll post the finished results when I'm done. I still would like to have it go back to separate old messages but that wouldn't be part of the class I don't think... Unless it can save previous ones... I don't know. It would require some technical thinking that I'm not ready to give yet. :p I'm wondering if I should reposition the join say3 part, so you can do the message first, and if you leave everything else null it will take the defaults... (I've finished this, message comes first, then gani, then text_speed, then if it is a continuing message or not. So you could just do say3("message"); and leave it at that should you want to. Defaults are idle gani, .1 text speed, and ending sign. Once again I'll repost when it is finished.) Problems noticed: Currently having a problem with using it on another level, I don't think index 203 or 204 is used, however they aren't showing. I think this could easily be fixed by just making it a GUI instead of images. | 
| 
 Same as last time... Instead of with image, so it works in other say3's (Maybe I did something wrong) and I find it easier to work with, I've made them gui texts. Also, if you have ..., it won't pause for time+1 after each dot, it will now do the three dots the pause. Somehow I'd like to add a going back button, and I'd like to show the scroll speed that will be visually appealing still. PHP Code: 
		 | 
| All times are GMT +2. The time now is 03:25 AM. | 
	Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
	
	Copyright (C) 1998-2019 Toonslab All Rights Reserved.