Jump to content

Announcing our new website

To find out the latest about our new website, visit Game Dev Unlimited

- - - - -

Adding element status to weapons


  • You cannot reply to this topic
2 replies to this topic

#1 bigace

    King of Spades

  • Member
  • 732 posts

Posted 24 December 2011 - 10:01 PM

I've been trying to create/find this and can't figure this out since RMXP only allows you to add element defense to status instead of causing damage.

I wanted something in the status menu say this:
Enfire - Adds fire damage to ally’s attack
Enfrost - Adds water damage to ally’s attack
Enthunder - Adds thunder damage to ally’s attack
Enwind - Adds wind damage to ally’s attack
Enlight - Adds holy damage to ally’s attack
Endark - Adds dark damage to ally’s attack
and then I can add that to attacks.

#2 Foxkit

    Advanced Member

  • Member
  • 89 posts

Posted 24 December 2011 - 10:09 PM

I'm trying to do something similar to this Ace, the most I've gotten out of it though is adding attribute_accessor: name_of_element to module RPG, class Weapon and trying to work with that.... don't know If this helps at all.

-Fox

#3 bigace

    King of Spades

  • Member
  • 732 posts

Posted 25 December 2011 - 06:12 AM

I got this so far:

#==============================================================================
# ** RPG::State
#==============================================================================
module RPG::State
  alias ace_state
  def initialize
    ace_state
    @element_set = []
  end
  attr_accessor :element_set
end






0 user(s) are reading this topic

members, guests, anonymous users