achap89 Posted May 4, 2009 Author Share Posted May 4, 2009 Ok, so I am looking to learn to use Item, and tile scripts but I can't find a tutorial on them can someone please point in the right direction? (Preferrably with a link.) Link to comment Share on other sites More sharing options...
Kirby Lord Posted May 4, 2009 Share Posted May 4, 2009 I think they are the same principal as regular commands, but without the command, and put under scriptedtiles in the main.txt. Link to comment Share on other sites More sharing options...
achap89 Posted May 4, 2009 Author Share Posted May 4, 2009 do you have an example? becuase I really need to learn them? Link to comment Share on other sites More sharing options...
Kirby Lord Posted May 4, 2009 Share Posted May 4, 2009 Hmm… Let me check my main.txt. I think I only have one calling a Flash. Right now I'm trying to script a level block tile. So if i finish that and it works I'll show you it. Link to comment Share on other sites More sharing options...
Bobosk Posted May 4, 2009 Share Posted May 4, 2009 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 More sharing options...
Guest Posted May 4, 2009 Share Posted May 4, 2009 oh i needed those to…thanks Link to comment Share on other sites More sharing options...
achap89 Posted May 5, 2009 Author Share Posted May 5, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now