Resizing the Compass/Coloring Inventory Items.

I was just curious if there was a way to color inventory items at all? And if it was possible to resize the compass and perhaps make it a little smaller.

Thanks in advance!


Like, for example you can do font color...like this

<font color "439029">Blah blah</font color>

But is there a way to apply that to alias' or the item name?


On the "Object" tab there is a box for the name in the inventory list, so put it there. The HTML would be like this:

<font color="#439029">Blah blah</font>

Or try this, using CSS:

<span style="color:#439029;">Blah blah</span>
<span style="background-color:yellow;">Blah blah</span>


It's weird. It worked. But when erased, Quest leaves an item 100% blank and all commands for them become nulled.


The slick way to do this is to put a script on your object types that set the colour, then at the start of the game, have Quest go through every object in the game, and have each one (with the script) set the colour itself.

Here is an example of a script to go on a type to set all objects of that type yellow (also capitalises the list alias):

      if (HasString(this, "alias")) {
        s = CapFirst(this.alias)
      }
      else {
        s = CapFirst(this.name)
      }
      if (HasString(this, "listalias")) s = this.listalias
      this.listalias = "<span style=\"color:yellow\">" + s + "</span>"

In game.start, put this (the script attribute is called "colourmylistalias"):

foreach (o, AllObjects()) {
  if (HasScript(o, "colourmylistalias")) {
    do(o, "colourmylistalias")
  }
}

My most recent versions of ConvLib and ClothingLib have this script built in, so clothing will be blue, and people green. I plan to update Combat lib to do this to one day too.