IFML Reference
Actions and Conditions
<always/>Must be inside a <when> element. Actions that follow will always be performed. If you omit the element, it has the same affect.
<chanceFailure seed="1">20%</chanceFailure>Must be inside a <when> element. Actions that follow will be skipped 20 percent of the time.
<chanceSuccess seed="1">20%</chanceSuccess>Must be inside a <when> element. Actions that follow will be performed 20 percent of the time.
<changeProperty type="scene" id="jungleFloor1" property="weather">cloudy
</changeProperty>
Must be inside a <when> element. Changes the value of a property. Type may be "scene","prop", or "character". Id is the id of the scene, prop, or character that contains the property you want to change. Property is the propery you want to change. The value you want to change the property to is between the begin and end tags of the element.
<changeCharacterLocation type="scene" id="campground">shadowyFigure
</changeCharacterLocation>
Must be inside a <when> element. Changes the location of a character. Type may be "scene","prop", or "character" although generally "scene" makes the most sense. Id is the id of the scene, prop, or character to move the character to. The id of the character you want to move is between the begin and end tags of the element.
<changePropLocation type="scene" id="campground">redRubberBall
</changePropLocation>
Must be inside a <when> element. Changes the location of a prop. Type may be "scene","prop", or "character" although generally "scene" or "character" make the most sense. Id is the id of the scene, prop, or character to move the prop to. The id of the prop you want to move is between the begin and end tags of the element.
<characterLocatedAt type="scene" id="backRoom">bartender
</characterLocatedAt>
Must be inside a <when> element. Actions that follow will be performed if the character is in the location specified. Type may be "scene","prop", or "character" although generally "scene" makes the most sense. Id is the id of the scene, prop, or character where the character is hoped to be found. The id of the character that you want to check is between the begin and end tags of the element.
<decreaseProperty type="character" id="player" property="tempature">10
</decreaseProperty>
Must be inside a <when> element. Decreases the value of the property. Type may be "scene","prop", or "character". Id is the id of the scene, prop, or character that contains the property you want to decrease. Property is the propery you want to decrease. The value you want to decrease the property by is between the begin and end tags of the element. Property value must be numeric.
<decreaseScore>10
</decreaseScore>
Must be inside a <when> element. Decreases the player score by the amount indicated. Value must be numeric.
<done/>Must be inside a <when> element. Exits the dialog without completing the remaining actions.
<handled/>Must be inside a <when> element. Indicates that the dialog has handled the player's command and that no other dialogs need to process the command.
<increaseProperty type="character" id="player" property="score">10
</increaseeProperty>
Must be inside a <when> element. Increases the value of the property. Type may be "scene","prop", or "character". Id is the id of the scene, prop, or character that contains the property you want to increase. Property is the propery you want to decrease. The value you want to increase the property by is between the begin and end tags of the element. Property value must be numeric.
<increaseScore>10
</increaseScore>
Must be inside a <when> element. Increases the player score by the amount indicated. Value must be numeric.
<moveTo>jungleFloor1</moveTo>Must be inside a <when> element. Moves player to scene specified between the begin and end tags of the element.
<never/>Must be inside a <when> element. Actions that follow will never be performed. This element is generally used to disable sections of actions and conditions while debugging.
<propertyGreaterThan type="character" id="player" property="score">100
</propertyGreaterThan>
Must be inside a <when> element. Actions that follow will be performed if the property is greater than the value between the begin and end tags. Type may be "scene","prop", or "character". Id is the id of the scene, prop, or character that contains the property you want to compare. Property is the propery you want to compare. The value you want to compare the property to is between the begin and end tags of the element.
<propertyIs type="scene" id="jungleFloor1" property="weather">sunny
</propertyIs>
Must be inside a <when> element. Actions that follow will be performed if the property is equal to the value between the begin and end tags. Type may be "scene","prop", or "character". Id is the id of the scene, prop, or character that contains the property you want to compare. Property is the property you want to compare. The value you want to compare the property to is between the begin and end tags of the element.
<propertyLessThan type="character" id="player" property="score">500
</propertyLessThan>
Must be inside a <when> element. Actions that follow will be performed if the property is less than the value between the begin and end tags. Type may be "scene","prop", or "character". Id is the id of the scene, prop, or character that contains the property you want to compare. Property is the property you want to compare. The value you want to compare the property to is between the begin and end tags of the element.
<propLocatedAt type="character" id="player">compass
</propLocatedAt>
Must be inside a <when> element. Actions that follow will be performed if the prop is in the location specified. Type may be "scene","prop", or "character" although generally "scene" or "character" makes the most sense. Id is the id of the scene, prop, or character where the prop is hoped to be found. The id of the prop that you want to check is between the begin and end tags of the element.
<propNotLocatedAt type="character" id="player">compass
</propNotLocatedAt>
Must be inside a <when> element. Actions that follow will be performed if the prop is not in the location specified. Type may be "scene","prop", or "character" although generally "scene" or "character" makes the most sense. Id is the id of the scene, prop, or character where the prop is hoped to be found. The id of the prop that you want to check is between the begin and end tags of the element.
<say>Hello</say>Must be inside a <when> element. Displays the text between the begin and end tags in the message area of the game.
<sayInventory/>Must be inside a <when> element. Displays the props with a location of "player" in the inventory area of the game.
<sayProperty type="scene" id="start" property="weather"/>Must be inside a <when> element. Displays the property between the begin and end tags in the message area of the game.Type may be "scene","prop", or "character". Id is the id of the scene, prop, or character that contains the property you want to display. Property is the propery you want to display.
<updateScene/>Must be inside a <when> element. Re-displays the scene's props and characters.