12-19-2013, 04:41 AM
Actually no confusion is present. And let me use your 'crafting' value as the name of the craftable trade in this discussion...
Let us assume your 'blackpowder2' skill looks like this in your Miriam's Handicrafts, the main script's config section:
Let us assume you have your new experience module configured as such:
AND... that in the crafting experience script, you changed your case...end block of code to look like this... Then when your party member learns the crafting skill, and your party learns the 'BlackPowder2' recipe, your party member (whoever it may be) should be able to use that recipe. AND... regardless of your craft skill using party member, the 21st actor in your party should gain experience whenever the 'BlackPowder2' recipe is used.
This is assuming that actor #21 in your database is currently in your party.
Let us assume your 'blackpowder2' skill looks like this in your Miriam's Handicrafts, the main script's config section:
Code:
CRAFT_LIST["BlackPowder2"] = ['crafting', 0, [0,46,1], nil, [[0, 34, 2, true], [0, 45, 1, true]], 1, 50, [[0,47,1]]]
Code:
module Crafting
CRAFT_EXP = {} # Add this! It creates the empty hash for the craft experience data
DEFAULT_EXP = 0
CRAFT_EXP["BlackPowder2"] = 4
end
Code:
when "crafting" ; $game_actors[21].exp += exp_temp
This is assuming that actor #21 in your database is currently in your party.