Town people calling for help when attacked.
issueid=276 07-18-2011 04:02 PM
Junior Member
Number of reported issues by Universal: 3
Town people calling for help when attacked.

Sometimes town person call others to help them protect his wife (or husbad or child) from player, even if his wife is already dead.
Issue Details
Issue Number 276
Project ADOM II (formerly known as JADE)
Category Unknown
Status Cannot Reproduce
Priority Unknown
Affected Version Unknown
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




07-18-2011 08:02 PM
The Creator
They _should_ call for help avenging them - at least that's what I remember to implement. Are you sure that they call for protection?

07-18-2011 08:39 PM
Junior Member
Yes, exactly NPC said something like "Help me protect my wife from <playername>!", even if his wife died 10-20 turns ago.

It's not really a big bug tho, just something that looks weird....

07-18-2011 10:32 PM
Junior Member
If the man is distraught and being threatened (by you!), perhaps he hasn't yet had the time to figure out that his wife is dead. Unless he's examined the body, he might think she's still alive but unconscious, and therefore still in need of protection.

Just because we get a nice little text message informing us that the NPC is dead doesn't mean that the other NPCs get a similar message... :)

08-20-2011 07:51 AM
The Creator
Sorry, I can't reproduce it and the program code seems to be clear to me:


String action = (beingInNeedOfHelp.instance().isAlive()) ? "protect %i0 from" : "avenge %i0 who was killed by";
if (!being.you(Sense.SPEECH, "#scream: \"Help me to " + action + " %i1!\""
, new NoticeableBeing(beingInNeedOfHelp, beingInNeedOfHelpLabel)
, new NoticeableBeing(offender, offenderLabel)))
{
being.you(Sense.SIGHT, "#scream something!");
}

+ Reply