Hey everyone, the compiler is ready to translate item scripts to item description, i.e. script generation with conditional and calculational dependency completed!
Warning: (for-loop is not implemented so comment out that one item; official database may contain about ~5 errors) and other mistakes.
Note: RMS does not allow me to upload pass 300kb, the current idnum2itemdesctable.txt with script translation only is >600kb). I've included a sample attach with this post around 200kb.
For example,
Item ID: 13110
Item Name: Glorious Pistol
Item Script:
bonus2 bAddRace,RC_DemiHuman,55;
bonus2 bAddRace,RC_Player,55;
bonus2 bIgnoreDefRaceRate,RC_DemiHuman,20;
bonus2 bIgnoreDefRaceRate,RC_Player,20;
bonus bUnbreakableWeapon,0;
if(getrefine()>5) {
bonus2 bAddRace,RC_DemiHuman,pow(((getrefine()>14)?14:getrefine())-4,2);
bonus2 bAddRace,RC_Player,pow(((getrefine()>14)?14:getrefine())-4,2);
bonus2 bIgnoreDefRaceRate,RC_DemiHuman,5;
bonus2 bIgnoreDefRaceRate,RC_Player,5;
} if(getrefine()>8) {
bonus4 bAutoSpellOnSkill,"GS_RAPIDSHOWER","GS_GLITTERING",1,1000;
bonus2 bSkillAtk,"GS_RAPIDSHOWER",getrefine()*2;
}
Item Translation:
Add +55% physical damage against demi-human monsters.
Add +55% physical damage against mvp monsters.
Pierce +20% physical defense for demi-human monsters.
Pierce +20% physical defense for mvp monsters.
Weapon is indestructible.
Condition [Refine Rate 6 ~ 15]
-> Add -121% ~ +121% physical damage against demi-human monsters.
-> Add -121% ~ +121% physical damage against mvp monsters.
-> Pierce +5% physical defense for demi-human monsters.
-> Pierce +5% physical defense for mvp monsters.
Condition [Refine Rate 9 ~ 15]
-> Add 100% chance of auto-casting Rapid Shower[Lv.1] when using Flip the Coin.
-> Increase +18% ~ +30% Rapid Shower damage.