Material Template (Asset): Difference between revisions

From FetishQuest Wiki
Jump to navigation Jump to search
JasX (talk | contribs)
Created page with "Physical materials that can be applied to different types of equipment. These are always tied to an Asset Template. {| class="wikitable" |+ !Field !Type !Default !Description |- | | | | |- | | | | |- | | | | |} '''export''' '''function''' help(){     let out = <nowiki>''</nowiki>;     out += '<nowiki><h3>Material Template:</h3></nowiki>'+         '<nowiki><p></p></nowiki>';     out += '<nowiki><h3>Fields</h3></nowiki>';     o..."
 
JasX (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
!Description
!Description
|-
|-
|Label
|String
|
|
|A unique label for your material. '''Do not alter after setting up your material!'''
|-
|Name
|String
|
|
|A unique name for your material
|-
|Base color name
|String
|White
|Name of the color.
|-
|Base color
|Color
|White
|The color itself.
|-
|Tintable
|Boolean
|True
|Whether this material can be dyed.
|-
|Weight
|Integer
|400
|Weight in grams assuming the item the material is tied to is about the size of a shirt.
|-
|Level
|Integer
|1
|Min level for the material to show up in drops.
|-
|Stat Bonus
|Integer
|0
|Lets you add some extra stats to the random asset generator. Not currently used in the main game.
|-
|Hit Sound
|String
|
|
|
|Alternate hit sounds for the item. Can be a URL to an OGG file or a CSV of OGG files. Leave it empty to use the item tags to auto pick a sound for you.
|-
|-
|
|Stats
|
|Int
|
|0
|
|Lets you tweak stats for the base item. You can use negative values. Try to keep the total sum to 0, or up to +4 for high level items.
|-
|-
|Tags
|[[Tag]]
|
|
|
|Tags to add to the player while wearing an item with this material. Starting with as_
|
|
|}
|}
'''export''' '''function''' help(){
    let out = <nowiki>''</nowiki>;
    out += '<nowiki><h3>Material Template:</h3></nowiki>'+
        '<nowiki><p></p></nowiki>';
    out += '<nowiki><h3>Fields</h3></nowiki>';
    out += '<nowiki><table>';</nowiki>
    out +=
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Label<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>A unique label to access the asset by. WARNING: DO NOT CHANGE AFTER SETTING IT, OR RISK BROKEN LINKS!<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Name<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Name of the material. Will be prepended to the asset name.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Base color name<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Name the color of the item.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Base color<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Select a the color.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Tintable<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Check if the material can be dyed at a blacksmith.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Weight<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Assume the material was attached to an item the size of a shirt. How much would it weigh in grams? For metal I suggest 5000-7000.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Level<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Minimum player level for this material to show up in world.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Stat bonus<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Can be used to add bonus enchants. Leave at 0 for most materials.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Hit sound<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Leave empty. This is auto generated.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>SV/BON<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Avoidance/Proficiency adjust. I suggest keeping it small, and using negatives. Such as Steel granting 3 sv physical but -2 sv arcane.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'+
        '<nowiki><tr></nowiki>'+
            '<nowiki><td></nowiki>Tags<nowiki></td></nowiki>'+
            '<nowiki><td></nowiki>Add material tags starting with "as_", such as as_steel, as_metal, as_hard etc.<nowiki></td></nowiki>'+
        '<nowiki></tr></nowiki>'
    ;
       
    out += '<nowiki></table></nowiki>';
    '''return''' out;
};

Latest revision as of 22:01, 19 February 2025

Physical materials that can be applied to different types of equipment. These are always tied to an Asset Template.

Field Type Default Description
Label String A unique label for your material. Do not alter after setting up your material!
Name String A unique name for your material
Base color name String White Name of the color.
Base color Color White The color itself.
Tintable Boolean True Whether this material can be dyed.
Weight Integer 400 Weight in grams assuming the item the material is tied to is about the size of a shirt.
Level Integer 1 Min level for the material to show up in drops.
Stat Bonus Integer 0 Lets you add some extra stats to the random asset generator. Not currently used in the main game.
Hit Sound String Alternate hit sounds for the item. Can be a URL to an OGG file or a CSV of OGG files. Leave it empty to use the item tags to auto pick a sound for you.
Stats Int 0 Lets you tweak stats for the base item. You can use negative values. Try to keep the total sum to 0, or up to +4 for high level items.
Tags Tag Tags to add to the player while wearing an item with this material. Starting with as_