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

Attribut & Speed NPC


Suppositoire
 Share

Recommended Posts

```
Public Sub TileScript (index, script)
Select Case Script
    Case 1
        Call PlayerMsg(index, "blablabla", BLACK)
        Exit Sub
    ' ADD NEW CASES HERE:
        Case 2
        Exit Sub
    ' Keep going on and on with cases, Case 1, Case 2, Case 3, Case 4, Case 5, and so on..
        Case 3
            Exit Sub
    Case Else
        Call PlayerMsg(index, "There is no script for this area.", RED)
        Exit Sub
End Select
End Sub

```
That's how your code SHOULD look. Keep all the Cases before Case Else, and keep incrementing the Case by 1 every time you want a new tile.
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...