/tg/ Station 13 - Modules - TypesProc Details

weapon_description

The purpose of this element is to widely provide the ability to examine an object and determine its stats, with the ability to add additional notes or information based on type or other factors

Procs

build_label_textCompiles a warning label detailing various statistics of the examined weapon
topic_handlerOnly show this tag for items that could feasibly be weapons, shields, or those that have special notes Details the stats of the examined weapon
warning_labelThis proc is called when the user examines an object with the associated element. This produces a hyperlinked text line provided that the given item meets the weapon-determining criteria (Sufficient force or notes)
weapon_tag_convertConverts percentile based stats to an adjective appropriate for the examined warning label

Proc Details

build_label_text

Compiles a warning label detailing various statistics of the examined weapon

This function is called by the "examine" function of Topic(), and compiles a number of relevant weapon stats into a message that is then shown to the user Arguments:

topic_handler

Only show this tag for items that could feasibly be weapons, shields, or those that have special notes Details the stats of the examined weapon

This function is called when the user clicks the hyperlink provided by warning_label(). It calls build_label_text() and outputs its return value to the user

Arguments:

warning_label

This proc is called when the user examines an object with the associated element. This produces a hyperlinked text line provided that the given item meets the weapon-determining criteria (Sufficient force or notes)

Arguments: * source - Object being examined, cast into an item variable

weapon_tag_convert

Converts percentile based stats to an adjective appropriate for the examined warning label

Arguments: