## Specification of trigger areas

The following code demonstrates how to specify circular and rectangular trigger areas in a room.

`01 <?xml version="1.0" encoding="ISO-8859-1"?> 02 03 <room scriptid="room1" scriptfile="romm1.bsh"> 04 <triggers> 05 <trigger enabled="true" scriptid="trigger1" type="circle"> 06 <position x="0.0" z="0.0"/> 07 <dimension radius="1.0"/> 08 </trigger> 09 <trigger enabled="true" scriptid="trigger2" type="rect"> 10 <position x="5.0" z="2.0"/> 11 <dimension width="1.25" length="0.9"/> 12 </trigger> 13 </triggers> 14 </room>`
Java2html