Kudos to Yato!
So instead of making a hell of a spam to you people, I gathered some questions I have in one thread.
First off a few things about me.
I am fluent in Procedural and Object Oriented Programming concepts.
I can script in Python, Java, and some more programming languages.
I can NOT script in Ruby though (syntax is not known yet) but I can hopefully understand what I read.
In other words, do not be afraid to talk to me using programming terms. We speak the same language on that part.
I just don't know well the Ruby dialect.
I put them in spoilers so it won't be a huge wall.
So here I shoot:
Question 1: (answered)
Question 2: (answered)
Question 3: (answered)
comment.
http://forums.rpgmakerweb.com/index.php?/topic/6248-script-call-equivalent-of-events/?p=87420
Question 4: (answered)
Question 5:(answered)
Question 6:(answered)
Question 7: (answered)
These seven questions can really lift my learning curve on Ruby and RGSS3 related stuff.
And it can be really helpful for anyone else fluent in other languages to do the leap in Ruby.
Thanks for your time people.
Whoever gives me any answers I will really appreciate it.
Thought thread with so many questions is not a good thing.
But on the other hand, nobody wants a spam of seven different threads, when these can merge under a common theme.
So instead of making a hell of a spam to you people, I gathered some questions I have in one thread.
First off a few things about me.
I am fluent in Procedural and Object Oriented Programming concepts.
I can script in Python, Java, and some more programming languages.
I can NOT script in Ruby though (syntax is not known yet) but I can hopefully understand what I read.
In other words, do not be afraid to talk to me using programming terms. We speak the same language on that part.
I just don't know well the Ruby dialect.
I put them in spoilers so it won't be a huge wall.
So here I shoot:
Question 1: (answered)
http://forums.rpgmak...events/?p=70304
params = []
choices = []
choices.push("choice 1")
choices.push("choice 2")
params.push(choices)
params.push(0/1/2 this part is where you press cancel and which choice to default)
setup_choices(params)
What I see (correct me if I am wrong) Q1.0:
Params and choices are vecors, like one dimention arrays
you add into the choices vector two choices using the method push.
then you push the whole vector choices into params. (WHY IS THAT?)
Then you add into params something. I am not sure what since it is an instruction in the parentheses.
Finally you use a method setup_choices(params) (Does that show the choices on screen? What is going on?)
Q1.1: Can you please show me how to show 10 choices for instance? No I don't wanna use Hime's script, I just wanna learn how to use the code above in a proper way and syntax.
Q1.2: Also, how should I handle these choices? Is it a good idea to use a variable and an IF condition? (first thought).
params = []
choices = []
choices.push("choice 1")
choices.push("choice 2")
params.push(choices)
params.push(0/1/2 this part is where you press cancel and which choice to default)
setup_choices(params)
What I see (correct me if I am wrong) Q1.0:
Params and choices are vecors, like one dimention arrays
you add into the choices vector two choices using the method push.
then you push the whole vector choices into params. (WHY IS THAT?)
Then you add into params something. I am not sure what since it is an instruction in the parentheses.
Finally you use a method setup_choices(params) (Does that show the choices on screen? What is going on?)
Q1.1: Can you please show me how to show 10 choices for instance? No I don't wanna use Hime's script, I just wanna learn how to use the code above in a proper way and syntax.
Q1.2: Also, how should I handle these choices? Is it a good idea to use a variable and an IF condition? (first thought).
A working project expample with let's say 7 choices would be perfect for question 1
Can somebody make one to show me how it is done correctly?
Can somebody make one to show me how it is done correctly?
Can someone explain me what this guy is talking about on the first part of his
http://forums.rpgmakerweb.com/index.php?/topic/6248-script-call-equivalent-of-events/?p=87420
Question 4: (answered)
Can I have a 100% working example of some stuff, so I can learn the syntax of Ruby?
A project that demostrates them would be perfect too.
Q4.1: For loop that does for i = 1 to 10 show HELLO WORLD
Q4.2:
IF variable1 = 1 THEN show HELLO WORLD1
ELSE IF variable1 = 2 THEN show HELLO WORLD2
ELSE
show HELLO WORLD Default
END IF
A project that demostrates them would be perfect too.
Q4.1: For loop that does for i = 1 to 10 show HELLO WORLD
Q4.2:
IF variable1 = 1 THEN show HELLO WORLD1
ELSE IF variable1 = 2 THEN show HELLO WORLD2
ELSE
show HELLO WORLD Default
END IF
Is there a "Case" command Equivalent? that can substitute the IF used above?
Like the Select Case command on other programming languages.
Like the Select Case command on other programming languages.
Can you show me a working While loop with an exit command that does the same as the For Loop of 4.1?
Q7.1: How do you declare your own class, like named ExampleClass with a local, and a global variable, how do you syntax its constructor,
and how do you create a method inside it that shows
"hello world ", global_variable_value
Q7.2: How do you make an instance of ExampleClass, named exampleInstance?
and how do you create a method inside it that shows
"hello world ", global_variable_value
Q7.2: How do you make an instance of ExampleClass, named exampleInstance?
And it can be really helpful for anyone else fluent in other languages to do the leap in Ruby.
Thanks for your time people.
Whoever gives me any answers I will really appreciate it.
Thought thread with so many questions is not a good thing.
But on the other hand, nobody wants a spam of seven different threads, when these can merge under a common theme.
Last edited by a moderator:

