Overview Screenshots Downloads News Documentation Thanks Simugraph Home Page

H-World - Item inspector configuration

Descriptions are up to date with H-World version 0.1.6

Item inspector configuration

H-World used the item inspector in two places

  1. Player stats panel (uses config file ./data/player.tab)
  2. Inventory/trading/item exchange view (uses config file ./data/inspector.tab):

Syntax

The item inspector reads a config file that tells it what item properties to display and how to display them. Each configuration entry consist of a number of lines:

  2
  Health: %d/%d
  HPcurr
  HPmax

Above example means, that 2 properties shall be displayed, formatted as Health: %d/%d. The properties to display are HPcurr and HPmax. The line will only be displayed if all properties are set for the inspected item. The format placeholders %d resemble those knwon from printf(). Be careful that they match the type of the property: %s for string and %d forinteger. Mismatches, particularly %s instead of %d, can lead to a crash of the H-World CRPG engine.

See also: Item configuration manual

Examples

Examples, taken from H-World/The Jungle 0.1.6:

Player stats panel (./data/player.tab):

  2
  Health: %d/%d
  HPcurr
  HPmax
  1
  Bulk: %d
  hinderance
  1
  Score: %d
  score
    

Item inspector (./data/inspector.tab):

Example screenshot from H-World/The Jungle 0.1.6:

It shows a dagger being inspected by the player. The config entries are those displayed right below, so you can compare the effects quite readily.

Inventory 2
Click to enlarge
  1
  Weight: %dg
  weight
  1
  Chance to block: %d%%
  block
  1
  Light radius: %d
  light_rad
  1
  Hinderance: %d
  bulk
  1
  Attack 1: %s
  attack[0].name
  2
  · %s %s damage 
  attack[0].damage[0].damage
  attack[0].damage[0].type
  2
  · %s %s damage 
  attack[0].damage[1].damage
  attack[0].damage[1].type
  1
  Attack 2: %s
  attack[1].name
  2
  · %s %s damage 
  attack[1].damage[0].damage
  attack[1].damage[0].type
  2
  · %s %s damage 
  attack[1].damage[1].damage
  attack[1].damage[1].type
  1
  Attack 3: %s
  attack[2].name
  2
  · %s %s damage 
  attack[2].damage[0].damage
  attack[2].damage[0].type
  2
  · %s %s damage 
  attack[2].damage[1].damage
  attack[2].damage[1].type
  1
  Attack 4: %s
  attack[3].name
  2
  · %s %s damage 
  attack[3].damage[0].damage
  attack[3].damage[0].type
  2
  · %s %s damage 
  attack[3].damage[1].damage
  attack[3].damage[1].type
  1
  Blunt protection: %d
  Bprotection
  1
  Cut protection: %d
  Cprotection
  1
  Max. stack size is: %d
  max_stack
  1
  Current stack size: %d
  cur_stack
  1
  Potion power level: %d
  power
  1
  It can contain things
  inventory
  2
  up to %dx%d spans
  inventory.width
  inventory.height
  2
  It magically affects %s by %d
  $pre.prop
  pre.value
  1
  It can be thrown for %s cuts
  throw.cut
  1
  It can be thrown for %s impact
  throw.blunt
  1
  %s
  desc
  1
  %s
  desc2
    
Hansjörg Malthaner
Last modified: 13-May-03