well how could i do an if inv full?
well how could i do an if inv full?
for 2, i find reading tutorials and relating to other scripts previously made helps with the idea process, and as ILuffyewz said, lot of handy functions in the SRL include help us out a lot and save us plenty of time.
E:
SCAR Code:if invfull then // IF your inventory is full THEN...
writeln('inventory is full') //write (' ') in the debug box.
else // IF your inventory is NOT full then...
writeln('inventory is not full, too bad, go cry you little - non full inventory - noob!'); //write (' ') in the debug box.
ofcourse you need to include srl as well as call SetupSRL; in your mainloop ^^. btw ill get you some nice tuts if your interested in learning how to script.
Last edited by Heavenguard; 07-31-2010 at 08:22 PM.
Don't Troll, Don't Fight, Just keep the Respect
Status : Offline
Feel free to re-make my scripts ;D
Community Member
well im usually over at Rscheata.net coding with java... so im not new to scripting.... its just a change of scene so yeah tutorials would be good.
And if you want to see how InvFull works, it's in Inventory.scar. (It checks to see if every inventory spot has a black outline in it, and if it does, the inventory is full.)
Ill just copy and paste this from my old notes thread.
1. Unmatched Scar Scripting Tutorial for Beginners (Hands On) by WhoCares357 : This Tutorial Teaches you the basics of the basics. It is what I have read to learn how SCAR works, and how its standards are to be. This is the #1 guide I can point you out to if your new to SCAR and wish to start learning how to use it. WhoCares357 is a great teacher, I promise you will be inspired by him. He is the reason I started making notes.
2. Coh3n’s All-In-One SCAR Scripting Tutorial! Coh3n is probably one of the most useful people you will find in this world. This tutorial shows the basics to the advanced. Everything is explained Skillfully but in a quick and Easy-to-Understand way. I Highly recommend that after you first learn the full basic's of Scar from WhoCares357's Tutorial , you should read this.
3. This tutorial helps you solve errors you obtain while scripting. Its by JAD. It explains the most common errors that you will 100% encounter while learning how to script. Jad's Thread on fixing the most Annoying but Common Errors. After scripting for a while, you'll have no problem fixing errors in Scar by yourself.
4. If you still have problems scripting, or run into an error that you know you cant fix, don't hesitate to ask anyone on this site for help. Just go to the Scripting Help Forum and post your problem. Everyone on this site is helpful, they'll resolve your problem in no time, and you'll learn more then you thought you could from all of them.
and I doubt ull use this.. but this was a Notes thread I had made when I was learning scar [my first code lang] for the first time. Heavenguards NotesFor those Tutorial Readers.
Hope I helped bro.
Last edited by Heavenguard; 07-31-2010 at 08:31 PM.
Don't Troll, Don't Fight, Just keep the Respect
Status : Offline
Feel free to re-make my scripts ;D
Community Member
Last edited by Shuttleu; 08-01-2010 at 06:31 PM.
All my scripts are held on Googlecode git, so if you ever see a problem, fork it and send me a pull request
If a script is grey, it doesn't work, if it's colour then it does!
My Tutorials:-
Everything you need to know about setting up Simba, SRL and Reflection!, How to sort out the MSVCR71.dll error
How to set up players for autoing with Simba, SRL/Simba Standards (with examples), Defines
Auto Updater and Git, Using a testing branch for git, Adding SRL Stats to your script
Creating your own font set for Simba, Guide to Cups, How to make 1.45M (RSGP) a day (not really my tut)
Download a image and set it as your Desktop Wallpaper in C#, How to make your first PHP file uploader
<Coh3n> Shuttleu, fuck I love you right now
you have fixed it to make it work?
or it already was working for you?
There are currently 1 users browsing this thread. (0 members and 1 guests)