Announcement

Collapse
No announcement yet.

let me loot the treasure chest please!

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

    let me loot the treasure chest please!

    I am fairly new to the RPG maker three, and I appreciate all the posts that helped me figure out variables. My current problem is that I have a standard event that envolves a treasure chest, but I cannot loot the chest. Event code settings are set to touch, and so i am assuming the chest should be looted when I touch it. Inside the chest i have a jail key, which is shared variable four. Event codes include group gets treasure item, which is the key, and variable 4 increases by one. I know i'm probably overlooking something simple, but I cannot figure out why I cannot loot the chest! Please be very specific in what needs to be done, as again i'm very new to this game.

    Thanks!

    #2
    Re: let me loot the treasure chest please!

    Try putting this in your chest event:

    - Val. Cond. Branch - checks variable 4 (0-1)
    *If v. 4 = 0 - Effects>Play Sound Effect - Chest 1
    *********- Display>Play Animation - (chest) This makes the chest open.
    *********- Display>Message Display - 'You open the chest, and find a Jail Key inside!'
    *********- Party Control>Obtain Treasure - 'Jail Key'
    *********- Property Control>Increase Shared Variable (4) +1
    *If v. 4 = 1 - NONE (This keeps people from getting the same thing from the chest over and over.) You can also do this by changing modes, but since you're going to be increasing a variable anyway, you might as well use it to keep the chest from being looted again.

    One more thing....why is the chest set to 'touch'? Why not change it to 'button'?
    Last edited by Ωbright; 06-10-2007, 12:31 AM.

    Comment


      #3
      Re: let me loot the treasure chest please!

      I would have just used a normal treasure chest event, then place an auto event that, when the player gets the jail key, variable 4 is set to one (assuming variable 4 is story related).

      Is there a reason you used a normal event instead of a treasure chest event?

      Comment


        #4
        Re: let me loot the treasure chest please!

        Well you could do that, but it would require using 2 events to do the work of one. The difference in data required is negligeable, but cumulative.

        [EDIT] I left out a very important line of code in the post above this one...it's fixed now. Oops.
        Last edited by Ωbright; 06-10-2007, 12:36 AM.

        Comment


          #5
          Re: let me loot the treasure chest please!

          It's only 2 events if said variable for is needed for the story. Otherwise, only one event is needed.

          Comment


            #6
            Re: let me loot the treasure chest please!

            Thank you Obright. I understand what was happening now lol. I appreciate you taking the time to list what to do step by step. Your instructions were very helpful. MPG maker 3 is getting more interesting as I figure how the basic stuff and how to use variables with modes effectively.

            Thanks again Obright!

            Comment

            Working...
            X