rendered paste body)
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 = 5 $+ %text $+ }
if ( Distracted:* iswm %text ) || ( Disabled:* iswm %text ) || ( Bribed:* iswm %text ) || ( Dead:* iswm %text ) { %text = 2 $+ %text $+ }
; To display the text if non empty.
if (%text) { /say %text }
/halt
}
}