=====Overview=====
A TemplateType is a DesignType that can be used to generate randomized, dynamic types. Unlike static types (which are defined in the same way in every single game), dynamic types can vary dramatically by game. For instance, the following template creates a weapon that shoots either positron, plasma or antimatter.
]]>
TemplateType randomization can go further than that. For instance, the following code generates a laser weapon with three possible variations.
%weapon%
]]>
"
"dual laser cannon"
"
"
"fast-fire laser cannon"
"
"
)
weaponBase
)
}
)
]]>
The CDATA block escapes the angle brackets and the elements use apostrophes rather than quotation marks to avoid string problems. The event returns the entire XML that will be used to define the resulting type.
=====References=====
[[https://forums.kronosaur.com/viewtopic.php?p=44626#p44626|Forum post discussing implementation plan]]
* [[http://forums.kronosaur.com/viewtopic.php?p=45046#p45046| used to be called ]]