Legend of the Green Dragon

pageparts.php

Table of Contents

wipe_charstats()  : mixed
Resets the character stats array.
addcharstat()  : mixed
Add a attribute and/or value to the character stats display.
getcharstat()  : string
Returns the character stat related to the category ($cat) and the label.
setcharstat()  : mixed
Sets a value to the passed category & label for character stats.
getcharstat_value()  : string
Is alias of getcharstat.
getcharstats()  : string
Returns output formatted character stats.
charstats()  : array<string|int, mixed>
Returns the current character stats or (if the character isn't logged in) the currently online players Hooks provided: charstats.

Functions

wipe_charstats()

Resets the character stats array.

wipe_charstats() : mixed

addcharstat()

Add a attribute and/or value to the character stats display.

addcharstat(string $label[, string $value = null ]) : mixed
Parameters
$label : string

The label to use

$value : string = null

(optional) value to display

getcharstat()

Returns the character stat related to the category ($cat) and the label.

getcharstat(string $cat, string $label) : string
Parameters
$cat : string

The relavent category for the stat

$label : string

The label of the character stat

setcharstat()

Sets a value to the passed category & label for character stats.

setcharstat(string $cat, string $label, mixed $val) : mixed
Parameters
$cat : string

The category for the char stat

$label : string

The label associated with the value

$val : mixed

The value of the attribute

getcharstat_value()

Is alias of getcharstat.

getcharstat_value(string $section, string $title) : string
Parameters
$section : string

The character stat section

$title : string

The stat display label

getcharstats()

Returns output formatted character stats.

getcharstats(array<string|int, mixed> $buffs) : string
Parameters
$buffs : array<string|int, mixed>

charstats()

Returns the current character stats or (if the character isn't logged in) the currently online players Hooks provided: charstats.

charstats([bool $return = true ]) : array<string|int, mixed>
Parameters
$return : bool = true

Search results