[XP] Actor Specific Equipment Names

Started by G_G, August 06, 2009, 02:18:24 pm

Previous topic - Next topic

G_G

Actor Specific Equipment Names
Authors: game_guy
Version: 1.0
Type: Actor Specific Equipment Names
Key Term: Actor Add-on



Introduction
# Okay not everyone in an rpg has the same weapon types or armor. So this script
# makes it so actors have actor specific equipment names. So actor 1 uses swords.
# His weapon name would be swords while actor 2's would be spears.


Features


  • Each actor has their own equipment names



Screenshots

Spoiler: ShowHide




Demo

N/A


Script

Spoiler: ShowHide

#===============================================================================
# Actor Specific Equipment Names
# Version: 1.0
# Author: game_guy
#===============================================================================
# Intro:
# Okay not everyone in an rpg has the same weapon types or armor. So this script
# makes it so actors have actor specific equipment names. So actor 1 uses swords.
# His weapon name would be swords while actor 2's would be spears.
#
# Features:
# Each actor has their own equipment names
#
# Instructions:
# Ok go down where it says # ACTOR SPECIFIC NAMES
# Then look at the example to see if you get it. You'll use this.
# when actor_id then return [weapon_name, armor1, armor2, armor3, armor4]
# Example
# when 1 then return ["Sword", "Shield", "Armor", "Helmet", "Accessory"]
# when 8 then return ["Rod", "Barrier", "Robe", "Hat", "Accessory"]
#
# Credits:
# game_guy ~ making it
#===============================================================================
class Game_Actor
  def equip_name
    case id
    when 1 then return ["Sword", "Shield", "Armor", "Helmet", "Accessory"]
    when 2 then return ["Spear", "Shield", "Armor", "Helmet", "Accessory"]
    when 3 then return ["Axe", "Shield", "Armor", "Helmet", "Accessory"]
    when 4 then return ["Knife", "Shield", "Clothes", "Headband", "Accessory"]
    when 5 then return ["Bow", "Shield", "Clothes", "Headband", "Accessory"]
    when 6 then return ["Gun", "Shield", "Suit", "Headband", "Accessory"]
    when 7 then return ["Staff", "Shield", "Robe", "Hat", "Accessory"]
    when 8 then return ["Rod", "Shield", "Robe", "Hat", "Accessory"]
    end
    return ["Sword", "Shield", "Armor", "Helmet", "Accessory"]
  end
end
class Window_EquipRight < Window_Selectable
  def refresh
    self.contents.clear
    @data = []
    @actore = @actor.equip_name
    @data.push($data_weapons[@actor.weapon_id])
    @data.push($data_armors[@actor.armor1_id])
    @data.push($data_armors[@actor.armor2_id])
    @data.push($data_armors[@actor.armor3_id])
    @data.push($data_armors[@actor.armor4_id])
    @item_max = @data.size
    self.contents.font.color = system_color
    self.contents.draw_text(4, 32 * 0, 92, 32, @actore[0])
    self.contents.draw_text(4, 32 * 1, 92, 32, @actore[1])
    self.contents.draw_text(4, 32 * 2, 92, 32, @actore[2])
    self.contents.draw_text(4, 32 * 3, 92, 32, @actore[3])
    self.contents.draw_text(5, 32 * 4, 92, 32, @actore[4])
    draw_item_name(@data[0], 92, 32 * 0)
    draw_item_name(@data[1], 92, 32 * 1)
    draw_item_name(@data[2], 92, 32 * 2)
    draw_item_name(@data[3], 92, 32 * 3)
    draw_item_name(@data[4], 92, 32 * 4)
  end
end




Instructions

# Instructions:
# Ok go down where it says # ACTOR SPECIFIC NAMES
# Then look at the example to see if you get it. You'll use this.
# when actor_id then return [weapon_name, armor1, armor2, armor3, armor4]
# Example
# when 1 then return ["Sword", "Shield", "Armor", "Helmet", "Accessory"]
# when 8 then return ["Rod", "Barrier", "Robe", "Hat", "Accessory"]


Compatibility

Not tested with SDK.
Does not work with Guillames Multi Equipment System  (seperate version being worked on)


Credits and Thanks


  • game_guy ~ for making it



Author's Notes

Enjoy and give credits

Hellfire Dragon


Starrodkirby86

Such a quickly done screenshot...It took me a while to find out what changes there were. xD

I would've put up two different actors' equip windows and compared how they were different as such. But that's me.

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




G_G


Starrodkirby86

It's okay. 'Still love you, G_G.

Just that this looks very rushed (Not the scripting mind you, the whole thread and such). I kinda like it like that. ;p

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




RoseSkye

Very witty, just what I'll expect from G_G.

G_G


RoseSkye

Quote from: game_guy on August 07, 2009, 10:51:08 am
Quote from: RoseSkye on August 07, 2009, 04:59:26 am
Very witty, just what I'll expect from G_G.


Wait is that a good thing?


No, you suck!

HAHAHAHA! NERD!?!


Yeah, it is though.