Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
j4kl1ng3r

[XP] Quest Problem (Resolved)

Question

This is a pretty simple principle in theory but is proving very difficult to actually accomplish.

 

All I want to do is make it so you have to attain 8 Chicken Beaks from defeating chickens. The drop rate is 99%, when you finish the quest the NPC takes the Beaks and it's finished. I used a variable to determine the number of beaks you had, since in the game you can't actually determine a NUMBER of items just whether or not you have a SINGLE item. As if that wasn't frustrating enough, because, say, if you drop or sell this item, and have still defeated 8 Chickens, you will still complete the quest. However, seeing no immediate way around THAT problem I decided to press on, and see if I could get the variable to work in the battle so that when you defeat the Chicken it adds +1 to it. Well, that shit would never work, ever. I would just enter it in, in the battle field below the chicken troop. Nothing, nada, zilch. For the time being I have moved on and am now only requiring you to have 1 beak but the drop rate is now 20%.

 

How can I get it so that when you defeat a troop it adds to the variable? Am I missing something important? I'm almost positive I've checked every other possible problem with the quest, and I can't see one for the life of me. I even changed the conditions to "when the chickens health is below 0%".

 

Thank you, in advance, for helping me.

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

You need the game to recognize if you have 8 or more chicken beaks, right?

 

Instead of having it add to a variable, do this:

In a control branch, go to the last page, where it says 'Script...' and add this line:

$game_party.items[x] >= 8

Where x is the chicken beak's ID.

With that, it will check if you have 8 or more chicken beaks. This will set the conditional branch like an If statement. if 8 chicken beaks..., else...

Share this post


Link to post
Share on other sites
  • 0

AAAAAAHHHHH THANK YOU SO MUCH!

 

You are my new friend, and I have forgiven you for refusing to help me because I said "n00b". I will also not use n00b when referring to myself, as I usually use it as a prefix to any question I ask on a board that I've never been to before. Most of the time, if you don't outright tell people you don't know what you are doing, they will insult you and refuse to help. You reversed that course. Then again, I should not be so quick to submit to bad internet etiquette anyways. But whatevs.

 

Thanks a ton.

Share this post


Link to post
Share on other sites
  • 0

It seems as if I spoke too soon...Now I get an error:

 

NoMethodError occurred while running script

 

undefined method 'items' for #<Game_Party:0x3231a28>

 

What is this for? Did I enter in the ID wrong? Is the ID just the number that the Item is on the list? If I enter in the number like, "33: Chicken Beak" it says Syntax Error, but if I enter just 33 it gives me the above error.

 

So close, so close.

Share this post


Link to post
Share on other sites
  • 0

No, I forget that I edit some of the default scripts; 33 is the right hting to have there. Instead, add this in your Scripts:

 

Make a new script. (right-click, insert. Do this on the one that says 'Main'. This will give you a blank script right above main.)

Put whatever title you want.

Put the following in it:

class Game_Party
 attr_accessor  :items
end

 

That should fix your problems, senior.

Share this post


Link to post
Share on other sites
  • 0

I know why... you don't have any items, of that id, so it causes a nil error. Ergo, we must create another conditional branch (with no else condition)

 

here, I made a picture to make things easier than trying to explain them. I know it sounds harsh, but i don't mean it to. It just makes it easier on me, and it should for you too.

 

Itemdelio.png

 

Just replace the '1' with your '33'

Share this post


Link to post
Share on other sites
  • 0

Thanks, apparently, also, you do not put in the 0 before your number. So if it's 001 it's 1, not, you know, the other way around.

 

Cool, fixed...finally.

 

*whew*

Share this post


Link to post
Share on other sites
  • 0

No prob. Resolved

 

I thought this fix would be easier than trying to track a variable.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...