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

Item/tile Scripts?


achap89
 Share

Recommended Posts

Here's a basic **Scripted Item** that gives a Spell.. (it won't work for you, because you don't have the correct functions to run it)
```
Case 1
If GetPlayerLevel(Index) => 5 Then
If FreeSpell(Index) = 1 Then
Call GiveSpell(Index, 5)
Call TakeItem(Index, 2, 1)
Call SendPlayerData(index)
Else
Call PlayerMsg(Index, "You don't have any free spell slots to learn this spell!", 10)
End If
Else
Call PlayerMsg(Index, "Your level is not high enough to learn this spell.", 10)
End If
Exit Sub
```
and Here's something your can use for a **Scripted Tile** [http://www.touchofdeathforums.com/smf/index.php?topic=984.0](http://www.touchofdeathforums.com/smf/index.php?topic=984.0)
Link to comment
Share on other sites

Oh, I probably should have posted this, I looked in my main.txt file and found the subs and looked at them for a while and made a block script for my game that works.  Now I feel like a total Blonde lol it was so easy XD!
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...