Easy RPG Creator Wiki
Advertisement

Allows the retrieval of information in regards to the Items Tab data.  If you need to do anything that involves items, this needs to be attached to your scene.  (This includes the Items Menu and doesn't include the Inventory Manager, which does not actually require the handlers for weapons, armors, or items, or the chest system).  More information on each of the different Item fields can be found on the Items Tab page.

Here is a full list of the current custom blocks currently tied in to the Item Database Handler, and it is important to note that much of this same information is available by hovering over the custom block in Stencyl and looking to the bottom left side of the screen:

  • Get Name for Item <text> - Returns the name of the item as it appears in the database.  The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Text
  • Get ID for Item <text> - Returns the ID of an item as it appears in the database.  The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Number
  • Get Description for Item <text> - Returns the description of a database item. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Text
  • Get Price for Item <text> - Returns the price of a database item. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Number
  • Get Usage Scope for Item <text> - Returns a numerical representation of the scope of a database item (see instructions for more details). The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Number [More about the numerical representation of the scope in later updates]
  • Get Consumable Status for Item <text> - Returns whether or not a database item is consumable. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Boolean
  • Get Restorative Health Percentage for Item <text> - Returns a database item’s HP Rate (%) value.  The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Number
  • Get Restorative Health Value for Item <text> - Returns a database item’s HP Value. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Number
  • Get Mana Restoration Percentage for Item <text> - Returns a database item’s MP Rate (%) value. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return: Number
  • Get Mana Restoration Value for Item <text> - Returns a database item’s MP Value. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Number
  • Get Base Damage Dealt by Item <text> - Returns the Base DMG value of a database item. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Number
  • Get Damage Variance by Item <text> - Returns the damage variance (the random number added to the base damage) of a database item. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return Type: Number
  • Does Item <text> Damage MP? - Returns whether an item will damage mp instead of mp. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return: Boolean
  • Get Cause/Cure Effect for Item <text'> - Returns a number that displays whether or not an item should add an effect to a given character. The number is either a 0, for none, 1 for cure, or 2 for cause. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.
    Return:
    Number
  • Get Effect Name for Item <text> - Returns the name of an effect that this item will cause/cure. The <text> portion is where you can type in either the name of the item as it appears in the database, or the item's ID.

Return: Text

Advertisement