RMMV Simple Break/Create Item System [SOLVED]

Status
Not open for further replies.

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
178
Reaction score
38
I played a card game zenonzard before, and it has a simple craft/salvage system.
Click the item, get option salvage, get some craft points.
Click the item, get option create, use your craft points, you get the item.

So its basically just the item scene with the two options create or salvage. The items needed to be listed with or without the player owning it. The note tagging part would just be points_used(for creating) and points_give (for salvage)

I first tried working using event select item, but i cannot get the craft something you dont own. I can do the salvage because you own it, just subtract the item and add the craft points.

It could also just be a modification of the Scene Shop, where buy = craft, and sell = dissamble. But it wont use the default gold, but another variable. Yes, i think this is the simplest alternative i can think of. Another shop scene, that doesnt use the default gold as currency.

EDIT: Here's final product of eventing.. I abandoned the select item event

 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,841
Reaction score
8,235
First Language
German
Primarily Uses
RMMV
I first tried working using event select item, but i cannot get the craft something you dont own.
there is a possible workaround for that, but it will use up some item slots.

make the choice scrap/create before selecting item.
if chosen to create, have the select item choose from hidden item B instead of regular items.
every regular item you want to be able to create, have a recipe item set as hidden b and given to the player at start of game. and creating from the recipe should add the real item, not the recipe item itself

has the advantage that you can select when the player gets the recipe item of the same name, but will halve the number of item IDs available and require more work to setup.
 

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
178
Reaction score
38
i see.. so i basically give the player the "recipe" items when want to craft that card (so they can see it in the select item event), then remove those items when they cancel, then on confirm swap them in for the real one. is that correct?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,841
Reaction score
8,235
First Language
German
Primarily Uses
RMMV
then remove those items when they cancel
no need to remove, because hidden items are never displayed in inventory and therefore can't be used at all. That is why the recipe items should be set as hidden B (so that the hidden A can still be used for the regular purposes like event flags and don't appear in the recipes either).
and because of that you only give the hidden recipe items once, no need to bother the event itself with that.
 

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
178
Reaction score
38
Thanks! I can now separate craftable and non-craftable just by changing the item type. since i use a plugin for item category, items are displayed visible, also in the deck edit scene. I'll try work around.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,465
Reaction score
5,591
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Finally working actively on Tundra! I'd like to share my wife's WIP art for the starting map and a rough draft of one of the later characters, Katrina. She's very eager to hear any feedback you might have!1623790662347.png
Got my first vax today, arm is a bit numb, but nothing odd so far. :kaopride:
dYOm9IY.jpg
image_2021-06-15_212613.png
Looks a bit.....kid friendly. Then again, I suppose that does with with a lot of retro themes... Crap, already spotted a flaw xD
What a stupid week so far! I was really short on sleep yesterday thanks to my back hurting and not falling asleep fast enough, now today I am 2 hours late for work because my damn alarm clock changed from the alarm setting, to the radio setting which I always keep muted.
I introduced "booby trap" as another indirect way to fight supernatural threats in the game.
But, some of my players are using it to blow up random citizens on the street.
Not sure how "creative" they can go with it. :kaojoy:

Forum statistics

Threads
112,265
Messages
1,066,933
Members
145,882
Latest member
Vincentus
Top