;alias
/equipment echo weapon: %weapon , armor: %armor , shield: %shield
/weapon { /set %weapon $1- | /echo your weapon is now %weapon }
/shield { /set %shield $1- | /echo your shield is now %shield }
/armor { /set %armor $1- | /echo your armor is now %armor }
/attack describe $chan attacks $1- with his %weapon
/defend describe $chan blocks with his %shield
/armorhit describe $chan blocks the hit with his %armor
/inventory echo inventory: %inv1 , %inv2 , %inv3 , %inv4 , %inv5
/inv1 { /set %inv1 $1- | /echo inventory slot 1 now holds %inv1 }
/inv2 { /set %inv2 $1- | /echo inventory slot 2 now holds %inv2 }
/inv3 { /set %inv3 $1- | /echo inventory slot 3 now holds %inv3 }
/inv4 { /set %inv4 $1- | /echo inventory slot 4 now holds %inv4 }
/inv5 { /set %inv5 $1- | /echo inventory slot 5 now holds %inv5 }
/setclass { /set %class $1- | /echo you are now a %class }
/class /echo you are a %class
/cast describe $chan casts $1-
/heal { /inc %hp $1- | describe $chan heals for $1- health points }
/hp /echo you have %hp health points
/gp /echo you have %gp coins
/decgp { /dec %gp $1- | /echo you have lost $1- coins }
/incgp { /inc %gp $1- | /echo you have obtained $1- coins }
;remotes
alias hit { /dec %hp $1- | if ( %hp <= 0 ) /describe $chan is hit with the attack for $1- damage and runs out of health and dies | if %hp > 0 /describe $chan is hit with the attack for $1- damage }
;variables
%weapon longsword of shinyness
%armor red tunic
%shield round shield
%inv1 book of spells
%inv2 cake
%inv3 nothing
%inv4 nothing
%inv5 nothing
%class adventurer
%hp 0
%gp 100