< Textual information Index Control flow >

Modification of Items

Many actions of the Adventure Language simply describe how to change the game. They modify the items the game is made of.

ChangeList

Item typeChangeList
Descriptionmodify the list of an item
Actionadds / removes item to / from list
Conditiontrue, if performed

KeyTypeDefaultDescription
listiteman item with a item list
itemitemthe item to add or remove
positionvalue-1the position of the item; see definitions for special values
updatebool1update flag; if false, the list change will not take effect immediately
insertAfterElems<>the position is relative to an element of the list
backwardsbool0the position is relative to the end of the list

Several items contain a list of references to other items. There is one action to modify the list of all of these items. The update flag should only be set to false, if other changes of the same list follow immediately.

List item typeElement item typeUpdate flag
SceneRegionrepaint scene
DialogDialogTextrepaint dialog
RegionAction-
ObjectAction-
SequenceActions-
ConditionConditions-

ChangeImage

Item typeChangeImage
Descriptionexchanges an image
Actionsets a new image
Conditiontrue, if performed

KeyTypeDefaultDescription
itemitem<>item with image
imageImages<>new image; no item means no image
redrawbool1if false, the change is not drawn immediately

If the item is the empty item <>, the player image for dialogs defined in the Game item is changed. Items with images are Scene, Region, Object, and Dialog.

ChangeFile

Item typeChangeFile
Descriptionexchanges a file
Actionsets a new file
Conditiontrue, if performed

KeyTypeDefaultDescription
itemMediaitem to change
filefile""new file

ChangeFile may be applied to PlayAudio and PlayVideo.

ChangeFrame

Item typeChangeFrame
Descriptionchanges the frame of an animation
Actionsets a new frame
Conditiontrue, if performed

KeyTypeDefaultDescription
itemFramesitem to change
framevalue0the frame value
typebyte=the start and direction of the change

ChangeFrame may be applied to Animation and Motion. The new frame will be used, when the next frame change occurs. If the new frame is outside of the frame length, the frame will be adapted as if the frames would be repeated in a loop.

ChangeAction

Item typeChangeAction
Descriptionexchanges an action
Actionsets a new action
Conditiontrue, if performed

KeyTypeDefaultDescription
itemitemitem to change
actionActions<>new action
typebytesflag for action type; see definitions for values

ChangePlace

Item typeChangePlace
Descriptionchanges placement
Actionsets a new placement
Conditiontrue, if performed

KeyTypeDefaultDescription
placePlacesplaceable item
positionvpointnew position
typebyte+type of placement; see definitions for valid types
stretchbool0if true, size is changed instead of position
redrawbool1if true, the item is redrawn immediately
anglevalue0angle in degree

ChangePlace may be applied to any item with an image and to PlayVideo. In addition, it may be used to change the position of scenes and characters. The angle key is only valid for characters. A character is stopped if walking, before change place is performed. A character may be placed at a new position with a new orientation or may walk as if the player has changed its position.