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

NPC message


darkburnerrok16
 Share

Recommended Posts

The button is ctrl to interact but the script will be

```
Case X
Call 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

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.
Link to comment
Share on other sites

@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

@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

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