The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

command

This is the basic command for the action. For example, E for engraving, and #pray for praying.

run

This is what is called to begin the NetHack command. Usually you don't override this. Your command should define prompt handlers (respond_* methods) to continue interaction.

post_responses

This is called just after all responses will be queried, but before the cartographer, senses, messages, etc are done for this step.

done

This is called just before the action is freed, just before the next command is run.

new_action Str, Args => Action

This will create a new action with the specified name and arguments. The name is typically the package name in lower case.

name

Returns the name of this action object.

action_names

Returns a list of action names (Search, Melee, Eat, etc)