From ccca54d8544e08164958390ae426b3b7196e8d77 Mon Sep 17 00:00:00 2001 From: AreiaAard Date: Wed, 28 Apr 2021 12:31:44 -0400 Subject: [PATCH] Update version, enable savestate, remove Utility help, add basic Help Module --- areia_consider.xml | 60 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 48 insertions(+), 12 deletions(-) diff --git a/areia_consider.xml b/areia_consider.xml index b6828b0..ffb5f2a 100644 --- a/areia_consider.xml +++ b/areia_consider.xml @@ -8,10 +8,10 @@ id="434bc4b92d5e6ddf77d8e20c" language="Lua" purpose="Quick kill with consider" - save_state="n" + save_state="y" date_written="2021-04-11 21:00:00" requires="5.06" - version="1.0" + version="1.1" > [on|off]]@w: Show status of ignore for all flags; if") + Utility.print(" is given, set/toggle status of that particular flag") + Utility.print("@Yac ignore level [<#> [on|off]]@w: Show status of ignore for all level ranges; if") + Utility.print(" <#> is given, set/toggle status of that particular level range") + Utility.print("@Yac ignore mob []@w: Show/toggle status of ignore for mobs with a particular") + Utility.print(" name.") + Utility.print("@Yac keyword [ [\"\"]]@w: Show custom keywords for all mobs; if") + Utility.print(" is given, show/set custom keywords for that particular mob.") + Utility.print(" Note: When setting the keywords for a mob, you must surround the key-") + Utility.print(" words themselves with quotes (e.g., @Yac keyword a goblin \"gob\" @wwould") + Utility.print(" force the script to use 'gob' for any mob named 'a goblin').") + Utility.print("@Yac killcmd [cmd1[;;cmd2[;;...]]]@w: Show/set kill command to be used with") + Utility.print(" @Yac kill/killall @w(see below)") + Utility.print("@Yac show [on|off]@w: Set/toggle display of consider info (includes ignore status,") + Utility.print(" name, level range, and flags)") + Utility.print("@Yac kill <#>@w: Execute kill command on a particular mob") + Utility.print("@Yack <#>@w: Shorthand for ac kill <#>") + Utility.print("@Yac killall@w: Execute kill command on every non-ignored mob in the room") + Utility.print("@Yaca@w: Shorthand for ac killall") +end + + + -------------------------------------------------- -- Utility -------------------------------------------------- @@ -730,18 +772,13 @@ Utility = {} function Utility.initialize() -- General aliases - AddAlias("alias_utility_help", - "^ac\\s+help$", "", - alias_flag.Enabled + alias_flag.IgnoreAliasCase + alias_flag.RegularExpression + alias_flag.Temporary, - "Utility.display_help" - ) - local initializers = { Main.initialize, Settings.initialize, Consider.initialize, GMCPHandler.initialize, Update.initialize, + Help.initialize, } for _, initializer in ipairs(initializers) do initializer() @@ -778,10 +815,9 @@ function Utility.plugin_msg(str, ...) end function Utility.display_greeting() -end - -function Utility.display_help() - Utility.print("TODO") + Utility.plugin_msg("Areia Consider plugin installed.", + "Enter @Yac help @wfor command help." + ) end function Utility.pascalCase(str)