Hello everybody !
I'm coding some item for crafting variation and i can't remember the full list of ID for the item.params^^"
Also one already try with ex param(dodge for example?)?^^
This is the formula i use :
<On Creation Eval>
if( $gameSwitches.value(1) === true )
{
var factor = 1.0;
var rarity = Math.floor((Math.randomInt(5) * Math.randomInt(5)) / 4);
var textColor = 0;
switch( rarity ) {
case 0: break;
case 1: factor = 1.2; textColor = 3; break;
case 2: factor = 1.4; textColor = 9; break;
case 3: factor = 1.6; item.traits.push({code: Game_BattlerBase.TRAIT_SKILL_ADD, dataId: 9, value:0}); textColor = 30; break;
case 4: factor = 2.0; textColor = 17; break;
}
for( var i = 0; i < item.params.length; i++ )
{
item.params *= factor;
}
item.textColor = textColor;
if( rarity=== 3 ) item.params[0] += 2000;
if( rarity=== 3 ) item.name = "flouf";
}
</On Creation Eval>
<Synthesis Ingredients>
item 5
</Synthesis Ingredients>
<Equip Requirement>
level >= 10
</Equip Requirement>
<Text Color: 9>
thank you =)
I'm coding some item for crafting variation and i can't remember the full list of ID for the item.params^^"
Also one already try with ex param(dodge for example?)?^^
This is the formula i use :
<On Creation Eval>
if( $gameSwitches.value(1) === true )
{
var factor = 1.0;
var rarity = Math.floor((Math.randomInt(5) * Math.randomInt(5)) / 4);
var textColor = 0;
switch( rarity ) {
case 0: break;
case 1: factor = 1.2; textColor = 3; break;
case 2: factor = 1.4; textColor = 9; break;
case 3: factor = 1.6; item.traits.push({code: Game_BattlerBase.TRAIT_SKILL_ADD, dataId: 9, value:0}); textColor = 30; break;
case 4: factor = 2.0; textColor = 17; break;
}
for( var i = 0; i < item.params.length; i++ )
{
item.params *= factor;
}
item.textColor = textColor;
if( rarity=== 3 ) item.params[0] += 2000;
if( rarity=== 3 ) item.name = "flouf";
}
</On Creation Eval>
<Synthesis Ingredients>
item 5
</Synthesis Ingredients>
<Equip Requirement>
level >= 10
</Equip Requirement>
<Text Color: 9>
thank you =)