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.
[RESOLVED] I need some help.

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 87
I just started using RPG Maker XP, and as of right now I'm trying to implement different (simplistic) money-making skills such as fishing, cooking, mining, smithing, etc... Just basic harvest-and-refinement type things so players can generate extra income, and they'll all share just about the same script. But I need some help on the scripts.

What I want to do is to make a switch (or perhaps something else?) that won't just be turned on or off, but have things added to it as well. When the value of the switch is greater than zero, it's considered on, when zero it's off. Example: fishing and catching a raw fish adds +1 to fish_switch, "cooking" (-1 raw fish, +1 cooked fish; requires fish_switch to be on) subtracts 1 from the switch, so players can't get unlimited goods without having to go through the process of fishing/mining/woodcutting. At first I thought that cooking (without a switch or something) wouldn't work or be an option when a player has no fish in their inventory, but apparently it can...

Alternatively, maybe someone can provide a script for an event which can replace item X with item Y?

Thanks in advance.

Edit: And just so you know, I've already made the events for actually fishing and retrieving fish, so I don't need help for that particular area.
« Last Edit: February 02, 2007, 05:52:52 AM by sdfgxcvb »

**
Rep: +0/-0Level 88
I dont think you need a scrpit, I'd use Events.

A Switch with more than 2 options is called a variable.

Give me a minute and I'll make an event for you.. Okay?


-Darthatron

Edit: Ok, here is fishing... You have a 50% chance of catching a fish. Next I'll work on cooking the fish alright?

Go towards the water and press Enter to try and catch a fish.

Edit2: Done, now you can goto the fire and cook the fish. If you cant work out how to make them into "Mining and Smithing" just ask me to make them too.

Go next to the fire and press enter to cook a fish.

P.S.

I dont know if this is what you were looking for but, just tell me if it isn't.
« Last Edit: February 02, 2007, 03:38:21 AM by darthatron »

**
Rep: +0/-0Level 87
Thanks! I actually figured out how to use conditional branches (didn't know that was an option before :P) and made the cooking/refining event before I checked back on this thread, but the fishing/harvesting event you made was better than the one I was already using.

**
Rep: +0/-0Level 88
Ok cool, well goodluck with the rest of your game, best wishes.

-Darthatron.