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

Edit scripts (read the post)


Wing
 Share

Recommended Posts

Ingame scripting? I haven't used eclipse in ages, but in elysium, its /editmain.
In playerworlds, its /editscript
just try things like that.
F1 might have a panel, with that on it.
As for the rest of your question, i'm just as confused as everyone else.
Link to comment
Share on other sites

EE 7? Lol. Gues you mean EE 2.7

Anyways, here's how to do it;
Scripted tile looks like this:

```
Sub ScriptedTile(Index, Script)
Select Case Script
Case 0
Call PlayerMsg(Index, "This scripted tile has no apparent use.", WHITE)
Exit Sub

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

```
To add new cases, start like this:

```
Sub ScriptedTile(Index, Script)
Select Case Script
Case 0
-Your script here

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

```
This will be script no. 0 in map editor.

And go on like this:

```
Sub ScriptedTile(Index, Script)
Select Case Script
Case 0
-Your script here-

Case 1
-Your next script here-

Case 2
-Your third script here (You can keep going as long as you want)-

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

```
Case Else is a case you probaly should let stay, it executes if none of the other cases are specified and the specified script for the tile that is stepped on.

Hope it helps you, I wish you good luck with SadScript

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