@TheGameAfter Make sure it is "Cooking" with a capital C if your profession name also has a capital C. Also just to make sure, but you are going into your inventory and "using" the recipe item before you load the scene?
MZ [CGMZ] Crafting
JS Plugin Releases (RMMZ)Yes, I did make sure to 'use' it (by the way it could be a point in the plugin info, took me some time to figure this out).
Ok so after a few checking about spelling/letters turn out the recipe I use was off in one letter, all works now, thank you so much for your help.
Edit: one more question: are there is a way to activate the recipe without the player clicking on it on the menu? for example by turning on a switch?
similar to the above in the 'Professions' plugin you add the 'level' option, what about activating/show it only when a switch is on?
@TheGameAfter Yes, use the plugin command
CGMVRecipes Discover RecipeName true/false
to discover recipes (MV version). MZ Version has its own plugin command as well for discovering recipes.
The same plugin command exists for professions as well.
CGMVRecipes Discover RecipeName true/false
to discover recipes (MV version). MZ Version has its own plugin command as well for discovering recipes.
The same plugin command exists for professions as well.
Thanks, that will work. And as a suggestion, I think it still will be useful to have an option to connect each item recipe' to a specific 'switch' you can show on the menu when turning on.
Ok, I just try to use this plugin commend but it didn't work for some reason, the same receipt from above, is under the same professions name 'cooking'. any idea why it does not show the receipt when using this plugin commend?
sorry, wrong picture, one second, trying again, maybe is the 'c' again.
Edit: change it still no working, here:
sorry, wrong picture, one second, trying again, maybe is the 'c' again.
Edit: change it still no working, here:
@TheGameAfter Put the recipe name, not the profession name.
Thanks, works like a charm.
Can I suggest a Quality of Life feature?
Is it possible that on the list of recipes in the plugin menu to list the name of the recipe first? I've been using the plugin for a project and I find myself getting lost and I have to write down recipes I've completed adding on paper so I could keep track of what recipes I've added.
Is it possible that on the list of recipes in the plugin menu to list the name of the recipe first? I've been using the plugin for a project and I find myself getting lost and I have to write down recipes I've completed adding on paper so I could keep track of what recipes I've added.
@AeroPergold Thanks for suggestion, plugin has been updated with this change.
Thanks man, I got the update and this will help me a lot.
Is there any way to change the background of the scene?
I'm trying to do two things:
i) change the opacity of the three windows in the scene to 0 - so you can see through them
ii) add an image on top of the default map print
Have tried reverse engineering this from other plugins that allow you to change the window opacity but can't seem to get it working. Any tips would be appreciated!
I'm trying to do two things:
i) change the opacity of the three windows in the scene to 0 - so you can see through them
ii) add an image on top of the default map print
Have tried reverse engineering this from other plugins that allow you to change the window opacity but can't seem to get it working. Any tips would be appreciated!
@Ophiucus Games not easily in the parameters you can't. If you're comfortable changing the javascript, you can add the following code to each window's initialize function:
Note that this should only go in the window initialize functions (putting it in other class initialize functions will likely lead to error about "setBackgroundType" not existing)
To add your own background image instead of a blurred map background, you can add this anywhere in the plugin except for inside another function:
and just replace "BlueSky" with whatever image you want to use (located in the "Pictures" folder).
JavaScript:
this.setBackgroundType(2);
To add your own background image instead of a blurred map background, you can add this anywhere in the plugin except for inside another function:
JavaScript:
//-----------------------------------------------------------------------------
// Add background image
//-----------------------------------------------------------------------------
CGMZ_Scene_Crafting.prototype.createBackground = function() {
this._backgroundSprite = new Sprite();
this._backgroundSprite.bitmap = ImageManager.loadPicture("BlueSky");
this.addChild(this._backgroundSprite);
this.setBackgroundOpacity(192); // remove this line if you don't want it to be slightly transparent
};
and just replace "BlueSky" with whatever image you want to use (located in the "Pictures" folder).
Thats super helpful, thank you so much!
So this is all working except the default map print isn't showing underneath the menu image, its just black. Am I doing something wrong?
EDIT: Played around with the code and changed to this which works
I was going to just use Scene_MenuBase.prototype.createBackground.call(this); - but that was causing issues due to VisuStella Core Engine and displaying the menu backgrounds defined in there.
EDIT: Played around with the code and changed to this which works
Code:
//-----------------------------------------------------------------------------
// Add background image
//-----------------------------------------------------------------------------
CGMZ_Scene_Crafting.prototype.createBackground = function() {
this._backgroundFilter = new PIXI.filters.BlurFilter();
this._backgroundSprite = new Sprite();
this._backgroundSprite.bitmap = SceneManager.backgroundBitmap();
this._backgroundSprite.filters = [this._backgroundFilter];
this.addChild(this._backgroundSprite);
this.setBackgroundOpacity(192);
this._backgroundImage = new Sprite();
this._backgroundImage.bitmap = ImageManager.loadPicture("MenuBook");
this.addChild(this._backgroundImage);
// this.setBackgroundOpacity(192); // remove this line if you don't want it to be slightly transparent
};
I was going to just use Scene_MenuBase.prototype.createBackground.call(this); - but that was causing issues due to VisuStella Core Engine and displaying the menu backgrounds defined in there.
Hi all, first major update for this plugin today includes the following features:
Version 1.1.0:
- Added ability to use gold as ingredient, tool, fail product, or product
- Added ability to increase success chance by equipment
- Added ability to increase success chance by profession level
- Added option to close crafting scene on profession level up
- Added option to use your own background image for the scene
- Added option to make the windows transparent
Please note that some of these changes required changing the plugin parameters, so existing saves might not be compatible without first calling the reinitialize plugin command and existing recipes may need to be updated in your plugin parameters before the plugin will work.
Demo is not yet updated with these features (though most should be easy enough without a demo). @Zaven @Ophiucus Games I am pinging you since some features in this update were requested by you earlier.
Version 1.1.0:
- Added ability to use gold as ingredient, tool, fail product, or product
- Added ability to increase success chance by equipment
- Added ability to increase success chance by profession level
- Added option to close crafting scene on profession level up
- Added option to use your own background image for the scene
- Added option to make the windows transparent
Please note that some of these changes required changing the plugin parameters, so existing saves might not be compatible without first calling the reinitialize plugin command and existing recipes may need to be updated in your plugin parameters before the plugin will work.
Demo is not yet updated with these features (though most should be easy enough without a demo). @Zaven @Ophiucus Games I am pinging you since some features in this update were requested by you earlier.
Suggestion
Is it possible to pull the description from the item screen?
That way if I want to later change what the item says or does I won't have to remember to go back and change it here too.
Maybe you could add a pretext variable "creates a " item description.
I think this may have been posted before but a current level of whatever profession would be nice to see there too.
Thanks for the great plugin.
Is it possible to pull the description from the item screen?
That way if I want to later change what the item says or does I won't have to remember to go back and change it here too.
Maybe you could add a pretext variable "creates a " item description.
I think this may have been posted before but a current level of whatever profession would be nice to see there too.
Thanks for the great plugin.
@imnoto I am not entirely sure what you mean by pulling the description from the item screen? The crafting recipes are not based on items so there wouldn't be a description to pull from.
Maybe I'm confused. When you craft something it gives you the item you specified.
See attached image. So couldn't it pull the description for item 7 in my case and put that as the description in the craft window?
See attached image. So couldn't it pull the description for item 7 in my case and put that as the description in the craft window?
@imnoto Well it could but what if the recipe only makes gold/currency and has no item/armor/wep? Or multiple items?
Good point hadn't thought that far ahead I guess.
Thanks for the reply.
Thanks for the reply.
Original thread: https://forums.rpgmakerweb.com/threads/cgmz-crafting.128024/