RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Finding healing herbs in bushes.

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 82
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:

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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
@>

**
Rep: +0/-0Level 82
OK thanks for your help, but i didnt actually use self swhitches!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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.
« Last Edit: June 18, 2010, 12:50:40 AM by modern algebra »

**
Rep: +0/-0Level 82
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


***
Rep:
Level 83
Kidfox70. It happens.
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.  :)
I don't say bless you when people sneeze, cause i'm not God. Blessing people is his job. Lolo?

**
Rep:
Level 76
RM2K3 Studied Learner
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.
Everything is always exactly $10 more than you can afford... unless you can get somebody to loan you ten dollars.

**
Rep: +0/-0Level 82
It might not sound hard to you but......... I fail (and im new at this!)