/** * <summary>Creates a new instance of the 'Inventory: Check' Action, set to query how many items the player is carrying</summary> * <param name = "numItems">The number of items to check for</param> * <param name = "condition">The condition to check for</param> * <returns>The generated Action</returns> */ public static ActionInventoryCheck CreateNew_NumberOfItemsCarrying(int numItems, IntCondition condition = IntCondition.EqualTo) { ActionInventoryCheck newAction = (ActionInventoryCheck)CreateInstance <ActionInventoryCheck>(); newAction.invCheckType = InvCheckType.NumberOfItemsCarrying; newAction.intValue = numItems; newAction.intCondition = condition; return(newAction); }
/** * <summary>Creates a new instance of the 'Inventory: Check' Action, set to check if the player is carrying a specific item</summary> * <param name = "itemID">The ID number of the inventory item to check for</param> * <returns>The generated Action</returns> */ public static ActionInventoryCheck CreateNew_CarryingSpecificItem(int itemID) { ActionInventoryCheck newAction = (ActionInventoryCheck)CreateInstance <ActionInventoryCheck>(); newAction.invCheckType = InvCheckType.CarryingSpecificItem; newAction.invID = itemID; return(newAction); }