IETS - v0.5.1
    Preparing search index...

    Function CreateItem

    BG2 barrel re-exports.

    Generated by ts-update. Do not edit manually.

    Uses named re-exports (not export *) so esbuild can statically resolve each binding without falling back to runtime __reExport helpers for externalized .d.ts modules.

    • This action creates the specified item (resref) on the active creature. The usage parameters determine the number of items created or the number of charges on the item, depending on the item type being created. The example script is from AR0602.

       IF
         Global("BG1Pantaloons","GLOBAL",0)
         PartyHasItem("MISC47")
       THEN
         RESPONSE #100
           SetGlobal("BG1Pantaloons","GLOBAL",1)
           ActionOverride("Picture1",CreateItem("MISC47",0,0,0))
           Continue()
       END
      

      Parameters

      • item: ItmRef
      • usage1: number
      • usage2: number
      • usage3: number

      Returns Action