Ok, here is the stuff for the critical effects:
Spoiler
class Game_Party alias sixth_enchant_affix1333 add_affix def add_affix(item, id, prefix) affix = AFFIXES[id.to_i] @extra_note = "" if !affix[:cri_dmg].nil? @extra_note += "<critical damage: #{affix[:cri_dmg]}%>" end if !affix[:cri_def].nil? @extra_note += "<critical defense: #{affix[:cri_def]}%>" end if !affix[:cri_state_add].nil? #id #chance @extra_note += "<critical state add: #{affix[:cri_state_add][0]}, #{affix[:cri_state_add][1]}%>" end if !affix[:cri_state_rem].nil? @extra_note += "<critical state remove: #{affix[:cri_state_rem][0]}, #{affix[:cri_state_rem][1]}%>" end sixth_enchant_affix1333(item, id, prefix) endend
Put this below the randomizer script in it's own slot.
You will also need to edit the randomizer script for this to work.
Search for the lines starting with this:
item.note = $data_There should be 3 lines like this!Put this little piece of code at the end of each line:
+ @extra_noteThis should do the trick for the critical effects.From now on, you can use 4 more options for your affixes:
:cri_dmg => +/-value,#Example: :cri_dmg => +50,This will add/remove critical damage.Replace 'value' with the value you want to be added/removed.
The value represents percentages! So, 10 means 10%, 50 is 50%, 80 is 80%, etc.
Use + or - before the value! + will increase, - will decrease the critical damage.
:cri_def => +/-value,#Example: :cri_def => -100,Same things apply with this option.This will raise/decrease critical defense, obviously.
:cri_state_add => [state_id,chance],#Example: :cri_state_add => [2,20],This adds the critical state add effect.Honestly, I have no idea what this does, lol.
Anyway, replace the 'state_id' with the ID of the state to be added, and 'chance' with the percentage of this happening.
I could not test this, because I got no idea what this does.
But in theory, it should work fine.
:cri_state_rem => [state_id,chance],#Example: :cri_state_rem => [3,20],Same as above, except this adds the critical state remove effect.Every new option should work, because basically I injected the very same note-tags you would use normally on an item into the new item's note-tags. I had to do it this way, because Victor did not define these new stats directly on the items, instead it reads the note-tags directly when it is needed.
If something is not working, just let me know and I will try to fix this.
The last 2 thing with the state add/remove effect is not final. For now, only one state can be added/removed. No idea if it is possible to add multiple of these note-tags by default, but if it can be done, than I will modify it accordingly.
I have to go now, but when I get back, I will make you the element stuff too.