The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: mbdude on August 14, 2008, 02:51:54 AM

Title: RPG 2003 item problem
Post by: mbdude on August 14, 2008, 02:51:54 AM
Hi everyone. I'm having a problem with items in RPG Maker 2003.

I'm trying to do a basic thing where there's a guard standing that won't let you through unless you have an item. The idea is that you need to go to a shop and buy the item. But whenever I test it, it won't seem to recognize that I have the item, even after I've bought it. I set the precondition to "(item) held" and everything but it just keeps acting as if I don't have it.

Anyone have any ideas on what to do? Any help at all would be appreciated.

Thanks!
Title: Re: RPG 2003 item problem
Post by: Kojinus on August 17, 2008, 11:54:09 PM
Try something like this.
Make an Empty event space where you want the guard to stand after he sees the item that you need, so that you can get past.

Go to the Events on the guard, and select "Conditional Branch"

<>Branch if (Your item) Possessed
   <>Message: I see you have (Item), You may pass.
   <> Switch Operation: [####:Gp2] ON  <-- EDIT
   <> Switch Operation: [####:Guard] ON
: Else Handler
  <>Message: You may not pass unless you have (Item) in your possession, Leave this place at once!
  <>
:End
<>
                                                                                                                                         
Now, Make a Page Two on that guard, and set a Precondition of "[Check] Switch [Guard] ON"

That way once it turns the switch on, you'll get a blank guard now, Moved in position. Feel free to add a Message on Page two saying something like "You have the (Item), You may enter."

And there ya go. :D I hope that helped you.

EDIT: GP2 is the second page of the initial guard. Making it so that the space is empty, I realized that with my trade two event locations event, The instant you moved off screen, and came back, the guard would be there again. Creating yet another flaw.

P.S. Sorry for the late edit on this. Not like you're going to see it anyway though. Pointless to sign on for a day, ask something, then never check on it. =/ Oh well, It's here if you ever decide to come back.