Announcement

Collapse
No announcement yet.

Event Code troubles for a noob.

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

    Event Code troubles for a noob.

    Ok, I've never worked with any of the other RPGMakers, so I'm as noob as it gets here. I have some VERY VERY limited programming experience, mostly in modifying HTML after an editor does the hard work, so some of this is greek to me. I keep thinking I've figured something out, but nothing I try works here... anyway, here's the problem I'm having.

    My game opens with a scene where the protagonist wakes up late and his mother scolds him that he's going to be late. He's supposed to meet someone at the center of town to go on a trip. She tells him to visit his girlfriend before he goes and gives him an item that he's supposed to bring with him (This item was supposed to trigger a later event.) Now, after the dialogue ensues and he gets the item, my first problem occurs. He can speak to her again and can get the item all over again. How can I prevent this loop? It's not an auto loop, I have to choose to speak to her again but still, in the future this problem would allow a player to stock up on rare items, so I'd like to prevent it.

    Second, I set up an auto event for when he walks out the front door. It's an invisible icon and placed right outside the door so he can't miss it. It's supposed to set his mother to mode 2 so that she no longer engages in the original dialogue, but rather scolds him for wasting time. Only, it doesn't work. I set it to auto with "value=specified value" and then her name and "variable 02=1"

    Apparently, despite thinking I had figured it out, I don't know what any of this means because I'm not getting any change. She stays in mode one and repeats the original dialogue. This is a problem I'm having with several events, so if anyone can help me with this one instance, it should help me figure out the rest as well. Any help would be appreciated.
    Last edited by Lucen; 01-08-2006, 07:44 PM.

    #2
    Re: Event Code troubles for a noob.

    Okay, for the first problem i think you want to use a variable. You could use modes but I think a variable would be easier. So in the mother's event do a Value Conditional Branch on Internal Variable 01. When Int Var 01 = 0, do the original dialouge and give the event. And Increase Int. Var. 01 by 1. Then under the second part of the branch do Int Var 01 = 2, and have her say something different and not give the item.

    For the second problem, you're trying to change the mode but you're actually changing a variable. To change the mode use the Modify Mode command. Choose which event you want to modify and choose which mode you want to change it too.

    I hope you understood that. If not someone who can explain better should be along shortly.
    I want that Mulan McNugget sauce, Morty!

    Comment


      #3
      Re: Event Code troubles for a noob.

      Ok, this feels like it's starting to make a little bit of sense to me. (Though I've thought that a few times in the last two days and been wrong, hehe) My question is why, if I'm starting with an internal value of 0 and adding 1, do I then set the value of the next dialogue to be 2?

      Thanks for the response by the way. I appreciate the help.

      Edit: Ok, I got the first part working just fine. I didn't need to set the value to 2 though, it work with the value at 1. Anyway, my second question is irrelevant as of now, but I'm guessing I'll need to change modes down the line so if someone can explain how I can set an auto event, or even a touch event to switch someone's mode, I'd appreciate it.
      Last edited by Lucen; 01-08-2006, 09:27 PM.

      Comment


        #4
        Re: Event Code troubles for a noob.

        My question is why, if I'm starting with an internal value of 0 and adding 1, do I then set the value of the next dialogue to be 2?
        Oops, looks like you figured it out but yeah that was a mistake, should have been 1.

        To change an events mode you the Modify Mode command.
        I want that Mulan McNugget sauce, Morty!

        Comment


          #5
          Re: Event Code troubles for a noob.

          Make sure the mode already exists before you attempt to use the Modify Mode command. If you forget you'll have to save the event as is (setting it to a mode you don't want it to go to) then go back and make the mode, then go back to the event and change which mode it changes. Its just a waste of time.

          P.S. Modes are easier than variables.
          stodi no na ka cenba

          Comment


            #6
            Re: Event Code troubles for a noob.

            Originally posted by theStormWeaver
            P.S. Modes are easier than variables.
            True, but they use Much more memory. It adds up if you are doing it a lot.

            Learn Variables! They are easy and efficient. Plus there are folks here who will help with the learning process.

            Peace.

            MOO!




            Comment

            Working...
            X