Item materials

Item materials

Postby Noose » 11.02.2012 11:59:10

This stuff is taken straight from coder manual regarding item materials.

--------------------------------------------------------------------------------
MATERIALS
--------------------------------------------------------------------------------

All equipment should have a support for materials. When used properly, the item
weight is calculated automatically using the stats below.

The following stats should be set to calculate item weight:

- materials
- size
- size to weight ratio

Functions for setting these stats:

- set_materials( mapping )
- set_size( integer )
- set_size_ratio( float )

--------------------------------------------------------------------------------
ITEM MATERIALS
--------------------------------------------------------------------------------

An item's materials is a list of materials with a percentage value (100% in
total). The percentage is a portion of the total weight.

Example ( a longsword ):

Code: Select all
    set_materials( ([
        "steel" : 95, // the sword will be mostly made of steel
        "leather" : 5, // the handle can have leather covering
    ]) );



--------------------------------------------------------------------------------
SIZE
--------------------------------------------------------------------------------

Size is a percentage of relative size to an average human (170cm). Thus, an item
with size of 10, will be 17cm in diameter/length/etc. This works in conjunction
with size to weight ratio, which is explained below.

Example ( a longsword ):

Code: Select all
    set_size( 75 ); // the longsword has a length of ~127cm



--------------------------------------------------------------------------------
SIZE TO WEIGHT RATIO
--------------------------------------------------------------------------------

Whereas size will define how large an object will be, the size to weight ratio
will define how much of the item's size is used to calculate weight.

For example, the longsword has a size of 75 (~127cm). However, the sword is not
a shapeless chunk of iron, but a slender piece of craftsmanship. so it will have
a fairly small size to weight ratio, let's say it would be 0.25. That means,
when calculating the weight, the size and materials will be reduced by this
ratio.

Example ( a longsword ):

Code: Select all
    set_size_ratio( 0.25 ); // the sword is quite slender
Noose
 
Posts: 15
Joined: 20.05.2004 08:46:01

Material list

Postby Noose » 11.02.2012 12:13:40

And here's a list of materials, mind the "", they're extracted straight from code. You can inform about typos, present some new materials, etc etc. Just let us know.

metals:
"copper", "tin", "gold", "onyx", "platinum", "chromium", "titanium", "high-steel", "silver", "zinc", "brass", "steel", "tungsten", "mithril", "cobolt", "lead", "adamantium", "iron", "bronze"

organic
"wolfskin", "satine", "dragonscale", "red dragon hide", "silk", "fur", "green dragon hide", "dragon hide", "fabric", "bearskin", "studded leather", "cotton", "suede", "white dragon hide", "black dragon ide", "blue dragon hide", "wool", "leather"

wood
"ebony", "elm", "spruce", "beech", "juniper", "wood", "birch", "fir", "oak", "mahogany", "cherry", "pine", "cedar", "balsa", "maple", "rowan", "willow"

jewels
"pearl", "ruby", "sapphire", "topaz", "white pearl", "diamond", "black pearl", "emerald"

specials
"seashell", "chitin", "krypton", "crystal", "lava stone", "bone", "electrum", "firestone"

stones
"opal", "crystal", "vulcanite", "obsidian", "porcelain", "marble", "basalt", "spectrolite", "granite", "glass", "quartz", "gneiss"
Noose
 
Posts: 15
Joined: 20.05.2004 08:46:01


Return to Manuals

Who is online

Users browsing this forum: No registered users and 1 guest

cron