For those familiar with PHP programming, "def" is the same as "function". You define a function (method) you yourself have created.
If this is like PHP, you shouldn't need the "def" after you have defined the method. To use the method again, just type method(), assuming that "method" is the name you defined for it.
For example,
def stats(a, b)
Script here
end
I want to use stats() again in another part of the script. So I will just type:
stats(a, b) within the script, right? Please correct me if I am wrong. This is the first time I read RGSS.
If I am wrong, then I assume that "def" has a broader use. If so, please let me know. ^^;
I guess this is easier to understand when you're familiar with other languages... <3 I am happy. Thanks for the tut! ^^