Skip to contents

Extracts a variable from a prefixed string and formats it as a remstats effect term.

Usage

create_term(name, prefix, template)

Arguments

name

A string to process.

prefix

The prefix indicating the effect type.

template

A template string, where %s represents the extracted variable.

Value

A formatted string if name matches prefix; otherwise, NULL.