Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Astrum

Pages: [1]
Dead Souls Support / Re: Color SetShort + plural english
« on: July 21, 2007, 07:11:05 pm »
Yes, that is right about the ending s being another color. If you leave off the %^RESET%^ it functions correctly aside from the bleeding color. I wonder if the following replacement might work.

                  return implode(words, " ");

                  return implode(words, " " + "%^RESET%^");

Dead Souls Support / Color SetShort + plural english
« on: July 21, 2007, 02:54:56 pm »
Issue :
knife when using color in the SetShort becomes knifes when grouped

It looks like this is normally resolved in /secure/sefun/english.c with

234                  case "ff": case "fe":
235                    words[ind] = sprintf("%sves", str[0..x-3]);
236                    return implode(words, " ");

I assume % as the beginning character is causing problems again.
Maybe something like case "\%fe" would help? Or is there another
standard way of resolving this that I'm not aware of?

Dead Souls Support / Re: Color code issues
« on: July 18, 2007, 01:07:17 pm »
That is helpful thanks. I can't think of any reason to not use a or the in the SetShort, so that resolves the issue. As far as stating the problem clearly I thought the difference between Rainbow and RANBOW would be noticable.

Dead Souls Support / Re: Any interest in code cleanup?
« on: July 18, 2007, 01:36:45 am »
I know I would appreciate cleanly indented code. Would be great also if ed gave a tab response. I wonder how many times, I've hit the space bar 4 times in a row.

Dead Souls Support / Re: Color code issues
« on: July 18, 2007, 01:29:29 am »
Right, but that is not a problem for me (yet anyways ;). My issue is the capitalization and the missing character in the SetShort when using ansi.

Dead Souls Support / Color code issues
« on: July 17, 2007, 10:07:36 pm »
I've been experiencing the following bug with an item using extensive use of colors in the SetShort:

You clone Rainbow sword (/realms/astrum/rs.c).

From inventory:
RANBOW sword

You drop Rainbow sword.

In room with no items:
RANBOW sword

In room with items that appear in look before the sword:
A weapons rack, Rainbow sword, and a blackjack table are here.

Wield and unwield give the correct Short and our combat gives an uncolored name (not sure if that is default DS as combat has been modified).

You prick Horse superficially in the torso with your rainbow sword.

Here is the code for the item:

#include <lib.h>
#include <damage_types.h>
#include <vendor_types.h>

inherit LIB_ITEM;

static void create() {
    SetKeyName("rainbow sword");
    SetId( ({ "sword", "rainbow sword"  }) );
    SetAdjectives( ({ "rainbow" }) );
      "%^MAGENTA%^w%^RESET%^ sword");
    SetLong("A magical looking sword made of some unknown "
      "material that is rainbow colored.");

Pages: [1]