Feature - Implemented CLI or ASH commands to invoke the new built-in Tower scripts

Theraze

Active member
any chance of having ASH or CLI commands to trigger the two solvers, as we had with the old NS tower? It would be nice to be able to handle these more efficiently for users.

Thanks!
You mean in your scripts. Yeah, I suppose. I never use scripts to adventure, so the menu bar is exactly what _I_ need, but I suppose we could have CLI commands/ASH functions.

Even though this is marked Implemented, I never did anything with this. So, bump.

I could make a separate FReq if you'd prefer. Since this thread is marked done, it should probably either get marked as not done or we could have that other thread.

Thanks for not just letting it die. :) It's appreciated.

Why don't you make another FR, please. I'm about to ascend into a Standard run, so I'll be back in the tower in a few days and will be able to do this - and actually test.

New FReq as requested. To put the specific FReq into complete words, the request is to be able to trigger the hedge maze solver (in its various implementations) and the new 6-key door unlocker using either a CLI command or ASH. Both would be nice if possible; CLI is good for people who just like to type stuff in and ASH is good so that we could see whether we're done and it completed successfully and we should move onto the next step, or if we should abort and let the user take care of it without additional wasted server hits. Thanks! :)
 

Veracity

Developer
Staff member
Revision 15676 does this.

CLI:

maze [arg]
door

ASH:

hedge_maze( string )
tower_door()

The string argument for the maze can be one of:

traps - 4 turns, all traps
gopher or duck - 7 turns gopher and duck
chihuahua or kiwi - 7 turns chihuahua and kiwi
nugglets - 10 turns, all nugglets

I have tested this once:

> ash hedge_maze( "traps" )

You are currently in room 0 and it will take you 4 turns to clear the maze.
Entering the Hedge Maze...

[877] The Hedge Maze (Room 1)
Encounter: 'Allo

[878] The Hedge Maze (Room 4)
Encounter: Pooling Your Resources
You lose 260 hit points

[879] The Hedge Maze (Room 7)
Encounter: Of Mouseholes and Manholes
You lose 206 hit points

[880] The Hedge Maze (Room 9)
Encounter: Mazel Tov!
You lose 209 hit points
Hedge Maze cleared!
Returned: true

> ash tower_door()

[881] Tower Door
Verifying ingredients for Boris's key (1)...
Purchasing Boris's key (1 @ 1 fat loot token)...
Visiting the Vending Machine...
You acquire an item: Boris's key
Vending Machine successfully looted!
Successfully created Boris's key (1)
Verifying ingredients for Jarlsberg's key (1)...
Purchasing Jarlsberg's key (1 @ 1 fat loot token)...
Visiting the Vending Machine...
You acquire an item: Jarlsberg's key
Vending Machine successfully looted!
Successfully created Jarlsberg's key (1)
Verifying ingredients for Sneaky Pete's key (1)...
Purchasing Sneaky Pete's key (1 @ 1 fat loot token)...
Visiting the Vending Machine...
You acquire an item: Sneaky Pete's key
Vending Machine successfully looted!
Successfully created Sneaky Pete's key (1)
Verifying ingredients for Richard's star key (1)...
You acquire an item: Richard's star key
Successfully created Richard's star key (1)
Verifying ingredients for digital key (1)...
Creating 1 digital key...
You acquire an item: digital key
Successfully created digital key (1)
Verifying ingredients for skeleton key (1)...
Creating skeleton key (1)...
You acquire an item: skeleton key
Successfully created skeleton key (1)
Tower Door: Boris's lock
Tower Door: Jarlsberg's lock
Tower Door: Sneaky Pete's lock
Tower Door: star lock
Tower Door: digital lock
Tower Door: skeleton lock
Tower Door: doorknob
Tower Door open!
Returned: true
I'll try the CLI commands, next time through the tower. I expect they will work...
 
Top