ID:180513
 
OK, what I want to to shouldn't be too hard.

1. My "Duel" verb works for mobs in oview(1). Now, I want to make it so that you can't use the verb unless you are on one of the opponent mob's sides (North, South, East, or West). How would I do that?

2. How can I make it so that the two mobs fighting each other will automatically face each other at the beginning of a battle?

3. There's also another thing I want to do. While dueling, you can't move. I took care of that in the Move() proc. But, you can still turn yourself(just not actually move). How can I make it so that you can't even turn?

Thank you.
On 5/28/01 10:34 am Cinnom wrote:
OK, what I want to to shouldn't be too hard.

1. My "Duel" verb works for mobs in oview(1). Now, I want to make it so that you can't use the verb unless you are on one of the opponent mob's sides (North, South, East, or West). How would I do that?

Check out the get_dir() function.


2. How can I make it so that the two mobs fighting each other will automatically face each other at the beginning of a battle?

Use get_dir() and set their direction based on that.


3. There's also another thing I want to do. While dueling, you can't move. I took care of that in the Move() proc. But, you can still turn yourself(just not actually move). How can I make it so that you can't even turn?

Override client.Move(), which is where the dir setting is happening.