Make Attack Times occur with all skills - reference

LeeOccleshaw

Stone Dragon Workshop
Veteran
Joined
Jun 9, 2015
Messages
155
Reaction score
82
First Language
English
Primarily Uses
Hey, I was wondering how to make all skills or, even better, specific skills have the applied Attack Times calculated in, not just with the regular Attack skill.

I have read this post http://forums.rpgmakerweb.com/index.php?/topic/30596-skills-considered-as-normal-attacks/ which seems to answer the question but without an example of what was changed, specifically, in the script.

Can anyone clarify what needs to change here?

Game_Action Line 90

  #--------------------------------------------------------------------------

  # * Normal Attack Determination

  #--------------------------------------------------------------------------

  def attack?

    item == $data_skills[subject.attack_skill_id]

  end
 

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
Hey, I was wondering how to make all skills or, even better, specific skills have the applied Attack Times calculated in, not just with the regular Attack skill.

I have read this post http://forums.rpgmakerweb.com/index.php?/topic/30596-skills-considered-as-normal-attacks/ which seems to answer the question but without an example of what was changed, specifically, in the script.

Can anyone clarify what needs to change here?

Game_Action Line 90

  #--------------------------------------------------------------------------

  # * Normal Attack Determination

  #--------------------------------------------------------------------------

  def attack?

    item == $data_skills[subject.attack_skill_id]

  end
Code:
  #--------------------------------------------------------------------------  # * Normal Attack Determination  #--------------------------------------------------------------------------  def attack?    item == $data_skills[1..9999]  end
Maybe? (Try it?)
 
Last edited by a moderator:

LeeOccleshaw

Stone Dragon Workshop
Veteran
Joined
Jun 9, 2015
Messages
155
Reaction score
82
First Language
English
Primarily Uses
 #--------------------------------------------------------------------------  # * Normal Attack Determination  #--------------------------------------------------------------------------  def attack?    item == $data_skills[1..9999]  endMaybe? (Try it?)
Thanks but that doesn't seem to change anything on testing.
 

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
What about:

Code:
  #--------------------------------------------------------------------------  # * Normal Attack Determination  #--------------------------------------------------------------------------  def attack?    return true  end
 

LeeOccleshaw

Stone Dragon Workshop
Veteran
Joined
Jun 9, 2015
Messages
155
Reaction score
82
First Language
English
Primarily Uses
What about:

#-------------------------------------------------------------------------- # * Normal Attack Determination #-------------------------------------------------------------------------- def attack? return true end
Seems to work great, thanks for that! Just out of curiosity, is there a way to return true if [skill id.., , ,]?
 

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
I think that would be:

#--------------------------------------------------------------------------# * Normal Attack Determination#--------------------------------------------------------------------------def attack?return true if item == $data_skills[1,2,3]endReplace 1,2,3, with the Skill IDs.
 
I think that should work (Havent tested it)
 

LeeOccleshaw

Stone Dragon Workshop
Veteran
Joined
Jun 9, 2015
Messages
155
Reaction score
82
First Language
English
Primarily Uses
I think that would be:

#--------------------------------------------------------------------------# * Normal Attack Determination#--------------------------------------------------------------------------def attack?return true if item == $data_skills[1,2,3]endReplace 1,2,3, with the Skill IDs.

I think that should work (Havent tested it)
Thanks for your help man. I'll test that later on. :)
 

Latest Threads

Latest Posts

Latest Profile Posts

TeamEdel.png

Realized halfway through drawing this that the female protagonist's party is growing bigger. :guffaw:
oddly enough, at this point... 3 major things have kept me from porting my project to MZ... animations, and that's mainly because they don't match the artstyle of my game. and two... I NEED a YED Sideview Battler like plugin and I have yet to see one. 3rd, I don't have the money for all the stuff I need plugin wise. and I already have it on MV... lol
Generally speaking, would there be interest in some form of tutorial regarding general project management? I see there are a lot of indie/self-taught devs around here, and looking back i feel like there was a lack of resources on how to properly manage a project that might take several years to finish
I've been working on some ABS team A.I. for 'A New Suburbia', and thought I'd share.

I'm generally quite please although the AI is a little grenade heavy right now :rolleyes: - Sneaking and stalking next! Please excuse the terrible map... it was just for ease of viewing!
Voting for the second round of the Map Madness Tournament is now live! Vote for your favorite in each matchup! https://forums.rpgmakerweb.com/index.php?forums/map-madness-2021-polls.187/

Forum statistics

Threads
110,580
Messages
1,054,386
Members
143,698
Latest member
MaizerCosmos
Top