Guard code to the justice system

For builders to discuss and ask building questions.
Post Reply
User avatar
Ellian
Sword Master
Sword Master
Posts: 180
Joined: Mon Jan 05, 2004 4:31 am
Location: Waterdeep - Temple of Beauty
Contact:

Post by Ellian » Wed May 04, 2005 9:44 pm

Will guards summoned in this way be able to find their way through doors, no_mob rooms, and other obstacles? Do they return to their posts after the attacker has been stopped? And do they continue to chase after the PC, or report the PC, if the murder is sucessful before any of the guards arrive?


Jayson
User avatar
Kregor
Sword Grand Master
Sword Grand Master
Posts: 1474
Joined: Sun Jul 11, 2004 6:14 am
Location: Baldur's Gate

Guard code to the justice system

Post by Kregor » Tue May 17, 2005 12:26 am

Mystra wrote:And they tend to hang around, unless they are wandering mobs.

Sharni
Theoretically, could you fix this for normally sentinel guards by putting a time prog on them, so that every game hour they mpgoto, or more realistically, mpwalkto back to their post if their position is not fighting?

Of course, that would be extra lines of code over just putting the vnum for guards on a wandering mob

Also, does this guard prog make the mobs ignore ACT_NOWANDER or NOMOB rooms?
"There is no safety for honest men except by believing all possible evil of evil men."

Kregor - Ranger of Tangled Trees
Rozor - Lady Luck's Duelist
Tygen - Ranger-Bard of Mielikki
User avatar
Kregor
Sword Grand Master
Sword Grand Master
Posts: 1474
Joined: Sun Jul 11, 2004 6:14 am
Location: Baldur's Gate

Post by Kregor » Tue May 17, 2005 9:22 pm

Mystra wrote:Ideally you should be choosing a vnum of a guard who IS wandering the area. Guards should be patrolling, not sitting in one spot. And it should be a vnum, of which you have several wandering the area. The more you have of that vnum, the better protected your NPC's will be.
So, basically, the alarm gets sounded, and they swarm

nice.... :)
"There is no safety for honest men except by believing all possible evil of evil men."

Kregor - Ranger of Tangled Trees
Rozor - Lady Luck's Duelist
Tygen - Ranger-Bard of Mielikki
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Post by Dalvyn » Tue May 17, 2005 9:35 pm

Several guards, or only one?
Image
Post Reply