Jump to content


Photo

change a certain classes attack with a different one?


  • Please log in to reply
11 replies to this topic

#1 Luigi-like

Luigi-like

    That guy you know

  • Members
  • 64 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 01 September 2013 - 10:17 PM

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



#2 Engr. Adiktuzmiko

Engr. Adiktuzmiko

    Chemical Engineer working in IT

  • Member+
  • 6,485 posts
  • LocationPhilippines
  • Primarily UsesRMVX Ace
  • First LanguageTagalog

User's Awards

     

Posted 01 September 2013 - 10:29 PM

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...



#3 kerbonklin

kerbonklin

    Ace Intermediate

  • Members
  • 1,380 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 01 September 2013 - 10:45 PM

 

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

 

Actor-specific "Normal" Attacks

 

http://rmrk.net/inde...ic,44514.0.html


Edited by kerbonklin, 01 September 2013 - 10:46 PM.

HotStuven North American Grand Chase (NAGC) #1 Zero


#4 Luigi-like

Luigi-like

    That guy you know

  • Members
  • 64 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 01 September 2013 - 11:13 PM

Actor-specific "Normal" Attacks

 

http://rmrk.net/inde...ic,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, 01 September 2013 - 11:23 PM.


#5 Andar

Andar

    Advanced Member

  • Moderators
  • 5,935 posts
  • LocationGermany
  • Primarily UsesRMVX Ace
  • First LanguageGerman

Posted 02 September 2013 - 01:22 AM

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)



#6 Luigi-like

Luigi-like

    That guy you know

  • Members
  • 64 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 02 September 2013 - 01:27 AM

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?



#7 Engr. Adiktuzmiko

Engr. Adiktuzmiko

    Chemical Engineer working in IT

  • Member+
  • 6,485 posts
  • LocationPhilippines
  • Primarily UsesRMVX Ace
  • First LanguageTagalog

User's Awards

     

Posted 02 September 2013 - 01:43 AM

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



#8 Andar

Andar

    Advanced Member

  • Moderators
  • 5,935 posts
  • LocationGermany
  • Primarily UsesRMVX Ace
  • First LanguageGerman

Posted 02 September 2013 - 01:54 AM

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)



#9 Engr. Adiktuzmiko

Engr. Adiktuzmiko

    Chemical Engineer working in IT

  • Member+
  • 6,485 posts
  • LocationPhilippines
  • Primarily UsesRMVX Ace
  • First LanguageTagalog

User's Awards

     

Posted 02 September 2013 - 01:57 AM

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...



#10 Luigi-like

Luigi-like

    That guy you know

  • Members
  • 64 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 02 September 2013 - 02:10 AM

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)



#11 Fomar0153

Fomar0153

    Ready for summer.

  • Resource Staff
  • 1,094 posts
  • LocationEngland
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

User's Awards

     

Posted 02 September 2013 - 02:14 AM

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
  end
end
Would give each class a different attack skill. Change the 2 to position where you want the skills in the database.

Posted Image Posted Image Posted Image


#12 Engr. Adiktuzmiko

Engr. Adiktuzmiko

    Chemical Engineer working in IT

  • Member+
  • 6,485 posts
  • LocationPhilippines
  • Primarily UsesRMVX Ace
  • First LanguageTagalog

User's Awards

     

Posted 02 September 2013 - 02:35 AM

^ 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...






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users