The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: apoclaydon on December 09, 2011, 01:59:29 AM

Title: [VXA] Actor Specific 'Normal' Attack
Post by: apoclaydon on December 09, 2011, 01:59:29 AM
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.

Code: [Select]
#==============================================================================
# ? 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
Title: Re: [VXA] Actor Specific 'Normal' Attack
Post by: digdarkevil on December 09, 2011, 07:30:37 PM
pretty nice,but are you sure you post it on the right board?
Title: Re: [VXA] Actor Specific 'Normal' Attack
Post by: digdarkevil on December 09, 2011, 07:32:39 PM
OH!! sorry I was not really on earth X'D
yes ur on the right board
Title: Re: [VXA] Actor Specific 'Normal' Attack
Post by: apoclaydon on December 09, 2011, 09:55:43 PM
lol its ok it also works for class specific if you dnt wish to have it for individual actor
Title: Re: [VXA] Actor Specific 'Normal' Attack
Post by: digdarkevil on December 10, 2011, 09:12:51 PM
OK
Title: Re: [VXA] Actor Specific 'Normal' Attack
Post by: oriceles on December 11, 2011, 02:10:03 AM
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?
Title: Re: [VXA] Actor Specific 'Normal' Attack
Post by: Yeyinde on December 11, 2011, 02:49:02 AM
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?
Title: Re: [VXA] Actor Specific 'Normal' Attack
Post by: apoclaydon on December 11, 2011, 01:19:45 PM
would love too just dont have a clue how to