Stormbound: Kingdom Wars Wiki
Advertisement
Template-info.png Documentation

This template generates a card based on the current day (UTC) using a psuedo-random number generator. It ignores campaign-only cards.

Algorithm

The algorithm uses built-in MediaWiki magic words to generate a psuedo-random number between 0 and 223, which correspond to the rows in the Cargo table (after excluding campaign-only cards and duplicate rows, if any).

The current algorithm is:
floor(({{#var:date}}/{{CURRENTDAY}} + {{CURRENTWEEK}}*({{CURRENTMONTH}} * {{CURRENTMONTH}}/({{CURRENTDOW}} + {{CURRENTDAY}}))) mod 223)

For reference, these values for today are:

{{#var:date}} 20220519
{{CURRENTMONTH}} 05
{{CURRENTWEEK}} 20
{{CURRENTDAY}} 19
{{CURRENTDOW}} 4

Usage

{{Daily card}}

Today's card

7
Herald's Hymn
Herald's Hymn.png
Give 2 strength to a target friendly unit. Command all friendly units in its row forward.
{{#ucfirst:Commo}}


Advertisement