The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Oni/macros

From A Tale in the Desert
Jump to navigationJump to search

Oni's Macro Making Guide (Using ACTool)



Level 1 Tutorial


Prenotes: This tutorial assumes your using a Windows operating system. I have had no experience creating macro in any other operating systems. Sorry :(


Step 1: Get the program I use

If you do not have ACTool yet, got to ACTool Download Page

Install the Program

I've found this to be the easiest to learn and most of the commands make logical sense to me. ie. "mousepos", "delay", "loop" ect.
There are a lot more advanced macro creating tools out there but most of them are similar to scripting language and confuse the hell outta me



Step 2: Basic functions

Function: CTRL+M .
This will capture the mouse position and place the coordinates of the mouse in the macro. To use this command, place the mouse on the object you want to click on, use ALT+TAB to tab over to the ACTool program, and press CTRL+M .

Function: F2.
This will start the macro with out having to click the start button.

Function: ALT+TAB ALT
This will Tab over to the macro program, then the 2nd "ALT" will select the file menu which will pause the macro, from there mouse over to "Macro" menu and click "Stop".
This is very useful sometimes to stop a macro that is running and not functioning correctly. Many times it is nearly impossible to tab over and click stop on the macro.

Function: "Search" menu, "Replace"
Self explanatory: replaces any value in the macro with the given value.


STEP 3: Basic Commands

Command: MousePos
Used in the form of MousePos X,Y where X,Y are the mouse coords. Easiest use of this command is by using the CTRL+M function listed above.
MousePos X,Y is the coordinates on the screen that you want the mouse to move to. ie. MousePos 281, 33.

Command: Delay n
Used in the form of Delay n where "n" is the amount of time in milliseconds. 1 second = "Delay 1000".

Command: Leftclick, Rightclick
Self explanatory: will leftclick or rightclick on desired coordinates.

Command: Keys n
Used in the form of Keys n where "n" is a letter or number. This command will simulate that key stroke (great for using hotkeys in your macro).
If you want to spell something out or put in a 2 or 3 digit number, the command must be repeated.
ie: wanting to type in the number "100"
Keys 1
Delay 50
Keys 0
delay 50
Keys 0


Application:
Ok, now that we know the basics lets write a simple brick making macro.
Open the ACTool program and click "New" to start a new macro. Go ahead and erase those first 2 lines of garbage (something about must have this line to select proper window blah, blah blah... its not needed).

In ATITD, go over to your Improved brick racks and select a standing position that can reach all or most of your brick racks without your character moving to make bricks. (depends on how many racks you have i guess). we will not want the character moving while the macro is running. Remember this standing position: your character will need to be in this same spot every time you run this macro

Hit F8 twice to go into Cartographer's view, Zoom all the way in, and hit ALT+L. (locks the screen, prevents zooming until you hit ALT+L again).

Without moving your character, place the mouse over the first brick rack. Then, without moving the mouse, ALT+TAB over to ACTool, and press CTRL+M. You will now have something like "MousePos X,Y" in your macro. This the location of the first brick rack.

Repeat this step for each of your brick racks that your character can reach without moving. (I stand my character in the middle of all the brick racks for best reach).

Now, in ACTool, you will have a list of "MousePos" coordinates, put a blank space between each line by clicking at the end of each line and hitting the "Enter Key".

At the very top of the macro, above the first "MousePos", type in "Delay 2000". This will delay the macro for 2 seconds before starting

In the space directly Below the first "MousePos X,Y" type in the following:
Delay 100
Keys T
Delay 50
Keys B
Delay 50

Now copy that group of commands (everything starting at the Delay 100 down to the last Delay 50) and paste it into every following blank space after the "MousePos" commands.
At the very end of the macro, put in the command, "Delay 70000" - will delay for 70 seconds.

IF you had 4 brick racks, your macro should look something like this:

Delay 2000
MousePos X,Y
Delay 100
Keys T
Delay 50
Keys B
Delay 50
MousePos X,Y
Delay 100
Keys T
Delay 50
Keys B
Delay 50
MousePos X,Y
Delay 100
Keys T
Delay 50
Keys B
Delay 50
MousePos X,Y
Delay 100
Keys T
Delay 50
Keys B
Delay 50
Delay 70000

In ACTool, set the "number of times to run" to whatever number of times you would want the macro to repeat.
Click Start then Quickly hit ALT+TAB to go back to ATITD.