Alchemy Synthesis Issues

So I've been tooling around with the Alchemy Synthesis script for the past few days now, I don't have any problems getting it to work, sort of... I can make recipes, I can get them to work, what I'm having a huge problem with is getting the traits to carry over from items to the "finished product"

https://grimoirecastle.wordpress.com/2011/12/08/alchemic-synthesis-go-go-totori/

I've followed every step on the blog page to a T. I don't know why there are no images for the creation of ingredients... because I think I would have a better understanding of how to get the script to work perfectly if there were considering Knead-Ex's first language is French (not being racist, just saying it's hard to follow English as a second language for instructions)

My problem arises, I suspect, due to the Traits Namer script of his that is required to make the synthesis script work.

This is what his looks like (It's on the blog)

synth06.jpg



This is what mine looks like.

asdffff_zpshrqm6d2u.png


Something has gone seriously wrong.

For reference. This is the item page as it's been set up.

2352_zpszhi3ngri.png


If anyone has used the Alchemy Synthesis script with success could you please show me exactly how you've made it work? I don't like asking for help, but after 2 days of trial and error and frustration, here I am.

I've currently bypassed the whole "pick your traits" thing by just leaving the effects blank and adding them instead to the finished product, but that's not what I want and I don't think that's how the script is intended to function. The fun is in giving players choices and making them feel like what they did mattered. If a player doesn't *want* to unlock Heal on their Spear and rather have HP+ or MDEF+ to fit their play style then they should be able to make that happen, but I cannot facilitate that at the moment. Please help 🙁

**Edit**
I know that in the <synth_cost> thing it only shows two numbers when there's supposed to be 3 skills. This is a result of farting around trying to make something happen and not an unintentional oversight.
'Scripts' is where people who have written completed scripts that they want to share with others can post them.

Moved to: RGSSx Script Support
I don't want to be a bother, I've been trying to work through this with trial and error for the past 3-4 days now. I really need some help.
In the Traits Namer, have you set what 'learn skill' should be?
Okay I opened up the script window and I'm looking at it right now, let me just give a quick read of the instructions again. (I might not have scrolled that far down before).....

Yes, I've got one for "Heal" there, the wording is a bit vague on what the data_id is supposed to be, the way the instructions read, it seems like it is which slot the "trait" is added to the item in order on the "effects" menu so in the case of my Light Crystal it would be the 1st slot so the data_id would be 1, which is what I've done, but it could also be interpreted to mean that the data_id is the id of the skill/effect/etc in the list (IE, Heal = 026 by default)

I've tried both ways and the results are still not as intended, can you maybe provide a screenshot of what you've done personally? if it's not too much trouble, or else walk me through like I'm a (because right now I feel like one)
I've never actually used the script myself, but do you mind sending it through to me showing how you've got it set up? The link is broken.
You are most definitely not a . The instructions for this script are thin at best.
I had a copy of the demo (easy) and it took ten minutes to get it to work in my test demo by copying over the scripts and settings. Had to change a few numbers because my weapon is not 1 it was 62 so had to find what numbers to change.
I still don't understand how the synthesis points are calculated.

EDIT - I send a PM to A-Moonless-Night
Spoiler
# INSTRUCTIONS
# Here you can define custom traits names and descriptions.
#
# Syntax:
# [type, code, data_id, value 1, value2] => [name, description]
#
# type: 0 (for equipment), 1 (for usables)
#
# code: the code number. Refer to default naming to know what is what.
#
# data_id: the number of the option you've choosen in the trait droplist.
#
# value1: what you typed in the first field where you can write numbers.
# For equipment this is the only one.
#
# value2: usable items only. What you typed in the second field.
#
# description: If you want to also use a custom description. If you only
# want the custom name, set this to nil.

CUSTOM_TRAITS = {

[0, 32, 2, 50] => ['Poisonous', nil],
[0, 32, 2, 100] => ['Venomous', nil],
[1, 43, 26, 1] => ['Heal', nil], <--- The one I want to add.
[1, 11, 0, 0, 10] => ['HP Recovery XS', nil],
[1, 11, 0, 0, 25] => ['HP Recovery S', nil],
[1, 11, 0, 0, 50] => ['HP Recovery M', nil],
[1, 11, 0, 0, 75] => ['HP Recovery L', nil],
[1, 11, 0, 0, 100] => ['HP Recovery XL', 'Restores all HP!'],
[1, 12, 0, 0, 10] => ['MP Recovery XS', nil],
[1, 12, 0, 0, 25] => ['MP Recovery S', nil],
[1, 12, 0, 0, 50] => ['MP Recovery M', nil],
[1, 12, 0, 0, 75] => ['MP Recovery L', nil],
[1, 12, 0, 0, 100] => ['MP Recovery XL', 'Restores all MP!'],
[1, 13, 0, 2, 0] => ['TP Recovery XS', nil],
[1, 13, 0, 5, 0] => ['TP Recovery S', nil],
[1, 13, 0, 10, 0] => ['TP Recovery M', nil],
[1, 13, 0, 16, 0] => ['TP Recovery L', nil],
[1, 13, 0, 20, 0] => ['TP Recovery XL', nil],
I've never actually used the script myself, but do you mind sending it through to me showing how you've got it set up? The link is broken.


Roninator2. Do you have a copy of the demo around? I'd like to look at the script actually working.
Okay, think I figured out the problem. You shouldn't need to make a new trait.

In the Traits Namer script, find this method:
def self.effect_name(code, data_id, value1, value2)

There should be a line that reads:
Code:
when 43
          $data_skills[data_id]
        end

Replace that with:
Code:
when 43
          $data_skills[data_id].name
        end

I haven't tested extensively, so let me know if that doesn't work.
Okay, think I figured out the problem. You shouldn't need to make a new trait.

In the Traits Namer script, find this method:
def self.effect_name(code, data_id, value1, value2)

There should be a line that reads:
Code:
when 43
          $data_skills[data_id]
        end

Replace that with:
Code:
when 43
          $data_skills[data_id].name
        end

I haven't tested extensively, so let me know if that doesn't work.

That fixed the name problem, but it still doesn't allow me to add traits from the item being synthesized to the final item. Let me play with it for a few minutes and see if I can resolve that, the game no longer crashes when the Crystal has "Heal" in it's effects so that's a fantastic start.

***edit***

Okay, I've resolved all the problems EXCEPT actually being able to select the traits. The menu looks right, the game doesn't crash anymore, so that's a very very good start.
If you haven't already, I'd take a look at the info on the Traits Namer here: https://grimoirecastle.wordpress.com/rgss3-scripts/dependencies/traits-namer/ I don't think your problem is with that script.

If the Effect is on the item that you're using to synthesise the new item/equipment, then it should appear in the trait selection menu. You can also select it if you have the appropriate synthesis points. Once you've synthesised the item, you use it or equip it in order to gain the traits you selected when you synthesised it.

If it's still not working, send me a PM with a copy of the demo and I'll have a look.
I got a demo of the synthesis script from Roninator2 and within 15 minutes I solved every problem. The issue was the terrible instructions in the script, and the fact that (contrary to what the website/instructions said) it only works with the Advanced Traits Manager script. I plugged that in, wonked around with the script for a few minutes and now it works 100% as intended.

Thank you for all your help by the way. Your insight about adding that .name to the traits namer helped immensely as well.

Original thread: https://forums.rpgmakerweb.com/threads/alchemy-synthesis-issues.95082/