Skip to reading
Action Lists & Events

IfInventoryItemWasUsed

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
On this page

Check the inventory item passed in the interaction context.

It asks what was used in this call, not merely whether the bag contains the item.

Source table from IfInventoryItemWasUsed, page 54
Field / stored keyInputDefault where specified
Inventory Item itemIdChoose an inventory definition ID.-

IfCharacterMoving#

Branch on whether a character is moving.

Use it to postpone a staged pose or give a different observation; it does not itself wait for movement to end.

Source table from IfInventoryItemWasUsed, page 54
Field / stored keyInputDefault where specified
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.-

WhileLoop#

Repeat its body while a variable comparison is true, up to a safety limit.

Change the tested value inside the loop. A safety limit prevents a runaway graph, but does not make an incorrectly designed loop useful.

Source table from IfInventoryItemWasUsed, page 54
Field / stored keyInputDefault where specified
Variable nameChoose a game variable name.-
Operator operatorChoose: ==, !=, <, <=, >, >=.-
Value valueA value of the type required by the selected variable, operation or property.-
Safety Limit maxIterationsWhole number.-
Page 54 of 189Permalink
Go to page