Jump to content


Photo

Can someone help me with this tutorial


  • Please log in to reply
4 replies to this topic

#1 The One

The One

    Advanced Member

  • Members
  • 492 posts

Posted 18 February 2013 - 08:03 AM

Can someone help me with this tutorial?

 

I really don't understand how all this works, and I really wanna be a programmer so I need to know.


Posted Image

#2 dada

dada

    VILLAIN

  • Administrators
  • 17464 posts
  • Locationsuperhell

Posted 18 February 2013 - 08:53 AM

If you were anybody else I'd instantly assume you're joking.

But with The One, one can never be too sure.

anyway moved to the right forum so THEY can make fun of you.


#3 Rajew

Rajew

    Advanced Member

  • Members
  • 1157 posts

Posted 18 February 2013 - 03:04 PM

What exactly do you not understand?
You have variables, which store information, and conditions/fork statements, which depending on input perform different outputs.


don't mind me, just postin' after a few brewskies

somebody’s Barkley --- could be another’s Monopolo.


#4 The One

The One

    Advanced Member

  • Members
  • 492 posts

Posted 18 February 2013 - 03:23 PM

What exactly do you not understand?
You have variables, which store information, and conditions/fork statements, which depending on input perform different outputs.

 

That's exactly what I don't understand


Posted Image

#5 Rajew

Rajew

    Advanced Member

  • Members
  • 1157 posts

Posted 18 February 2013 - 03:34 PM

What exactly do you not understand?
You have variables, which store information, and conditions/fork statements, which depending on input perform different outputs.

 

That's exactly what I don't understand

Okay:

A variable is like a little digital sheet of paper. You give it a name by which you can later reference it, and a value, which is what you write on the paper. So for example, you have a variable named One, equal to 1.

 

Now you can reference that variable later in your program (assuming the same scope but really let's not go in to that, esp. because this is RPG Maker and I don't think it matters) by asking for the value of One, or setting the value of One to something else.

 

Conditionals are... like how do I even explain this? The tutorial pretty effectively said what it needed to on all points but... You have a set of circumstances where different things will happen.

IF One [is equal to] 1 THEN [give item to player]

ELSE [print "how is One not 1"]

END

 

So, if the variable One is not equal to 1 (if it got changed in some event somewhere) then the player gets rewarded for his consistency, otherwise the NPC you're talking to gets confused and nothing happens.

 

I feel like I'm not helping at all and my post isn't that clear but I hope it somewhat helped you???


don't mind me, just postin' after a few brewskies

somebody’s Barkley --- could be another’s Monopolo.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users