#==================================================================================
# Actor Generator script
#         by Mando Jetii
#==================================================================================

#n is the actor's name, be sure to put it in quotes
#c is the actor's class ID number
#g1 is the actor's Character Graphic, put it in quotes, you don't need the file
#   extension
#h is the hue modifier for the Character Graphic (0 to 360)
#g2 is the actor's Battler Graphic
#w is the actor's weapon ID number
#a1-a4 are the actor's armor ID number (a1: shield, a2: helmet, a3: body armor,
#    a4: accessory); if you don't want them to have any weapons or armor then
#    remove the respective variable (w, a1, a2, a3, or a4) or put 0 in the input
#$x is the first actor slot you want it to check (you can set it to whatever
#    you want); 32 is the max number of actor slots in the project I'm working
#    in (again, set it to your own max)
#To call the script, put make_actor("name",#,"character",#,"battler",#,#,#,#,#)
#    in a script event, with the fields filled with the proper info (e.g.
#    make_actor("Aluxes",1,"001-Fighter01",0,"001-Fighter01",1,1,5,13,0) will
#    make a duplicate of the default Actor 1)

def make_actor(n,c,g1,h,g2,w,a1,a2,a3,a4)
  $x = 11
  while $x < 32
    if n != 32
      if $data_actors[$x].class_id == 10
        $data_actors[$x].name = n
        $data_actors[$x].class_id = c
        $data_actors[$x].character_name = g1
        $data_actors[$x].character_hue = h
        $data_actors[$x].battler_name = g2
        $data_actors[$x].weapon_id = w
        $data_actors[$x].armor1_id = a1
        $data_actors[$x].armor2_id = a2
        $data_actors[$x].armor3_id = a3
        $data_actors[$x].armor4_id = a4
        $x = 32
      else
        $x += 1
      end
    end
  end
end