Element transmited to skills by weapons
#15
Okay, try this.
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
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
Reply }


Messages In This Thread
Element transmited to skills by weapons - by Charlie Fleed - 10-14-2009, 01:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Refreshing original skills names Whisper 2 5,029 05-31-2020, 04:35 PM
Last Post: Whisper
   Showing only specific skills in a window Mel 2 5,884 01-12-2016, 01:34 PM
Last Post: Mel
   Syvakal's Conditional Skills And Equipment Crashes Samven 0 3,953 08-02-2011, 01:58 PM
Last Post: Samven
   Help with using KGC's delayed skills prioran 0 3,624 05-07-2010, 11:46 PM
Last Post: prioran
   Skills that restore SP and reactive skills. Admetrynne 5 7,996 03-29-2010, 05:49 PM
Last Post: Admetrynne
   Simple Request about Element Defense status mageone 0 3,281 11-21-2009, 06:40 PM
Last Post: mageone



Users browsing this thread: 3 Guest(s)