Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Pause


lucifer1101
 Share

Recommended Posts

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 script
Case 0
Call 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 example
Call RemoveTimer("npcspeech " & index & "," & 0)

Case 1
Call 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 2
Call RemoveTimer("npcspeech " & index & "," & 1)

End Select
End Sub

```2- Ignore the cases that I placed there, that's just for example (plus, it's funny :P), just edit it for your needs

How 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

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.txt

Sub npcspeech(index)
Call playermsg(index, "EDIT THIS, HERE IS WHERE YOUR BIG MSG WILL BE", 1)
all RemoveTimer("npcspeech " & index)
End Sub

Place 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...