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

Bored While Scripting


balliztik1
 Share

Recommended Posts

This is Balliztik on a bored night…

```
' Executes when a player steps onto a Spaghettied tile.
Sub ScriptedTile(Meatball, Spaghetti)
Select Case Spaghetti
Case 0
Call PlayerMsg(Meatball, "This Spaghettied tile has no apparent use.", WHITE)
Exit Sub

Case Else
Call PlayerMsg(Meatball, "No tile Spaghetti found. Please contact an admin to solve this problem.", WHITE)
Exit Sub
End Select
End Sub

' Executes when a player clicks on an OnClick tile.
Sub OnClick(Meatball, Spaghetti)
Select Case Spaghetti
Case 0
Call PlayerMsg(Meatball, "This Spaghettied tile has no apparent use.", WHITE)
Exit Sub

Case Else
Call PlayerMsg(Meatball, "No tile Spaghetti found. Please contact an admin to solve this problem.", WHITE)
Exit Sub
End Select
End Sub
```

```
Case "/testspaghettis"
Call TestMain(Meatball)
Exit Sub

Sub TestMain(Meatball)
Call PlayerMsg(Meatball, "Spaghettis are working properly.", BRIGHTGREEN)
End Sub

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