Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Element transmited to skills by weapons
#12
Hi Charlie, thank you again for your attention. Sorry for my late reply,
i was taking my time to test all kind of situation before i reply to you,
to avoid any more mistakes/ confusions.

And one more time you got a point. My dmg calculation is not an average as i ve thought.

With my current scripts, the problem comes when i tag weapon or skill with animation tag,
and when i use the element as an attacker against an enemy that is strong to this element.
concrete example :

Fire Sword = 50 % dmg against water enemy.
if i dont tag the sword with sword animation, this is working perfectly.

When i do, the target is setted as :
Element Fire "E" (50% in my case),
Element Sword "C" (100%). but Sword is a dummy Element i use only to get animation related.

And as it is stronger, RMXP uses the 100% dmg from the sword.
i have look on the web for scripts that will define dummy element and cancel them.
I found 2 but none is working... how weird !


here is the 1st script, that is not working as expected :

Code:
#--------------------------------------------------------------------------
# ? ???????
#     element_set : ??
#--------------------------------------------------------------------------
def elements_correct(element_set)
elements = element_set.clone
elements.delete(15)  #            Whenever you get a new element that you don't
elements.delete(16)  # ??????  want to count as an element, just add to
elements.delete(17)  #             to the elements.delete list. (Also, you
elements.delete(18)  #             might want to replace the 18 and 17, eh?)

if element_set == []        
   # 100 ???              
   return 100
end
# ???????????????????
# ????? element_rate ?????????????? Game_Actor
#   ??? Game_Enemy ?????????
weakest = -100
for i in element_set
   weakest = [weakest, self.element_rate(i)].max
end
return weakest
end

regarding the 2nd one, it is too long so i m just gona attach it.
this 2nd script is working in terms of dummy element system as it is deleting the useless element from calculation,
and my dmg from fire to water ( E = 50% in my case) is working, but it has 2 problems :

1) it s got a lot of features and i dont need them, only the element correction thing.

2) I'm having the opposite pblm when using it. The strong ele (A = 150% for me, so Fire attacking Wind) becomes like a B (B = 125%), while B is working at 125 % too... :S

element addons.txt attachment
Reply }


Messages In This Thread
Element transmited to skills by weapons - by mageone - 10-12-2009, 09:09 PM

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



Users browsing this thread: