RGSS scripting dissections and explinations
#3
(09-06-2017, 07:50 PM)kyonides Wrote: Well, this kind of ignores all those terms I once explained when you didn't understand why the print command is called like that...

Syntax errors would be the programming equivalent to having a very bad orthography in an essay.

Siletrea wrote modulous #=> NameError! No modulous class or module or method was found!

Did you mean...?

module
modulo
modulus

exponent examples: 2**2 is the same as 2 * 2, 4**2 is the same as 4 * 4, where * asterisk is the symbol you need to make Ruby multiply a number or ** asterisks to get its exponent. In recent versions of Ruby, 2.2+, asterisks have other uses as well. Actually even in Ruby 1.8.1 you can use an asterisk to make an array if it's an argument included in a method definition, i.e.

def my_method(name, *arguments)
 print name, arguments.class
end

my_method #=> Pop up window shows up telling you the name you passed through and Array as arguments actual class.

orthography? no idea what that is
and I understood everything up until this point

Quote:exponent examples: 2**2 is the same as 2 * 2, 4**2 is the same as 4 * 4, where * asterisk is the symbol you need to make Ruby multiply a number or ** asterisks to get its exponent. In recent versions of Ruby, 2.2+, asterisks have other uses as well. Actually even in Ruby 1.8.1 you can use an asterisk to make an array if it's an argument included in a method definition, i.e.


def my_method(name, *arguments)
 print name, arguments.class
end

my_method #=> Pop up window shows up telling you the name you passed through and Array as arguments actual class.
the point of this thread is to learn from scratch so definining everything is key!
but if your using a new big term it has to be explained as well (because I'm sorry that have absolutely no idea what all the big terms are and therefor it doesn't make sense ((this is why I've been trying to explain this in a way that a 6 year old could read because I hope to slowly define all these massive terms so it makes sense)))

I faintly know that "star" * is the term for multiplication 2 * 3 = 6

what is a "asterisk"

is 2 "stars" ** an exponent?

if an array is a box full of numbers used for sorting then does an "asterisk" count as a number?

(I'm sorry if I seem like I'm playing stupid! I'm actually not! this is legit...and also why I wanted to make a full thread as it should help define everything)
[Image: SP1-Writer.png]
[Image: 55e3faa432d9efb86b8f19a6f25c0126-dawz35x.png]

new logo for Yesteryear created by Lunarberry!
Reply }


Messages In This Thread
RE: RGSS scripting dissections and explinations - by Siletrea - 09-06-2017, 08:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Help iwth script (RGSS Player crash) Whisper 3 8,529 06-17-2017, 05:03 PM
Last Post: Whisper
  How can I use the cmd of "require" in rgss superegp 2 5,915 11-03-2015, 06:16 AM
Last Post: kyonides
   Scripting in VX vs VX Ace Miharu 5 9,090 02-21-2015, 10:10 AM
Last Post: Taylor
   Combat animations via scripting; How? ZeroSum 2 5,112 09-20-2013, 06:58 PM
Last Post: ZeroSum
Question  RGSS stoped to work Chaos17 5 7,747 02-14-2013, 05:13 PM
Last Post: DerVVulfman
   Ruby, RGSS & General Code Discussion Kain Nobel 6 10,884 12-22-2012, 05:11 AM
Last Post: MechanicalPen
   [Request] Tut. for RGSS Eldur 9 11,907 12-07-2012, 04:27 AM
Last Post: DerVVulfman
   [ASK-RGSS] Behemoth's CBS alike Getsuga_kawaii 0 4,227 04-29-2010, 03:07 PM
Last Post: Getsuga_kawaii
   Scripting I think spazfire 7 10,170 04-12-2010, 03:21 AM
Last Post: DerVVulfman
   Beginner Scripting Tuts? KDawg08 1 4,136 03-31-2010, 11:03 PM
Last Post: Hsia_Nu



Users browsing this thread: 2 Guest(s)