• 0
Sign in to follow this  
Followers 0
Luigi-like

change a certain classes attack with a different one?

Question

Okay the title isnt that specific so heres what im looking for, i need to know if it is possible to change the basic attack for a class or actor into a special skill only they can use (ex using attack does fire fists insted of a normal punch without the aid of a state) or if lets say its a mage and they use attack it pops up a menu through common events that will determine their attack (dark, light, fire, ice, water) basically using attack in battle for certain classes results in something different from ordinary attack

Share this post


Link to post
Share on other sites

11 answers to this question

  • 0

i need to know if it is possible to change the basic attack for a class or actor into a special skill only they can use

 

yes, it's possible...

 

complexity = depends on how you want to implement it

 

if it's simply, each class has it's own attack and this does not change throughout the game, then it's quite simple...

 

Also, I think there are already scripts for a class based attack...

Share this post


Link to post
Share on other sites
  • 0

Actor-specific "Normal" Attacks

 

http://rmrk.net/index.php/topic,44514.0.html

 

I tried this but when i did it had a conflict with line edit: (723) of the battler base every time i choose 'Fight' so problem unsolved

Edited by Luigi-like

Share this post


Link to post
Share on other sites
  • 0

I tried this but when i did it had a conflict with line edit: (723) of the battler base every time i choose 'Fight' so problem unsolved

There is a similiar script from Yanfly on the master script list.

 

You need scripts or scripting to change the base attack skill, because that is set constant for everything in default.

You can only look for a script that is compatible to the other scripts you're using, or change the skill ID in Game_BattlerBase, function attack_skill_ID (line 710 following)

Share this post


Link to post
Share on other sites
  • 0

There is a similiar script from Yanfly on the master script list.

 

You need scripts or scripting to change the base attack skill, because that is set constant for everything in default.

You can only look for a script that is compatible to the other scripts you're using, or change the skill ID in Game_BattlerBase, function attack_skill_ID (line 710 following)

 

well this is just gonna end up with me having every single one of yanfly's scripts at this rate but ill try it to see what happens, do you know the name of this script by any chance?

Share this post


Link to post
Share on other sites
  • 0

the only attack replace I know by yanfly was for weapons... but anyway, his scripts are pretty much name explanatory, so just browse the list on his wordpress channel and you'll see it if there is one

Share this post


Link to post
Share on other sites
  • 0

do you know the name of this script by any chance?

the only attack replace I know by yanfly was for weapons...

It might be that I misremembered the weapon replace for an actor replace, but there should be more than one of those on the master script list. I think I remember one by Tsukihime as well.

 

And if those scripts are incompatible - if it's only for actors, a simple case structure checking actor ID and giving different skills as result is very easy to write as an replacement for that attack_skill_ID function - somewhere on another harddrive I've a script written myself to replace the ID from an actor-based general variable, allowing events ingame to change the base attack skill of the actors.

If you don't find anything else, I'l hunt my script down in a few hours (short on time at the moment)

Share this post


Link to post
Share on other sites
  • 0

or I just didn't see the one for actor...

 

but yeah, replacing the skill used by attack command per actor is a simple thing to do...

Share this post


Link to post
Share on other sites
  • 0

the only attack replace I know by yanfly was for weapons... but anyway, his scripts are pretty much name explanatory, so just browse the list on his wordpress channel and you'll see it if there is one

 

I had no luck in finding one (im assuming it would be under battle and iv'e seen everything in his channel so i knew what wasn't gonna be it so it left VERY limited options and none were it) maybye i could just assign a skill, spell 1 perhaps, and call a common event to open a menu and the mage can choose a skill from that list (original plan but i was hoping i could set the default attack for that class to do that but i guess i could use a skill unless someone finds something else that they could possibly link me too)

Share this post


Link to post
Share on other sites
  • 0

If there's not a script for class based attack then:

class class Game_Actor < Game_Battler  #--------------------------------------------------------------------------  # * Get Skill ID of Normal Attack  #--------------------------------------------------------------------------  def attack_skill_id    return 2 + @class_id  endend
Would give each class a different attack skill. Change the 2 to position where you want the skills in the database.

Share this post


Link to post
Share on other sites
  • 0

^ and make it in such a way that your skills are in the right place as per the classes

 

in that case of 2 + @class_id,

 

it would mean that class 1's attack is skill 3, class 2's attack is skill 4 and so on...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.