10-14-2009, 01:24 PM
Okay, try this.
Get rid of the last script and use this modified version of mine:
All this code does is:
1) add the weapon elements to skills with the non-elemental tag
2) cancel any dummy elements from the set sent to the elements_correct function
Get rid of the last script and use this modified version of mine:
Code:
# Element correction
weapon_elements=[]
dummy_elements = [2,3,7,8,9,10,] # add any dummy element IDs other scripts might use
if skill.element_set.include?(26)
if user.weapon_id > 0
weapon_elements=[1,4,5,6]&$data_weapons[user.weapon_id].element_set
end
end
self.damage *= elements_correct((skill.element_set | weapon_elements) - dummy_elements)
self.damage /= 100
end
1) add the weapon elements to skills with the non-elemental tag
2) cancel any dummy elements from the set sent to the elements_correct function