Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old November 2, 2007, 15:31   #1
Skitzman69
Rookie
 
Join Date: Nov 2007
Posts: 2
Skitzman69 is on a distinguished road
Tunneling macro help...

I am trying to create a set of tunneling macros bound to the control+dir that will,

- swap out main weapon (@w0) to my shovel (@w9)
- tunnel in the direction
- swap back my main weapon

For example, ctrl-up I tried
\e\e\ew9\\T8w0

which seems to allow it to tunnel only once, then cancels the command (and doesn't swap back the main weapon)

I'm sure this is a common macro, but I can't find an example anywhere... Any ideas what I am doing wrong?

Thanks,
Mike.
Skitzman69 is offline   Reply With Quote
Old November 2, 2007, 22:11   #2
Djabanete
Knight
 
Djabanete's Avatar
 
Join Date: Apr 2007
Location: Berkeley, CA
Posts: 545
Djabanete is on a distinguished road

I'm not an expert on macros, but since nobody else has offered their input:

Repeated digging, even when activated by one command, takes realtime. If a key is pressed during that realtime, the digging is cancelled (and the key that was pressed has no other effect besides cancelling). So what's happening in your macro is that you switch weapons, start digging, try to switch back but in doing so, cancel the digging and don't actually switch back...

So if I wanted to do this, I'd make a "switch+dig" macro (one for each direction), plus a "switch back" macro. That way you'll have to press an extra key after you finish digging each time, but at least it'll work.

If anyone knows how to make the switch+dig+switch work with a single keystroke, I'd be interested to hear it...
Djabanete is offline   Reply With Quote
Old November 3, 2007, 17:41   #3
Skitzman69
Rookie
 
Join Date: Nov 2007
Posts: 2
Skitzman69 is on a distinguished road
That explains what I am seeing...

Thanks for the suggestion. I agree that's currently the best solution and I'll most likely implement it.
Skitzman69 is offline   Reply With Quote
Old April 30, 2012, 06:39   #4
Treebeard
Rookie
 
Join Date: Apr 2012
Posts: 3
Treebeard is on a distinguished road
Exclamation Old problem not fixed except via coding a new wait for clear

To Djabanete + is unique do whatever is necessary in direction indicated command it does not effect turn usage which equals time usage in the game.

Skitzman69's original problem is still inherent unless there is a key code for wait for open command before executing next in the macro, because as pointed out digging takes turns. Since he has never been back to post his success or failures. The only solution I've possibly found is in Mouse usage thread, but I am not going to read 6 pages of giant mice users as they are the most destructive disease bearing vermin of an enemy every, just to find out if the tunneling mentioned on page 6 is just an example or if it is an example of multiple threads in one thread. The solution seemed to be a scripting language other than the in game one is the conclusion to that.

A key designated do this until finished kind of like ; mean walk direction until finished or . run until disturbed or change paths. . run is a better example since it is taking multiple turns, but if not used as the last key stroke in a macro would like result in the same message of Canceled that using T9 or T;9 or +99 or +9[Return]9 gets you.

It should be noted the switching of EQ is unimportant to me since I am focused on digging my own dungeons to find every bit of buried treasure so tunneling turn usage is my focus here.

I just tried ^J and it is +7[Return] and it got canceled same as [Enter] so unless the Borg commands can be set to only tunnel for X number of spaces which according to the official game manual is ^Z to enter Borg command. But in this Muon Packaged Handled version Borg is not loaded so nothing happens when I typed ^Z .

In the current version 3.3.2 If the version as outlined in the official game manuals layout of the regular keymaps is correct there is no wait for waiting command key that I can find. The roguelike keymap is completely twisted for use on a qwerty keyboard so I can't speak for that.
Treebeard is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.