Making a leave program target a specific entrance

For builders to discuss and ask building questions.
Post Reply
Stayne
Sword Journeyman
Sword Journeyman
Posts: 137
Joined: Sun Aug 10, 2003 12:01 pm
Location: Zhentil Keep

Making a leave program target a specific entrance

Post by Stayne » Sun Oct 24, 2004 1:09 am

I have a leave_prog on one of my rooms with multiple exits. I wish for it to work 100% of the time on only one exit. Can someone please give me an example of how I would do this in the code or using an if check.

Thanks
S.
Stayne
Sword Journeyman
Sword Journeyman
Posts: 137
Joined: Sun Aug 10, 2003 12:01 pm
Location: Zhentil Keep

Post by Stayne » Mon Oct 25, 2004 4:02 pm

*looks really sheepish* I should have thought of that......

Thanks Mystra
S.
Caius
Sword Novice
Sword Novice
Posts: 31
Joined: Mon Aug 04, 2003 5:53 pm
Location: Waterdeep
Contact:

Post by Caius » Mon Oct 25, 2004 5:37 pm

Might want to intercept the drag command also.
"Beer is proof that God loves us and wants us to be happy." -- Benjamin Franklin
Tyr
Sword Grand Master
Sword Grand Master
Posts: 502
Joined: Sat Aug 09, 2003 2:56 am
Location: House of the Triad
Contact:

Post by Tyr » Mon Oct 25, 2004 7:07 pm

an intercept on a direction should automatically also intercept drag and shove.

Tyr
Image
Stayne
Sword Journeyman
Sword Journeyman
Posts: 137
Joined: Sun Aug 10, 2003 12:01 pm
Location: Zhentil Keep

Post by Stayne » Mon Oct 25, 2004 11:30 pm

Tyr wrote:an intercept on a direction should automatically also intercept drag and shove.

Tyr
Hmm -
Then its possible for a person to get around the program by "shoving" another.
ie. the intercept program checks qbits on a person going east. If they are set they are allowed that direction, if they are not they are denied. If you shove someone with them in the denied setting, they should avoid the program and end up east correct?

S.
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 Oct 26, 2004 1:23 pm

Stayne wrote:Then its possible for a person to get around the program by "shoving" another.
ie. the intercept program checks qbits on a person going east. If they are set they are allowed that direction, if they are not they are denied. If you shove someone with them in the denied setting, they should avoid the program and end up east correct?
S.
No idea if the check is made on the character who is shoving or the character who is being shoved.
Image
Tyr
Sword Grand Master
Sword Grand Master
Posts: 502
Joined: Sat Aug 09, 2003 2:56 am
Location: House of the Triad
Contact:

Post by Tyr » Tue Oct 26, 2004 2:10 pm

Should be the person being shoved.

Tyr
Image
Post Reply