[FIXED] Monsters with NEUTRAL tag appearing blue.

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Monsters with NEUTRAL tag appearing blue.

Post by giwo »

This bug stems from the recent changes to using the NEUTRAL tag to control color. The issue is that we are setting a value based on a script setting, but then that value is getting changed later. The Flag() value of a character is not meant to be permanent, but temporary, changing with the actions of that character. It is for that reason I propose a more in-depth change to the flagging system.

NPC's are now moderately seperated from PC's, thus I believe we should add new values that affect only NPC's which would be pulled and permanently stored from scripts.

We can store an extra UI08 value, called npcFlag, which would be in struct NPCValues_st

Rather than NEUTRAL tag in the scripts, I propose we use something like FLAG= where the values would be

INNOCENT (Blue, dependant on criminal and murder status)
NEUTRAL (Gray, dependant on murder status)
EVIL (Red)

Notably this would be entirely seperate from a creatures AI, and would only effect the flagging of the NPC.

There are some special exceptions, of course, such as the uox.ini setting which would turn animals of any color to blue in town (unless they have an agressive AI). However these situations would be handled when updating the character Flag() propery, not affecting the npcFlag property.
Last edited by giwo on Sun Feb 12, 2006 8:19 am, edited 2 times in total.
Scott
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

I have overhauled the flagging system, which should resolve this issue in 0.98-3.2n.
Scott
Locked