PrincessRTFM / TinyCommands

A plugin for FFXIV/Dalamud/XIVQuickLauncher that adds tiny but useful commands
15 stars 3 forks source link

Add Weapon Out flag for /ifcmd? #4

Closed Grammernatzi closed 2 years ago

Grammernatzi commented 2 years ago

I already added this in a version I built myself of the plugin, using this:

else if (flags["z"] && !TinyCmds.client.LocalPlayer.StatusFlags.HasFlag(StatusFlags.WeaponOut))
    msg = "Weapon is not out";
else if (flags["Z"] && TinyCmds.client.LocalPlayer.StatusFlags.HasFlag(StatusFlags.WeaponOut))
        msg = "Weapon is out";

It would be neat to have it in the main plugin, though. With /draw and /sheathe now being a thing, I used it to make a fancy draw/sheath macro, which works well with this code.

PrincessRTFM commented 2 years ago

As the commit message mentions, I used -r for the flag. Mnemonic is that you're ready to fight if your weapon is out.

Grammernatzi commented 2 years ago

Makes sense. I just did it as -z because that was the default keybind for draw/sheath and that's what stuck in my head, but -r makes more sense as mnemonic.