Lolbox: I think it is. I plugged the numbers from the script into an actor's box, and the numbers matched. So you can use that to check your curves.
Crafting Script v3.8 - Updated 2/26/2015
RGSS3 Scripts (RMVX Ace)yes they the number are the same as for the actors =)
edit: and meant to say
@lolbox: sounds like neat additions =)
edit: and meant to say
@lolbox: sounds like neat additions =)
Updated for the sound files when you begin to craft. You can use either a BGS or a SE to play.
The script will check to see if the BGS file exists first, if it does, then it'll play that sound while crafting. If it doesn't exsist, then it'll check if the file is in the Audio/SE folder and play that one on a loop ever 2 seconds (like the hammer clanking for the blacksmith). If you put in nil or it doesn't find a file matching then it won't play any sounds.
Again, let me know if any bugs pop up 🙂
The script will check to see if the BGS file exists first, if it does, then it'll play that sound while crafting. If it doesn't exsist, then it'll check if the file is in the Audio/SE folder and play that one on a loop ever 2 seconds (like the hammer clanking for the blacksmith). If you put in nil or it doesn't find a file matching then it won't play any sounds.
Again, let me know if any bugs pop up 🙂
Awesome! Good job on the promptness. I'll have to think about one of the skills. I replaced cooking with a catch-all for whatever doesn't fall into smithing or alchemy, which is basically a combination of tailoring, woodworking, and leatherworking (didn't want to bog the player down with too many different skills to work at), and I'm not entirely sure what a generic sound for all three would be.
Anyway, the sound effects work fine! 🙂
Anyway, the sound effects work fine! 🙂
maybe the clock ticking thing so they know they're working? hehe no clue really =)
and glad you're putting the script too good use
and glad you're putting the script too good use
Another thought! Would it be possible to rig the script to automatically learn recipes once the relevant skill is a sufficient level? I.E. the player automatically learns new recipes as they level up the skills, rather than having to manually unlock them.
Well... Maybe you can use common events in parallel process for that.
@Allerka: I can probably do that 🙂 but it will have to wait a while, I'm slammed with requests right now and trying to get them cleared up before taking on anything else. But Megablackdragon's suggestion should work till I can get that added to the script.
I'm not quite sure what I am doing wrong. I am positive that I have installed the script correctly as well as added all necessary items, graphics, etc. Yet when I try to call script for learn_recipe(1) I get an error with the Game_Interpreter.
All I'm doing:
What I'm getting:
If that is not enough information, ask me. I REALLY enjoy this script and want to use it for my game.
All I'm doing:
What I'm getting:
If that is not enough information, ask me. I REALLY enjoy this script and want to use it for my game.
I can't find any fault with your script call and it should work. Is it possible to send a demo of your project (can be through a PM if you wish) so I can see if I can track the problem.
And the script was installed after "▼ Materials" section? My script should work with most other scripts out there.
And the script was installed after "▼ Materials" section? My script should work with most other scripts out there.
Mmmm... The script is inserted bellow main process?
Remember that scripts installed in that place are automatically disabled ...
I think it's not a bug ...
If the game interpreter can not find the script,it shows an error window.
Remember that scripts installed in that place are automatically disabled ...
I think it's not a bug ...
If the game interpreter can not find the script,it shows an error window.
Yeah, a common event could probably work. It's just that I have 141 recipes at the moment (probably more coming later), so that event will probably be absolutely massive. 😛
Also, along those lines, if I want to do a script call to check the level of a skill and perform an action if it's high enough, what would I put into the script line? I tried, for example, "$craft[1].level += 3" but it just gave me an error.
Also, along those lines, if I want to do a script call to check the level of a skill and perform an action if it's high enough, what would I put into the script line? I tried, for example, "$craft[1].level += 3" but it just gave me an error.
for the script calls there's this:
# To check the current crafting level:# $craft[craft_id].level - player's level# $craft[craft_id].exp - player's total craft exp# $craft[craft_id].change_level(level) - grant or loose levels
so if you're checking if they're cooking is at least level 5, you'd want to do this
$craft[1].level >= 5
if you want to give them extra levels as a reward for doing something, you'd use this
$craft[3].change_level(2)or a punishment and they loose 2 alchemy levels:
# To check the current crafting level:# $craft[craft_id].level - player's level# $craft[craft_id].exp - player's total craft exp# $craft[craft_id].change_level(level) - grant or loose levels
so if you're checking if they're cooking is at least level 5, you'd want to do this
$craft[1].level >= 5
if you want to give them extra levels as a reward for doing something, you'd use this
$craft[3].change_level(2)or a punishment and they loose 2 alchemy levels:
Code:
$craft[3].change_level(-2)
Oh, derp, right, it should be >=, not +=. Much better, thanks!
no worries =)
ok finally got some time and updated the script 😉 also added in compatibility with modern algebra's icon hues script
Nice! Thanks!
The "craft type information" bullet in the patch notes, can you explain that a little more?
The "craft type information" bullet in the patch notes, can you explain that a little more?
oh sure 🙂
the old way looked like this
and the new way is easier to read and follow, and it all fits on the screen (no need to scroll to the right to see all the info)
So it's all the same info, just a lot more user friendly I think 🙂
the old way looked like this
Craft_Info = { # ID => [ [ EXP_Table ], "Craft", Max_Lv, Mastered_Text, Image, [ Music_Info ], [ Crafting_Sound ] ], 1 => [[ 10, 5, 12, 20], "Cook", 3, "Top Chef", "Book", nil, ["Fire", 100, 100] ], 2 => [[ 12, 3, 20, 15], "Smith", 30, "Master Smith", "CrossedSwords", nil, ["Hammer", 100, 100] ], 3 => [[ 10, 0, 10, 10], "Alchemy", 30, "Potion Genius", "Hexagram", ["Dungeon7", 90, 100], ["Drips", 100, 100] ], } # <- DO NOT REMOVE
Craft_Info[1] = { # Cooking :craft_name => "Cook", :exp_table => [ 10, 5, 12, 20], :max_level => 3, :mastered => "Top Chef", :bg_image => "Book", :bg_music => nil, :active_sound => ["Fire", 100, 100], } # <-DO NOT REMOVE Craft_Info[2] = { # Blacksmith :craft_name => "Smith", :exp_table => [ 12, 3, 20, 15], :max_level => 30, :mastered => "Master Smith", :bg_image => "CrossedSwords", :bg_music => nil, :active_sound => ["Hammer", 100, 100], } # <-DO NOT REMOVE Craft_Info[3] = { # Alchemy :craft_name => "Alchemy", :exp_table => [ 10, 0, 10, 10], :max_level => 35, :mastered => "Potion Genius", :bg_image => "Hexagram", :bg_music => ["Dungeon7", 90, 100], :active_sound => ["Drips", 100, 100], } # <-DO NOT REMOVE
Love the new format!
so if you're checking if they're cooking is at least level 5, you'd want to do this
$craft[1].level >= 5
$craft[1].level >= 5
$craft[3].change_level(2)
$craft[3].change_level(-2)
and the new way is easier to read and follow, and it all fits on the screen (no need to scroll to the right to see all the info)
Craft_Info[1] = { # Cooking :craft_name => "Cook",
:exp_table => [ 10, 5, 12, 20],
:max_level => 3,
:mastered => "Top Chef",
:bg_image => "Book",
:bg_music => nil,
:active_sound => ["Fire", 100, 100],
} # <-DO NOT REMOVE
Craft_Info[2] = { # Blacksmith
:craft_name => "Smith",
:exp_table => [ 12, 3, 20, 15],
:max_level => 30,
:mastered => "Master Smith",
:bg_image => "CrossedSwords",
:bg_music => nil,
:active_sound => ["Hammer", 100, 100],
} # <-DO NOT REMOVE
Craft_Info[3] = { # Alchemy
:craft_name => "Alchemy",
:exp_table => [ 10, 0, 10, 10],
:max_level => 35,
:mastered => "Potion Genius",
:bg_image => "Hexagram",
:bg_music => ["Dungeon7", 90, 100],
:active_sound => ["Drips", 100, 100],
} # <-DO NOT REMOVE
Craft_Info[1] = { # Cooking :craft_name => "Cook",
:exp_table => [ 10, 5, 12, 20],
:max_level => 3,
:mastered => "Top Chef",
:bg_image => "Book",
:bg_music => nil,
:active_sound => ["Fire", 100, 100],
} # <-DO NOT REMOVE
Craft_Info[2] = { # Blacksmith
:craft_name => "Smith",
:exp_table => [ 12, 3, 20, 15],
:max_level => 30,
:mastered => "Master Smith",
:bg_image => "CrossedSwords",
:bg_music => nil,
:active_sound => ["Hammer", 100, 100],
} # <-DO NOT REMOVE
Craft_Info[3] = { # Alchemy
:craft_name => "Alchemy",
:exp_table => [ 10, 0, 10, 10],
:max_level => 35,
:mastered => "Potion Genius",
:bg_image => "Hexagram",
:bg_music => ["Dungeon7", 90, 100],
:active_sound => ["Drips", 100, 100],
} # <-DO NOT REMOVE
Great work improving it. I'll pick up the updated version and get the stuff in my games set up with it. Thank you.
EDIT: Just found that I couldn't use the actor specific recipes script, as it doesn't seem to be recognizing the main script. Getting an error on line 66 of Actor Specific Recipes.
Original thread: https://forums.rpgmakerweb.com/threads/crafting-script-v3-8-updated-2-26-2015.17560/