markdwags / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
https://www.razorce.com
GNU General Public License v3.0
139 stars 97 forks source link

[FEATURE] Add Facing Direction to Player Variables #220

Open Vlek opened 1 year ago

Vlek commented 1 year ago

All feature requests will be considered, but not all will be implemented but please don't let that discourage you from submitting more.

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Currently, there is no way to script in the normal Razor macro system as well as within a script in the Razor Enhanced feature set to gather what direction that a player is facing and perform actions based on that direction.

One such situation where this is helpful is with resource gathering. I would like to be able to create a script where I am going to mine in the relative direction that the player is facing. So, if my character is facing directly north, then I would do a target relative with x: 0, y: -1.

Describe the solution you'd like A clear and concise description of what you want to happen.

I would suggest a Facing or Direction variable that returns 0-7 for the different facing values as represented below:

0 1 2
7 Player 3
6 5 4

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

I do not have an idea for what would be a good alternative.

Additional context Add any other context or screenshots about the feature request here.

N/A