All pastes #475243 Raw Edit

Something

public text v1 · immutable
·published 2007-05-07 10:22 UTC
rendered paste body

on *:input:*: {

  var %text = $1-

  ; To copy/paste incomings.

  if ( *[*]*[*]*Attacking* iswm %text ) { %text = 5 $+ %text $+  }

  if ( *[*]*[*]*Defending* iswm %text ) { %text = 3 $+ %text $+  }

  if ( *[*]*Unknown* iswm %text ) { %text = 10 $+ %text $+  }

  if ( Total:* iswm %text ) { %text = 2 $+ %text $+  }



  ; To copy/paste battle reports.

  if ( *allied*hostile* iswm %text ) || ( *allied*stole* iswm %text ) || ( You gained* iswm %text ) || ( You stole isin %text ) { %text = 3 $+ %text $+  }

  if ( *hostile*allied* iswm %text ) || ( *hostile*stole* iswm %text ) || ( You lost* iswm %text ) { %text = 4 $+ %text $+  }

  if ( Distracted:* iswm %text ) || ( Disabled:* iswm %text ) || ( Bribed:* iswm %text ) || ( Died:* iswm %text ) { %text = 12 $+ %text $+  }



  ; To display the text if non empty.

  if (%text) { /say %text }

  /halt

}