Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: G_G on August 06, 2009, 02:18:24 pm

Title: [XP] Actor Specific Equipment Names
Post by: G_G on August 06, 2009, 02:18:24 pm
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




Screenshots

Spoiler: ShowHide
(http://img194.imageshack.us/img194/7964/screeniej.png)



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




Author's Notes

Enjoy and give credits
Title: Re: [XP] Actor Specific Equipment Names
Post by: Hellfire Dragon on August 06, 2009, 03:07:05 pm
This pretty cool, nice work G_G :-*
:naughty:
Title: Re: [XP] Actor Specific Equipment Names
Post by: Starrodkirby86 on August 06, 2009, 07:52:25 pm
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.
Title: Re: [XP] Actor Specific Equipment Names
Post by: G_G on August 06, 2009, 07:59:39 pm
sorry >_>
Title: Re: [XP] Actor Specific Equipment Names
Post by: Starrodkirby86 on August 06, 2009, 08:15:59 pm
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
Title: Re: [XP] Actor Specific Equipment Names
Post by: RoseSkye on August 07, 2009, 04:59:26 am
Very witty, just what I'll expect from G_G.
Title: Re: [XP] Actor Specific Equipment Names
Post by: G_G 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?
Title: Re: [XP] Actor Specific Equipment Names
Post by: RoseSkye on August 07, 2009, 02:06:06 pm
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.