Author Topic: Obvious Exit Colours, Player/NPC Health Colours  (Read 1785 times)

Offline dragosani

  • Acquaintance
  • *
  • Posts: 6
    • View Profile
Obvious Exit Colours, Player/NPC Health Colours
« on: February 27, 2014, 05:06:11 AM »
Hi all,

Impressed with 3.8.1 :)

Have searched the forums on how to change the default colours for objects in rooms, obvious exits and player/npc health colours and older posts direct me to lib/interactive.c and exists.c but I'm not sure it's there anymore....

Any pointers? Will this also involve a reboot after changing?

Many thanks - keep up the good work....having to learn a new lib but it's awesome the flexibility and options this one has :)

Offline Nilrin

  • Friend
  • **
  • Posts: 85
    • View Profile
Re: Obvious Exit Colours, Player/NPC Health Colours
« Reply #1 on: February 28, 2014, 04:04:23 AM »
I would suggest learning your way around the library some, and perhaps the 'find' and 'grep' commands, which can be helpful in these cases. However, to get you started, the function your looking for is 'eventDescribeEnvironment()' inside /lib/lib/events/describe.c. Also, 'GetHealthShort()' is found in /lib/body.c.

I would do a simple 'warmboot' after making your changes.

P.S. Don't forget to backup your files before making significant changes.

Offline dragosani

  • Acquaintance
  • *
  • Posts: 6
    • View Profile
Re: Obvious Exit Colours, Player/NPC Health Colours
« Reply #2 on: February 28, 2014, 04:56:14 AM »
Many thanks Nil.  Kinda running this through windows at present but will be dropping it into Linux later this week.  I just wasn't too sure about which event I was looking for....appreciate the feedback.

Backups sorted too :)

Offline Newt

  • Pottymouth
  • *
  • Posts: 19
    • View Profile
Re: Obvious Exit Colours, Player/NPC Health Colours
« Reply #3 on: February 28, 2014, 01:45:09 PM »
who said anything about linux?  find, grep, warmboot are all available inside your mud.

Offline quixadhal

  • BFF
  • ***
  • Posts: 631
    • View Profile
    • WileyMUD
Re: Obvious Exit Colours, Player/NPC Health Colours
« Reply #4 on: March 01, 2014, 08:33:51 PM »
grep is, but not grep -ri . foo | grep -v bar, which is what I end up doing more often than not. :)