well how could i do an if inv full?
Printable View
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.
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 Notes :D For those Tutorial Readers.
Hope I helped bro.
you have fixed it to make it work?
or it already was working for you?