#------------------------------------------------------------------------------
# * Weapons Module
# * Credit for this basic Module Script goes to A-Moonless-Night
#------------------------------------------------------------------------------
#=begin
=begin
module RPG
class Weapon
def setup_default_extension_values
@might = 0 # set up each default value here just in case
end
def might
setup_weapon_extension if @might.nil?
return @might
end
def setup_weapon_extension
setup_default_extension_values
extension = WeaponExtension::WEAPONS
if extension.key?(@id)
@might = extension[@id][:might] # give each variable a value according to
# what is in the hash
end
end
end
end
=end
module ConquestExeWeapon
WEAPONS = {}
WEAPONS[1] = {
:name=> "Bronze Sword",
:might=> 10,
:acc=> 100,
:crit=> -50,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 0,
:skillbonus=> 0,
:luckbonus=> 50,
:defbonus=> 0,
:resbonus=> 0,
:avobonus=> 0,
:ddgbonus=> 25,
:elements=> [1,8],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "A very basic sword, but it will do.",
:buy=> 100,
:sell=> 50,
:icon=> "sword.png",
:animation=> 6,
}
WEAPONS[2] = {
:name=> "Iron Sword",
:might=> 30,
:acc=> 90,
:crit=> 0,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 0,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> 0,
:resbonus=> 0,
:avobonus=> 0,
:ddgbonus=> 0,
:elements=> [1,8],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "A common sword.",
:buy=> 250,
:sell=> 100,
:icon=> "sword.png",
:animation=> 6,
}
WEAPONS[3] = {
:name=> "Steel Sword",
:might=> 50,
:acc=> 85,
:crit=> 0,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> -10,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> 0,
:resbonus=> 0,
:avobonus=> -5,
:ddgbonus=> 0,
:elements=> [1,8],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "This sword is heavy, and reduces your speed.",
:buy=> 500,
:sell=> 200,
:icon=> "sword.png",
:animation=> 6,
}
WEAPONS[4] = {
:name=> "Silver Sword",
:might=> 75,
:acc=> 90,
:crit=> 0,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 0,
:skillbonus=> -10,
:luckbonus=> 0,
:defbonus=> 0,
:resbonus=> 0,
:avobonus=> 0,
:ddgbonus=> -5,
:elements=> [1,8],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "This sword is powerful, but hard to use.",
:buy=> 1000,
:sell=> 450,
:icon=> "sword.png",
:animation=> 8,
}
WEAPONS[5] = {
:name=> "Brave Sword",
:might=> 100,
:acc=> 85,
:crit=> 10,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 40,
:skillbonus=> 0,
:luckbonus=> -10,
:defbonus=> -25,
:resbonus=> -25,
:avobonus=> -10,
:ddgbonus=> -10,
:elements=> [1,8],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "Only the most skilled heroes may wield this sword.",
:buy=> 2500,
:sell=> 1200,
:icon=> "sword.png",
:animation=> 8,
}
WEAPONS[6] = {
:name=> "Brass Katana",
:might=> 15,
:acc=> 100,
:crit=> -50,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 20,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> -15,
:resbonus=> -15,
:avobonus=> 5,
:ddgbonus=> 25,
:elements=> [1,8,14],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "A basic katana, but it will do.",
:buy=> 100,
:sell=> 50,
:icon=> "katana.png",
:animation=> 7,
}
WEAPONS[7] = {
:name=> "Iron Katana",
:might=> 40,
:acc=> 90,
:crit=> 0,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 20,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> -15,
:resbonus=> -15,
:avobonus=> 5,
:ddgbonus=> 0,
:elements=> [1,8,14],
:eqclass=> [1,2,3],
:actoroverride=> 1,
:desc=> "Katana weapons increase your speed, but reduce your defences.",
:buy=> 300,
:sell=> 120,
:icon=> "katana.png",
:animation=> 7,
}
WEAPONS[8] = {
:name=> "Steel Katana",
:might=> 60,
:acc=> 80,
:crit=> 0,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 10,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> -15,
:resbonus=> -15,
:avobonus=> 0,
:ddgbonus=> -5,
:elements=> [1,8,14],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "This katana is powerful, but its weight makes you slow.",
:buy=> 600,
:sell=> 250,
:icon=> "katana.png",
:animation=> 7,
}
WEAPONS[9] = {
:name=> "Silver Katana",
:might=> 80,
:acc=> 90,
:crit=> 0,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 20,
:skillbonus=> -10,
:luckbonus=> 0,
:defbonus=> -20,
:resbonus=> -20,
:avobonus=> 0,
:ddgbonus=> -5,
:elements=> [1,8,14],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "This katana is powerful, but hard to use.",
:buy=> 1200,
:sell=> 500,
:icon=> "katana.png",
:animation=> 9,
}
WEAPONS[10] = {
:name=> "Nintendium Katana",
:might=> 110,
:acc=> 85,
:crit=> 10,
:strbonus=> 0,
:magbonus=> 20,
:spdbonus=> 60,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> -30,
:resbonus=> -30,
:avobonus=> 10,
:ddgbonus=> -10,
:elements=> [1,8,14],
:eqclass=> [1,2,3],
:actoroverride=> [1],
:desc=> "Only the strongest warriors may wield this katana.",
:buy=> 3000,
:sell=> 1400,
:icon=> "katana.png",
:animation=> 9,
}
WEAPONS[11] = {
:name=> "Rajinto",
:might=> 90,
:acc=> 95,
:crit=> 10,
:strbonus=> 60,
:magbonus=> 0,
:spdbonus=> 30,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> -10,
:resbonus=> -10,
:avobonus=> 20,
:ddgbonus=> 5,
:elements=> [1,8,14,26,28],
:eqclass=> [1],
:actoroverride=> [1,2],
:desc=> "A divine katana with the power of lightning. It lends its strength to its chosen wielder.",
:buy=> -9,
:sell=> -9,
:icon=> "rajinto1.png",
:animation=> 1,
}
WEAPONS[12] = {
:name=> "Alpha Yato",
:might=> 90,
:acc=> 90,
:crit=> 15,
:strbonus=> 30,
:magbonus=> 30,
:spdbonus=> 20,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> 30,
:resbonus=> 30,
:avobonus=> 10,
:ddgbonus=> 20,
:elements=> [1,8,26],
:eqclass=> [1],
:actoroverride=> [1],
:desc=> "An awakened Yato that grants power to its Chosen One.",
:buy=> -9,
:sell=> -9,
:icon=> "yato1.png",
:animation=> 2,
}
WEAPONS[13] = {
:name=> "Seigfried",
:might=> 85,
:acc=> 100,
:crit=> 10,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 0,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> 60,
:resbonus=> 0,
:avobonus=> 0,
:ddgbonus=> 10,
:elements=> [1,8,15,26,33],
:eqclass=> [1],
:actoroverride=> [1],
:desc=> "A divine longsword imbued with the power of night. It lends its vitality to its chosen wielder.",
:buy=> -9,
:sell=> -9,
:icon=> "seigfried1.png",
:animation=> 3,
}
WEAPONS[14] = {
:name=> "Bronze Lance",
:might=> 12,
:acc=> 90,
:crit=> -50,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 0,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> 0,
:resbonus=> 0,
:avobonus=> 0,
:ddgbonus=> 25,
:elements=> [1,9],
:eqclass=> [1],
:actoroverride=> [1],
:desc=> "Bronze weapons make it harder to receive crits, but also harder to inflict them.",
:buy=> 100,
:sell=> 50,
:icon=> "lance.png",
:animation=> 10,
}
WEAPONS[15] = {
:name=> "Iron Lance",
:might=> 40,
:acc=> 80,
:crit=> 0,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> 0,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> 0,
:resbonus=> 0,
:avobonus=> 0,
:ddgbonus=> 0,
:elements=> [1,9],
:eqclass=> [1],
:actoroverride=> [1],
:desc=> "A common lance.",
:buy=> 250,
:sell=> 100,
:icon=> "lance.png",
:animation=> 10,
}
WEAPONS[16] = {
:name=> "Steel Lance",
:might=> 65,
:acc=> 75,
:crit=> 0,
:strbonus=> 0,
:magbonus=> 0,
:spdbonus=> -10,
:skillbonus=> 0,
:luckbonus=> 0,
:defbonus=> 0,
:resbonus=> 0,
:avobonus=> -5,
:ddgbonus=> 0,
:elements=> [1,9],
:eqclass=> [1],
:actoroverride=> [1],
:desc=> "This lance weighs you down, reducing your speed.",
:buy=> 500,
:sell=> 200,
:icon=> "lance.png",
:animation=> 10,
}
end
#=end
=begin
Then, to access the information from your module, you do the following:
WeaponExtension::WEAPONS[1]
to access stuff for weapon 1, the bronze sword
To get, for example, the :spdbonus for weapon 1, you would do the following:
WeaponExtension::WEAPONS[1][:spdbonus]
In the case of the :spdbonus for weapon 1, this would return 0
Don't forget that each symbol must be called like so :symbol
Template:
WEAPONS[] = {
:name=> "",
:might=> ,
:acc=> ,
:crit=> ,
:strbonus=> ,
:magbonus=> ,
:spdbonus=> ,
:skillbonus=> ,
:luckbonus=> ,
:defbonus=> ,
:resbonus=> ,
:avobonus=> ,
:ddgbonus=> ,
:elements=> [],
:eqclass=> [1],
:actoroverride=> [1],
:desc=> "",
:buy=> ,
:sell=> ,
:icon=> ".png"
:animation=> ,
}
=end