The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: shintashi on December 08, 2013, 10:06:00 PM

Title: [VXA] Can I access Database Class Features from Event Script?
Post by: shintashi on December 08, 2013, 10:06:00 PM
In the Database under character classes, I want to access these two features:
Atk Times+
Atk Speed


They appear to reference something like this:

#--------------------------------------------------------------------------
  # * Get Attack Speed
  #--------------------------------------------------------------------------
  def atk_speed
    features_sum_all(FEATURE_ATK_SPEED)
  end


  #--------------------------------------------------------------------------
  # * Get Additional Attack Times
  #--------------------------------------------------------------------------
  def atk_times_add
    [features_sum_all(FEATURE_ATK_TIMES), 0].max
  end


I want to know if I can change these values after play has started by using an event script, preferably a short one, and apply them to a specific actor.

The basic idea is that my game will have multiple character class changes over the playing period and if the character had a class with a special ability, that special ability can be transferred/copied to the actor, if during their class change, the computer determines they had a previous class with that ability.

I don't want to automatically give the special class abilities to the base actor, because they might never take that class.

P.S. This is my first go at VXACE.
Title: Re: [VXA] Can I access Database Class Features from Event Script?
Post by: vindaca on December 09, 2013, 05:38:22 AM
You posted in the wrong place this is not for requests/questions or VX. This forum is for VXA which is not the same. If you were working with Ace I have a script that would help you. Sorry.
Title: Re: [VXA] Can I access Database Class Features from Event Script?
Post by: shintashi on December 09, 2013, 06:32:30 PM
Quote from: vindaca on December 09, 2013, 05:38:22 AM
You posted in the wrong place this is not for requests/questions or VX. This forum is for VXA which is not the same. If you were working with Ace I have a script that would help you. Sorry.

WUT?

Here's a screenshot of the program:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi270.photobucket.com%2Falbums%2Fjj109%2Fkamavasayita%2FVXAAAAH_zpse28cb4a3.jpg&hash=55132ebcb2bc8476667abf8f8788974ca17154a2) (http://s270.photobucket.com/user/kamavasayita/media/VXAAAAH_zpse28cb4a3.jpg.html)
Title: Re: [VXA] Can I access Database Class Features from Event Script?
Post by: vindaca on December 10, 2013, 02:16:45 AM
I believe you, but you put VX the first time you posted. And to clarify what I said, this forum is is not for questions it is for scripts only.

But to answer your question, no, there is no easy way to do it. However like I said before and since you are using Ace I am currently working on something just like that to go along with my job system script. it should be done within the next couple days.

if I'm not mistaken this (http://rmrk.net/index.php/board,101.0.html) is where you should post any questions.

Here (http://rmrk.net/index.php/topic,48423.0.html) is a link to my script.
Title: Re: [VXA] Can I access Database Class Features from Event Script?
Post by: shintashi on December 10, 2013, 08:46:18 PM
Quote from: vindaca on December 10, 2013, 02:16:45 AM
I believe you, but you put VX the first time you posted. And to clarify what I said, this forum is is not for questions it is for scripts only.

But to answer your question, no, there is no easy way to do it. However like I said before and since you are using Ace I am currently working on something just like that to go along with my job system script. it should be done within the next couple days.

if I'm not mistaken this (http://rmrk.net/index.php/board,101.0.html) is where you should post any questions.

Here (http://rmrk.net/index.php/topic,48423.0.html) is a link to my script.

i look forward to it. Since i come from RMXP background I cant tell the difference between VX and VXA in the same way windows users see MAC. When I just got off the boat from China any English will do. (funny that, when i got off the boat from China my Japanese tourguide thought I was Australian)
Title: Re: [VXA] Can I access Database Class Features from Event Script?
Post by: vindaca on December 10, 2013, 09:05:41 PM
No problem "mate". LOL, Glad I could help. Don't forget to leave a comment on the script's post and let me know how it works out for you.