shimeji-collection/img/Rockman.exe/conf/behaviors.xml

177 lines
8.6 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<Mascot xmlns="http://www.group-finity.com/Mascot" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.group-finity.com/Mascot Mascot.xsd">
<BehaviorList>
<!-- ALWAYS REQUIRED -->
<Behavior Name="ChaseMouse" Frequency="1">
<NextBehavior Add="false">
<BehaviorReference Name="SitAndFaceMouse" Frequency="5" />
</NextBehavior>
</Behavior>
<Behavior Name="SitAndFaceMouse" Frequency="100">
<NextBehavior Add="false">
<BehaviorReference Name="SitAndFaceMouse" Frequency="100" />
<BehaviorReference Name="SitAndSpinHead" Frequency="200" />
<BehaviorReference Name="SitWhileDanglingLegs" Frequency="500" />
</NextBehavior>
</Behavior>
<Behavior Name="SitAndSpinHead" Frequency="300">
<NextBehavior Add="false">
<BehaviorReference Name="SitAndFaceMouse" Frequency="100" />
</NextBehavior>
</Behavior>
<!-- ALWAYS REQUIRED -->
<Behavior Name="Fall" Frequency="0" />
<!-- ALWAYS REQUIRED -->
<Behavior Name="Dragged" Frequency="0" />
<!-- ALWAYS REQUIRED -->
<Behavior Name="Thrown" Frequency="0" />
<Behavior Name="PullUp" Frequency="0" />
<!-- On the Floor -->
<Condition Condition="#{mascot.environment.floor.isOn(mascot.anchor) || mascot.environment.activeIE.topBorder.isOn(mascot.anchor)}">
<Behavior Name="curledup" Frequency="300" />
<NextBehavior Add="true">
<BehaviorReference Name="SitAndSpinHead" Frequency="1000" />
</NextBehavior>
<BehaviorReference Name="SitAndSpinHead" Frequency="500" />
<Behavior Name="SitDown" Frequency="300">
<NextBehavior Add="true">
<BehaviorReference Name="SitAndSpinHead" Frequency="1000" />
<BehaviorReference Name="LieDown" Frequency="1000" />
<BehaviorReferance Name="SitWhileDanglingLegs" Frequency="500" />
</NextBehavior>
</Behavior>
<Behavior Name="TalkWithLanMail" Frequency="600" />
<Behavior Name="LieDown" Frequency="50">
<NextBehavior Add="false">
<BehaviorReference Name="SitDown" Frequency="100" />
<BehaviorReference Name="CrawlAlongIECeiling" Frequency="100" Condition="${mascot.environment.activeIE.topBorder.isOn(mascot.anchor)}" />
<BehaviorReference Name="CrawlAlongWorkAreaFloor" Frequency="100" Condition="${mascot.environment.floor.isOn(mascot.anchor)}" />
</NextBehavior>
</Behavior>
<Behavior Name="StandUp" Frequency="100" />
<Behavior Name="PullUpShimeji" Frequency="500" Condition="#{mascot.totalCount &lt; 50}" />
</Condition>
<!-- On the Wall -->
<Condition Condition="#{ mascot.lookRight ? (
mascot.environment.workArea.rightBorder.isOn(mascot.anchor) ||
mascot.environment.activeIE.leftBorder.isOn(mascot.anchor) ) : (
mascot.environment.workArea.leftBorder.isOn(mascot.anchor) ||
mascot.environment.activeIE.rightBorder.isOn(mascot.anchor) ) }">
<Behavior Name="HoldOntoWall" Frequency="300" />
<Behavior Name="FallFromWall" Frequency="50" Condition="${!mascot.environment.floor.isOn(mascot.anchor)}" />
</Condition>
<!-- On the Ceiling -->
<Condition Condition="#{mascot.environment.ceiling.isOn(mascot.anchor) || mascot.environment.activeIE.bottomBorder.isOn(mascot.anchor)}">
<Behavior Name="HoldOntoCeiling" Frequency="300" />
<Behavior Name="FallFromCeiling" Frequency="100" />
</Condition>
<!-- On Work Area Floor -->
<Condition Condition="#{mascot.environment.floor.isOn(mascot.anchor)}">
<Behavior Name="WalkAlongWorkAreaFloor" Frequency="500" />
<Behavior Name="RunAlongWorkAreaFloor" Frequency="500" />
<Behavior Name="CrawlAlongWorkAreaFloor" Frequency="200">
<NextBehavior Add="false">
<!-- Finished Crawling -->
<BehaviorReference Name="LieDown" Frequency="100" />
</NextBehavior>
</Behavior>
<Behavior Name="WalkLeftAlongFloorAndSit" Frequency="300" />
<Behavior Name="WalkRightAlongFloorAndSit" Frequency="300" />
<Behavior Name="GrabWorkAreaBottomLeftWall" Frequency="100" />
<Behavior Name="GrabWorkAreaBottomRightWall" Frequency="100" />
<Behavior Name="WalkLeftAndSit" Frequency="400" />
<Behavior Name="WalkRightAndSit" Frequency="400" />
<Behavior Name="WalkAndGrabBottomLeftWall" Frequency="700" />
<Behavior Name="WalkAndGrabBottomRightWall" Frequency="700" />
<Behavior Name="JumpFromBottomOfIE" Frequency="200" Condition="#{mascot.anchor.x &gt;= mascot.environment.activeIE.left &amp;&amp;
mascot.anchor.x &lt; mascot.environment.activeIE.right}" />
<Behavior Name="PullUpShimeji" Frequency="500" Condition="#{mascot.totalCount &lt; 50}" />
</Condition>
<!-- On Work Area Facing the Wall -->
<Condition Condition="#{mascot.lookRight ? mascot.environment.workArea.rightBorder.isOn(mascot.anchor) :
mascot.environment.workArea.leftBorder.isOn(mascot.anchor)}">
<Behavior Name="ClimbHalfwayAlongWall" Frequency="100" />
<Behavior Name="ClimbAlongWall" Frequency="100" />
</Condition>
<!-- On Work Area Top Facing -->
<Condition Condition="#{mascot.environment.ceiling.isOn(mascot.anchor)}">
<Behavior Name="ClimbAlongCeiling" Frequency="100" />
</Condition>
<!-- On Top of IE -->
<Condition Condition="#{mascot.environment.activeIE.topBorder.isOn(mascot.anchor)}">
<Behavior Name="WalkAlongIECeiling" Frequency="400" />
<Behavior Name="RunAlongIECeiling" Frequency="50" />
<Behavior Name="CrawlAlongIECeiling" Frequency="100">
<NextBehavior Add="false">
<!-- Finished Crawling -->
<BehaviorReference Name="LieDown" Frequency="300" />
</NextBehavior>
</Behavior>
<Behavior Name="SitOnTheLeftEdgeOfIE" Frequency="500" />
<Behavior Name="SitOnTheRightEdgeOfIE" Frequency="500" />
<Behavior Name="JumpFromLeftEdgeOfIE" Frequency="300" />
<Behavior Name="JumpFromRightEdgeOfIE" Frequency="300" />
<Behavior Name="WalkLeftAlongIEAndSit" Frequency="400" />
<Behavior Name="WalkRightAlongIEAndSit" Frequency="400" />
<Behavior Name="WalkLeftAlongIEAndJump" Frequency="200" />
<Behavior Name="WalkRightAlongIEAndJump" Frequency="200" />
</Condition>
<!-- On IE's Side -->
<Condition Condition="#{mascot.lookRight ? mascot.environment.activeIE.leftBorder.isOn(mascot.anchor) :
mascot.environment.activeIE.rightBorder.isOn(mascot.anchor)}">
<Behavior Name="HoldOntoIEWall" Frequency="300" />
<Behavior Name="ClimbIEWall" Frequency="200" />
</Condition>
<!-- On the Bottom of IE -->
<Condition Condition="#{mascot.environment.activeIE.bottomBorder.isOn(mascot.anchor)}">
<Behavior Name="ClimbIEBottom" Frequency="100" />
<Behavior Name="GrabIEBottomLeftWall" Frequency="300" />
<Behavior Name="GrabIEBottomRightWall" Frequency="300" />
</Condition>
<Behavior Name="JumpFromLeftWall" Frequency="100" Condition="#{!mascot.environment.workArea.leftBorder.isOn(mascot.anchor) &amp;&amp;
mascot.anchor.x &lt; mascot.environment.workArea.left+400 &amp;&amp;
Math.abs(mascot.environment.workArea.bottom-mascot.anchor.y) &lt;mascot.environment.workArea.height/4}" />
<Behavior Name="JumpFromRightWall" Frequency="100" Condition="#{!mascot.environment.workArea.rightBorder.isOn(mascot.anchor) &amp;&amp;
mascot.anchor.x &gt;= mascot.environment.workArea.right-400 &amp;&amp;
Math.abs(mascot.environment.workArea.bottom-mascot.anchor.y) &lt;mascot.environment.workArea.height/4}" />
<!-- IE Is Visible -->
<Condition Condition="#{mascot.environment.activeIE.visible}">
<Behavior Name="JumpOnIELeftWall" Frequency="300" Condition="#{mascot.anchor.x &lt; mascot.environment.activeIE.left &amp;&amp;
Math.abs(mascot.environment.activeIE.bottom-mascot.anchor.y) &lt;mascot.environment.activeIE.height/4}" />
<Behavior Name="JumpOnIERightWall" Frequency="300" Condition="#{mascot.anchor.x &gt; mascot.environment.activeIE.right &amp;&amp;
Math.abs(mascot.environment.activeIE.bottom-mascot.anchor.y) &lt;mascot.environment.activeIE.height/4}" />
<Behavior Name="ThrowIEFromLeft" Frequency="100" Condition="#{mascot.environment.activeIE.bottom &lt; mascot.anchor.y-64 &amp;&amp;
mascot.anchor.x &lt; mascot.environment.activeIE.left}" />
<Behavior Name="ThrowIEFromRight" Frequency="100" Condition="#{mascot.environment.activeIE.bottom &lt; mascot.anchor.y-64 &amp;&amp;
mascot.anchor.x &gt; mascot.environment.activeIE.right}" />
<Behavior Name="WalkAndThrowIEFromRight" Frequency="200" Condition="#{mascot.environment.activeIE.bottom &lt; mascot.anchor.y-64 &amp;&amp;
mascot.anchor.x &lt; mascot.environment.activeIE.left}" />
<Behavior Name="WalkAndThrowIEFromLeft" Frequency="200" Condition="#{mascot.environment.activeIE.bottom &lt; mascot.anchor.y-64 &amp;&amp;
mascot.anchor.x &gt; mascot.environment.activeIE.right}" />
</Condition>
</BehaviorList>
</Mascot>