lucifer1101 Posted September 6, 2008 Author Share Posted September 6, 2008 was wondering if there would be any way to pause.for ex i have a scripted npc that will say 1 thing and then i want him to wait X amount of time and then say something else Link to comment Share on other sites More sharing options...
Zananok Posted September 6, 2008 Share Posted September 6, 2008 I didn't understand about the pause thing :PAbout the npc, you mean like:Speak with him, and you get response:-HIAlways until you spoke 10 (x) times with him, then you get:-hello?Questions,From: Zananok Link to comment Share on other sites More sharing options...
lucifer1101 Posted September 6, 2008 Author Share Posted September 6, 2008 no i mean he sayshithen waits 10 secsand sayshellojust cuz what needs to be said is pretty big and nobody can read that fast Link to comment Share on other sites More sharing options...
Zananok Posted September 6, 2008 Share Posted September 6, 2008 Oh, now i understand, sorry.I wasn't sure if you wanted this for many npcs or just 1 so i did it for many, because you can use it for 1 too.Hope you don't mind if I explain with much details (maybe some1 is reading this topic for the same reason as you but don't know how to use it):1- Add this at the end of the 'main.txt' (but if you are using the 'sub test(index)' add it over it)```Sub npcspeech(index, script)Select Case scriptCase 0Call playermsg(index, "Hi, I'm a talking NPC. Note: I'm not a self aware A.I.! If I was, I you wouldn't be reading this message. I'm on case" & script & ".", 1) 'lol, just exampleCall RemoveTimer("npcspeech " & index & "," & 0)Case 1Call playermsg(index, "Hi, I'm a talking NPC. Note: I'm not a self aware A.I.! If I was, I you wouldn't be reading this message. I'm on case" & script & ".", 1) 'example 2Call RemoveTimer("npcspeech " & index & "," & 1)End SelectEnd Sub```2- Ignore the cases that I placed there, that's just for example (plus, it's funny :P), just edit it for your needsHow to use (exactly):To call it (here x is the case number and '10000' is in mille sec. _):```Call Settimer("npcspeech " & index "," & X, 10000)```To End it (here x is the case number):```Call RemoveTimer("npcspeech " & index & "," & X)```You said you wanted to say somethig then say something after 10 sec:```Call playermsg(index, "hi", 1)Call Settimer("npcspeech " & index "," & 0, 10000)```On the sub that I posted, place this in:```Call playermsg(index, "Hello", 1)Call RemoveTimer("npcspeech " & index & "," & 0)```Hope this helps,From: Zananok_ Link to comment Share on other sites More sharing options...
lucifer1101 Posted September 6, 2008 Author Share Posted September 6, 2008 lol its a bit confuzing but is ther any way of doing that for just 1 npc and being able to have it in sub quest1 Link to comment Share on other sites More sharing options...
Zananok Posted September 6, 2008 Share Posted September 6, 2008 Ops sorry if I confused it… Anyway, there is no way that it can be in a sub without to run it all or if its in case so, you do like the last post or you can also do like this one (1 npc only)Place this on the end of the main.txtSub npcspeech(index)Call playermsg(index, "EDIT THIS, HERE IS WHERE YOUR BIG MSG WILL BE", 1)all RemoveTimer("npcspeech " & index)End SubPlace this where you want to call it:Call Settimer("npcspeech " & index, 10000)Every thing is already settled up, just need to edit the red.Note: actually you can do it.. but it would be a big job + need .ini for a simple stuff as this…Sorry,From: Zananok Link to comment Share on other sites More sharing options...
lucifer1101 Posted September 6, 2008 Author Share Posted September 6, 2008 o well i will just post it with my other sub 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