1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

Interface Idea: Context-Sensitive Macros and GUI - Devs/KR Modders

Discussion in 'UHall' started by Coldren, Feb 26, 2009.

  1. Coldren

    Coldren Sage
    Stratics Veteran

    Joined:
    May 13, 2008
    Messages:
    741
    Likes Received:
    115
    I just had an idea, and maybe a talented KR modder can create it, or perhaps a dev will see it and consider it for the SA client.

    One thing I think would be neat is if you could create macros that are context sensitive - that is, they perform different actions based on the "type" of target.

    As a simple example:

    Suppose I set up a macro for the "B" key.
    When I target a player and press B, I would bow.
    When I target an NPC merchant and press B, I would say "Buy"
    When I target an NPC creature/mob and press B, I would cast Blade Spirit.

    Moreover, it would be nice if a GUI could be placed somewhere on the screen that would reflect the macros I make for that target type - Showing the hot key and the name of the macro.

    In bad ASCII art, here are some examples of what the GUI screen would look like, with the name at the top being the target.

    -------------------------------------
    Bob the Smith (NPC - Vendor)
    -------------------------------------
    B - Say: Buy
    S - Say: Sell
    -------------------------------------

    -------------------------------------
    Coldren (Player)
    -------------------------------------
    B - /bow
    S - /salute
    -------------------------------------

    -------------------------------------
    a dragon (NPC Creature)
    -------------------------------------
    B - Cast: Blade Spirit
    S - Cast: Flame Strike
    -------------------------------------

    This window would appear and be movable/hideable for ease of use for those who like to click, but show highlight the hot key you created.

    It'd be difficult to program, at least the GUI for it, but I think it's possible with LUA.

    Just a random thought. I think it would be an improvement over right-click menus, or having Ctrl-B, Alt-B, Shift-B, etc., macros.
     
  2. Coldren

    Coldren Sage
    Stratics Veteran

    Joined:
    May 13, 2008
    Messages:
    741
    Likes Received:
    115
    Sorry, just one bump.

    Any good KR modders or Devs know if this type of thing is possible? I'm not that familiar with LUA, I'm afraid.
     
  3. Gildar

    Gildar Babbling Loonie
    Stratics Veteran

    Joined:
    Apr 22, 2004
    Messages:
    2,354
    Likes Received:
    4
    Possible, but very time consuming for minimal reward.

    I could see context sensitive say/emote/yell commands, however.
    "Hello {target}" becomes "Hello Bob", "Hello Coldren", or "Hello a dragon"

    Or maybe a few sets of macros that you can switch between easily.
    However, both of those would probably need to be done by developers, not modders.
     
  4. Cogniac

    Cogniac Grand Inquisitor
    Stratics Veteran

    Joined:
    Nov 21, 2006
    Messages:
    4,322
    Likes Received:
    164
    Seconded.

    However, I'm of the opinion that it could theoretically be possible for a modder to do this. The only thing I'm seeing that modders might not have access to would be the ability to auto-determine target-type.

    Edit: Let me clarify: I mean that modders may not have access to the ability to auto-determine target-type legally. I am perfectly aware that there are, shall we say, other avenues? that can accomplish this.
     
  5. Coldren

    Coldren Sage
    Stratics Veteran

    Joined:
    May 13, 2008
    Messages:
    741
    Likes Received:
    115
    Hmm.. See, I don't see it as minimal reward. I think it would be extremely useful. Drat.. Guess I won't find out until I can program LUA.. Look for it sometime in 2020 then, I guess. :p

    And yeah, I don't know what calls we can make to determine item/target types.. Hate to make the reference, but I know I can with WoW's LUA code. It's so easy even I can make smart macros there - I have ones that, for example, well either heal my target, myself, or the target of the monster intelligently, and it's less than line long.

    Well, here's to hoping one day we can get that kind of access. :)