RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[Request] Elemental Affinities RMXP

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 84
“It appears we have lost our sex appeal, Captain.”
Hello,
I've looked EVERYWHERE for this and I can't find it. I've found multiple versions for VX.

I'm hoping there's a script that gives me more than the default 6 percentage options when calculating the damage done. The A,B,C,D,E,F System isn't going to work for my game and if it can't change the system i've worked out will be severely compromised.
Thanks!
« Last Edit: October 17, 2011, 04:23:00 AM by Vidian »
============/\==============
YEAH BITCHEZ LETS STORM THE BRIDGE
============/\==============

**
Rep: +0/-0Level 84
“It appears we have lost our sex appeal, Captain.”
If a script like this doesn't exist for RMXP (Which is weird..) Could someone tell me how to change the A,B,C,D,E,F Percentages? They'll have to do.
============/\==============
YEAH BITCHEZ LETS STORM THE BRIDGE
============/\==============

***
Rep:
Level 82
We learn by living...
game actor

  table = [0,200,150,100,50,0,-100]



Code: [Select]
  #--------------------------------------------------------------------------
  # * Get Element Revision Value
  #     element_id : element ID
  #--------------------------------------------------------------------------
  def element_rate(element_id)
    # Get values corresponding to element effectiveness
    table = [0,200,150,100,50,0,-100]
    result = table[$data_classes[@class_id].element_ranks[element_id]]
    # If this element is protected by armor, then it's reduced by half
    for i in [@armor1_id, @armor2_id, @armor3_id, @armor4_id]
      armor = $data_armors[i]
      if armor != nil and armor.guard_element_set.include?(element_id)
        result /= 2
      end
    end
    # If this element is protected by states, then it's reduced by half
    for i in @states
      if $data_states[i].guard_element_set.include?(element_id)
        result /= 2
      end
    end
    # End Method
    return result
  end

game enemy

Code: [Select]
#--------------------------------------------------------------------------
  # * Get Element Revision Value
  #     element_id : Element ID
  #--------------------------------------------------------------------------
  def element_rate(element_id)
    # Get a numerical value corresponding to element effectiveness
    table = [0,200,150,100,50,0,-100]
    result = table[$data_enemies[@enemy_id].element_ranks[element_id]]
    # If protected by state, this element is reduced by half
    for i in @states
      if $data_states[i].guard_element_set.include?(element_id)
        result /= 2
      end
    end
    # End Method
    return result
  end

BE WARNED the A-F codes don't precisely line up the way you think they do, you should test it first.