Template:Part

From TheKolWiki
Jump to: navigation, search

Generate a random body part, for use with hit and critical hit messages, particularly those for monsters (see {{battle}}).

Examples

Due to the way the wiki optimizes the use of this template, one has to use slightly different notation if you want distinct bodyparts to be generated with multiple calls to the template on the same page.

  • He hits you in the {{part}} and the {{part}}, and then bites you in the {{part}}. You hate getting bit in the {{part}}.
    He hits you in the <thigh> and the <kidney>, and then bites you in the <arse>. You hate getting bit in the <neck>.
  • He hits you in the {{part|}} and the {{part|}}, and then bites you in the {{part|}}. You hate getting bit in the {{part|}}.
    He hits you in the <head> and the <arse>, and then bites you in the <knee>. You hate getting bit in the <head>.
  • He hits you in the {{part|}} and the {{part|}}, and then bites you in the {{part}}. You hate getting bit in the {{part}}.
    He hits you in the <groin> and the <foot>, and then bites you in the <arse>. You hate getting bit in the <ear>.

Notice how all calls to {{part}} have the same value in all of the above examples. However {{part|}} is evaluated randomly each time (but may not always be distinct). As in the third example, this can be exploited a bit when the message actually intentionally uses the same part in multiple places.