The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: mattyrose2 on June 14, 2010, 10:55:40 AM

Title: Finding healing herbs in bushes.
Post by: mattyrose2 on June 14, 2010, 10:55:40 AM
OK guys i need help!

I have 3 bushes near each other and i want them all to give you exactly one healing herb.

Bush 1. How can i set it so that when you click on one it gives you 1x healing herb but if you click on the same one again it doesn't.

Bush 2. Then move on to next bush it gives you 1x healing herb but if you try again it doesn't.

Bush 3. Then same as bush 2.

Thanks :blizj:
Title: Re: Finding healing herbs in bushes.
Post by: modern algebra on June 14, 2010, 11:31:30 AM
Use self-switches. So have the first page of the event give you the herb and then turn on Self-Switch A. Then make a new page and have the condition on that page be self-switch A.

Alternatively, you could do something like this on one page of the event:

@>Conditional Branch: Self-Switch A is OFF
  @>Change Items: Healing Herb + 1
  @>Text: You received 1 Healing Herb!
  @>Control Self Switch: A = ON
  @>
: Branch END
@>
Title: Re: Finding healing herbs in bushes.
Post by: mattyrose2 on June 17, 2010, 11:00:34 AM
OK thanks for your help, but i didnt actually use self swhitches!
Title: Re: Finding healing herbs in bushes.
Post by: modern algebra on June 17, 2010, 11:15:43 AM
What did you use? If you used Erase Event then the events will return the next time you enter the map. You can use regular switches if you aren't using RMXP or RMVX, since earlier versions of RM don't have self-switches.
Title: Re: Finding healing herbs in bushes.
Post by: mattyrose2 on June 22, 2010, 07:01:51 AM
Oh sorry should have told u im using RPG maker 2k3.
This is what i did:

Page 1:
Message: you search bush and find healing herbs.
change item: healing herb add 1.
Switch operation:  [0002:bush] ON

Page 2:
Precondition: 0002:bush is on.

Branch if switch [0002:bush] is ON
Message: you search the bush but find nothing

Title: Re: Finding healing herbs in bushes.
Post by: Kidfox70 on June 22, 2010, 10:44:19 PM
This might go without saying, but when your Event is on the second page, you don't need that conditional branch. The second page is what will always be active, and since there is nothing on the page, but the message of you not being able to take any more, that is. Also you could do it all on one page like MA said. But instead of self switches, use real switches, again like MA said. But, eh.  :)
Title: Re: Finding healing herbs in bushes.
Post by: nosnibor on June 23, 2010, 04:07:47 AM
Wouldn't it be the exact same as making a chest? Possibly with some kind of timer attached so they'll regrow? It doesn't sound that hard.
Title: Re: Finding healing herbs in bushes.
Post by: mattyrose2 on June 25, 2010, 10:52:49 AM
It might not sound hard to you but......... I fail (and im new at this!)