Main Menu
  • Welcome to The RPG Maker Resource Kit.

[VXA] Actor Specific 'Normal' Attack

Started by apoclaydon, December 09, 2011, 01:59:29 AM

0 Members and 1 Guest are viewing this topic.

apoclaydon

Hi this is my 1st ever script and its very basic

what it allows you to do is to set a specific skill to be an actors normal attack.

#==============================================================================
# ? Actor Alt Attacks
#------------------------------------------------------------------------------
# ?this script allows you to define a skill to be used for the main attack
#  for each actor the default skill is skill id 1 this can be changed
#==============================================================================

class Game_BattlerBase
 
#--------------------------------------------------------------------------
# ? Get the ID of the skill for normal attacks
#--------------------------------------------------------------------------
  def attack_skill_id
    if @actor_id == 2 # Natalie
      return 4 # Wind
    end
    if @actor_id == 1 # Eric
      return 3 # Fire
  else
    return 1 # Attack
  end
  end
end


hope you like and i welcome any advice or suggestions

digdarkevil

pretty nice,but are you sure you post it on the right board?

digdarkevil

OH!! sorry I was not really on earth X'D
yes ur on the right board

apoclaydon

lol its ok it also works for class specific if you dnt wish to have it for individual actor

digdarkevil


oriceles

I didn't undesrtanded how to setup this script. I'm not at all a scripter. Can you include more detailed tags and instructions on header?

Yeyinde

Instead of hardcoding the skill id for each actor, why not have it read a tag in the actor's note field in the database?

apoclaydon

would love too just dont have a clue how to