Announcement

Collapse
No announcement yet.

im back is been at least 5 week

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    im back is been at least 5 week

    im back after my old game the shadow knights got deleted i started a new
    game call darkknightz and i think this is going to be better then shadowknight i have a mini game right now. can some one teach me how to use
    flages varible and inputs iv been exprementing but so far all i can do is you flage to make when i touch the door of the house it opens ill put a video to show you what i mean

    http://www.youtube.com/watch?v=SSnG3oSMPh4
    Last edited by chigoo; 01-24-2008, 09:53 PM.
    thank you if you help me, dont thank you if you never helped me

    #2
    Re: im back is been at least 5 week

    Even if I knew how to use RPGM2 better than I currently do, I still think I would be unable to help you, as I have absolutely no clue what you are attempting to communicate.

    Comment


      #3
      Re: im back is been at least 5 week

      Originally posted by chigoo View Post
      [corrected] Can someone teach me how to use Flags, Variables, and Inputs? I've been experimenting, but so far all I can do is set a flag. So when I touch a door of a house, it opens. I'll put a video to show you what I mean.
      You really, really need to use periods and capital letters. No one wants to have to try to decipher a post (as evidenced by the last poster).

      To answer your question:

      1) Experiment with the preset data. The quickest way to learn is by doing. So change the flags and variables and see how it messes up the preset game. This will tell you a lot about what they do.

      2) I'm pretty sure this question was answered before. People used to ask this question all the time. If you had searched though the previous posts, there is a good chance you would have found the answer to you question (and learned a lot more besides).

      3) Because I'm a nice guy I'll try to explain what each term means. The only way to learn how to use them is to experiment, but if you at least know what's going on, you'll have a better chance to use them properly.

      Flags: Off and On states that are used to determine if something happens or not. However, any two options can be controlled by flags. "left or right", "this or that", and "true or false" can also be controlled using flags. The flag itself does nothing (except some special flags). They are only used by the game designer to let the scripts know what option to take at specific script branches and event conditions.

      Variables: Any number from 0 to 9999999 (some variables have lower limits). These can be used in the same way as a flag. In which case a flag is limited to 0 and 1, whereas a variable has a much greater range of options.

      Variables can also be used for math problems. Any time you need to figure out anything to do with numbers, you can use one or more variables. A variable number is simply a number you don't know. For example, in a battle formula, you don't know what weapon or armor the player will have at any point in the game because it's aways changing, so variables are used to keep track of these changing numbers.

      The data : Variable command could also be called the math command; although it can be used for other things. For example, the data command can also generate a random number between two variables by using the ? operation.

      Inputs: these are text strings. If you need to keep track of words that can change in the game, Like the name of an item you're using (which changes whenever you use a different item) or a name you let the player change (their characters name for example), then use an input. You can also use inputs to compare a player's answer to a question to the correct answer or allow the player to enter a password.

      I hope this gives you enough information to get started.
      Last edited by Dungeon Warden; 01-25-2008, 05:11 PM.




      The Crown of Order demo is here.

      Comment


        #4
        Re: im back is been at least 5 week

        i get what the mean but what i rellty need to know is how to use them. like let say i want to make my char talk to a person and the person says go talk to the other person and then that person say go kill 5 monsters and come back after then he give you an item and tell you to go give it to the first person. all i know is how to use flages but all i can do is the open and close thing and make them say to diffrent things
        Last edited by chigoo; 01-26-2008, 12:26 PM.
        thank you if you help me, dont thank you if you never helped me

        Comment


          #5
          Re: im back is been at least 5 week

          That is what script branches are for. You can either use SB : condition or SB : Sort to determine what happens based on what is happening in the game.

          For example:
          *person 1's script*

          Condition Variable[talking] < 2
          The person says "Go talk to the other person"
          Data : Variable[talking] = 1 + 0
          end
          Condition Variable[talking] = 2
          Thank you for the item
          Remove [Item]
          Note: You'll need to find out where the item is before you can remove it. You could require the party leader to have it on hand to make it easier. you can use Confirm Member Item and Confirm Party item along with the Flag [has Item] for members and the variable [total items] for the bag (shows how many of the tested item are in the bag).
          Data : Variable[talking] = 3 + 0
          End
          Condition Variable[talking] = 3
          "Thank you for giving item to me."
          End

          *person 2's Script*

          Condition Variable[talking] = 0
          "I have no reason to talk to you"
          end
          Condition Variable[talking] = 1
          Condition Variable[monsters] < 5
          "Go kill 5 monsters and come back after"
          End
          Condition Variable[monsters] => 5 (note "> 4" will also work)
          He gives you an item
          * use Member : Item or Possessions : Item to do this*
          Data : Variable [talking] = 2 + 0
          End
          End
          Condition Variable[talking] = 2
          Tells you to go give item to the first person
          End
          Condition Variable[talking] = 3
          Thanks you for giving item to the first person
          End

          The monster battles should be part of an event script so you can use
          Data : Variable[Monsters] = Variable[Monsters] + 1
          after each monster is killed. There is no easy way to do this with random encounters.

          I could go into a lot of detail about why I wrote the script this way but I think you really need to learn this on your own. I need to be clear that this is the shortest script that will do what you want. Spend some time learning why it works. This is a very efficient code.

          Note that the variables [Talking] and [Monsters] were made up for this post. You can use your own variables.

          There are a few advanced concepts you need to understand when working with items so you might need to learn about the item related commands, flags, and variables. Look at scripts and see how the preset data checks for items (the merchant script and the treasure chest script are worth looking at in particular).




          The Crown of Order demo is here.

          Comment


            #6
            Re: im back is been at least 5 week

            Something tells me your response will be met with a *does not compute*

            Comment


              #7
              Re: im back is been at least 5 week

              5 weeks = 11 days?



              Comment

              Working...
              X