Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 RGSS scripting dissections and explinations
#5
(09-06-2017, 11:01 PM)DerVVulfman Wrote:
(09-06-2017, 07:31 PM)Siletrea Wrote: 4: it uses "pacman" < and "reverse pacman" > along with "hashtag" # "money" $ "star" * "squiggly A" @ and a buttload of "dots" . and "double dots" : just to list a few

Symbolism Syntax:
  • * star ... actual name is "asterisk".  We use a lot for math as the multiplication symbol.
  • # hashtag ... has been referred to as the pound symbol (as in weight measurement).
  • $ money ... er, just the dollar symbol here. We use to define a special 'global' variable.
  • @ squiggly 'a' ... officially called the 'commercial' symbol, usually recognized as the 'at' symbol. We use to make 'instance' variables'*
  • & thingie (not listed) ... we think of as the 'and' symbol is called an ampersand. Good for doing if... tests.  'if this & that.'

* For scripters, instance variables are better to use than globals.  They use less resources, and forces better coding.

OHHHH ok! this definitely helps! just knowing what the proper term for * is really helps clarify things!

star = asterisk
exponent = **
but what do exponents do?

and @ is better then $ because while $ lets you access anything from other scripts @ is less flimsy?

the only parts confusing me now about the previous explanation is this
Quote: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.

argument?
method definition?

the need for "def" which I think means "Definition"
and ".class"

and why is almost everything called a variable? what IS a variable?

sorry if I'm prying here and this seems stupid but I get hung up on stuff like this unless its explained fully I won't be able to take anything from it!
[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, 11:13 PM

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



Users browsing this thread: