发新话题
打印

[发表插件] ShortKey 4.21 全能动作按键绑定

2个想法?!!!

刚刚接触ShortKey不错的东东可以代替很多手动工作!有2个问题:
1.是否能判断技能是否可用,比如LR在5-8间奥术不能使用,有插件提示的话技能为红色.这个能否判断?想作一个如果A技能为红色不可用则放技能B,,可用则用A.
2.绑定按键下能否使用按键,如我想按下1键,,,作用是再按Shift+2(切换动作条2)+施放技能A+Shift+1(再切回动作条1)之类的功能?
希望LZ和大虾们解答一下!!谢谢

TOP

彻底崩溃了...不知道哪里设置有问题....从"--小键盘"之后的快捷键全部无效...除了"秘法智慧"...
simon大大帮忙看一下吧.....跪谢了....好痛苦...
难道真的没可能做出图形界面吗.....- -

附件

Copy of ShortKeyConfig.rar (2.07 KB)

2007-8-7 11:41, 下载次数: 20

TOP

to edragon
你去参考下lostcup翻译的宏指南, 能实现这样的功能, 写个宏绑到shortkey里就行.

to kunio916
目前还不支持绑定自定义函数, 下版会支持.

to luke666
没看出大毛病..., 只看到 有2个"ALT-NUMPAD0"的重复绑定. 图形界面还在构想中

TOP

to simonw
多谢指点 不过请问下lostcup翻译的宏指南能不能告诉下地址。。实在找不到。。多谢了
另外美服用Mage可用
果然是区分大小写的,辛苦了

TOP

请教1
{Key = "Q", Type = "spell", Value = "恢复", Target = "player"}
是把技能绑在"Q"键上,
那么可以绑在动作条上么?比如主动作条的第三个位置?这样可以实现么?那放在动作条里的图标又是什么?
边看边学的...望达人指教...

TOP

to 不可三世
{Key = "Q", Type = "spell", Value = "快速治疗", Condition = "helpbutton", TargetFrames = {ActionButton3}},

{Key = "Q", Type = "spell", Value = "心灵震爆", Condition = "harmbutton", TargetFrames = {ActionButton3}},

TOP

饿...可能我表述的不够清楚..

原来的{Key = "Q", Type = "spell", Value = "恢复", Target = "player"}
是点"Q"键施放"恢复"给自己

楼上的{Key = "Q", Type = "spell", Value = "快速治疗",C, TargetFrames = {ActionButton3}},
经过我游戏中的测试是点Q键则施放"ActionButton3"上所有的技能给目标,快速治疗被跳过了.
点Q和点动作条上的按钮效果一样...没有实现我提出的  把"技能"绑到动作条上的意图
没有达到把这个插件的"设置"实现..


描述一下我的想法
{Key = "RightButton", Type = "spell", Value = "快速治疗", C, TargetFrames = {ActionButton3}},

如果ActionButton3上是"恢复"图标,我想通过这个来实现"左键点击在动作条ActionButton3的图标对目标施放"恢复",右键点击施放"快速治疗"...

利用上面这个宏很明显的失败了....那么应该怎么做....请求修改和指教...
因为初学,所以想法很曲折...

TOP

对于初学者来说...一个包含大部分命令的凡例对插件的普及是很有必要的...很希望楼主编一个类似宏教程那样的命令详解...
我觉得要是有个命令和功能的对照我就能自己摸索了...

或者这个插件不面向这么低端的用户...

TOP

to 不可三世
这里有个bug, 绑定到ActionButton上是会出错的, 但是不知道你怎么会得到那样的结果... 目前绑定到ActionButton上还是有问题的, 不过你可以绑定到其他button上, 或者只用按键. 配置界面制作正在考虑中.

TOP

to simonw

大大好,shortkey我是2.0前就一直在用的。虽然学的是文科,么任何计算机语言基础。但是感觉还是比较好上手。前天才看到2.0版本的出现,相见恨晚。目前最大的兴趣不是游戏而是编写这个了。。。不过,还是有些问题。

{Key = "E", Type = "spell", Value = "心灵尖啸", Condition = "harmbutton", TargetFrames = ShortKey.ExtFrame.Target},
{Key = "E", Type = "spell", Value = "快速治疗", Condition = "helpbutton", TargetFrames = ShortKey.ExtFrame.Target},

经过4.12后,已经可以实现(4.11的时候不行,感谢大大的修改)。但是问题来了:

        {Key = "E", Type = "spell", Value = "心灵尖啸", Condition = "harmbutton", TargetFrames = ShortKey.ExtFrame.Target},
        {Key = "E", Type = "spell", Value = "快速治疗", Condition = "helpbutton", TargetFrames = ShortKey.ExtFrame.Target},
        {Key = "Q", Type = "spell", Value = "驱散魔法", Target = "target"},
        {Key = "ALT-Q", Type = "spell", Value = "驱散魔法", Target = "player"},
        {Key = "R", Type = "spell", Value = "神圣之火", Condition = "harmbutton", TargetFrames = ShortKey.ExtFrame.Target},
        {Key = "R", Type = "spell", Value = "治疗祷言", Condition = "helpbutton", TargetFrames = ShortKey.ExtFrame.Target},
        {Key = "G", Type = "spell", Value = "法力燃烧", Condition = "harmbutton", TargetFrames = ShortKey.ExtFrame.Target},
        {Key = "G", Type = "spell", Value = "强效治疗术", Condition = "helpbutton", TargetFrames = ShortKey.ExtFrame.Target},
(后面的没写下去,我是写一条验证一条。同时,编辑的时候,UI只开了EVA和shortkey,暂时应该不存在其他UI冲突)

经过这番编写,发现E、R键在游戏中没反应了。对象为helpbutton时,还是有作用,但是对象为harmbutton时,无法释放技能,或者会释放一个其他的技能。

还有个想法,还是以E和R键为例子:

我最初这2个键位的编写是这样的
        {Key = "E", Type = "spell", Value = "心灵尖啸"},
        {Key = "E", Type = "spell", Value = "快速治疗", Condition = "helpbutton", TargetFrames = ShortKey.ExtFrame.Target},
        {Key = "R", Type = "spell", Value = "神圣之火", Condition = "harmbutton", TargetFrames = ShortKey.ExtFrame.Target},
        {Key = "R", Type = "spell", Value = "治疗祷言"},

因为恐惧和群补,我认为不需要选定目标。群补选目标的0.几秒说白了也是浪费时间。而恐惧有时面对贼,知道他在你附近,8码内。想吼出来。但这时你是选不到目标的。经过测试,这样写不行。

望大大指点!

TOP

to wllmni

这里有个限制, 一个按键只能绑定在一个窗体上,
{Key = "E", Type = "spell", Value = "心灵尖啸"}, --这里绑定在一个隐藏窗体上.
{Key = "E", Type = "spell", Value = "快速治疗", Condition = "helpbutton", TargetFrames = ShortKey.ExtFrame.Target},
你这样的写法是错误的, 后面的会覆盖前面的.


下面的写法目前是不行的
{Key = "E", Type = "spell", Value = "心灵尖啸", Condition = "harmbutton", TargetFrames = ShortKey.ExtFrame.Target},
{Key = "R", Type = "spell", Value = "神圣之火", Condition = "harmbutton", TargetFrames = ShortKey.ExtFrame.Target},
按键绑定与鼠标绑定不同, 按键内部都是以鼠标左键形式来点击按钮的, 这样你相当与在鼠标的一次左键点击上绑定了2个动作.  这点我再思考下有没改进余地.

TOP

引用:
原帖由 simonw 于 2007-8-10 00:01 发表
to wllmni

这里有个限制, 一个按键只能绑定在一个窗体上,
{Key = "E", Type = "spell", Value = "心灵尖啸"}, --这里绑定在一个隐藏窗体上.
{Key = "E", Type = "spell", Value = "快速治疗", Condition = "helpb ...
懂了,还是很感谢大大继续编写这个UI。

我自己再改进下,多加ALT,SHIFT,CTRL进去就是了。

TOP

引用:
原帖由 simonw 于 2007-8-8 00:24 发表
--{Key = "J", Type = "spell", Value = "心灵震爆", C, TargetFrames = {ActionButton3}},
--{Key = "J", Type = "spell", Value = "快速治疗", C, TargetFrames = {ActionButton3}},
问下大大,这2条是什么意思。主要是ActionButton3 是指什么? 3号动作条?

TOP

这个是无效废弃的测试代码

TOP

又出问题了。。。

设置:

        {Key = "E", Type = "spell", Value = "心灵尖啸"},
        {Key = "ALT-E", Type = "spell", Value = "快速治疗", Target = "player"},
        {Key = "SHIFT-E", Type = "spell", Value = "快速治疗", Target = "target"},
        {Key = "Q", Type = "spell", Value = "驱散魔法", Target = "target"},
        {Key = "ALT-Q", Type = "spell", Value = "驱散魔法", Target = "player"},
        {Key = "SHIFT-Q", Type = "spell", Value = "驱除疾病", Target = "target"},
        {Key = "R", Type = "spell", Value = "神圣之火", Target = "target"},
        {Key = "SHIFT-R", Type = "spell", Value = "治疗祷言(等级 1)"},
        {Key = "ALT-R", Type = "spell", Value = "治疗祷言"},
        {Key = "G", Type = "spell", Value = "法力燃烧", Target = "target"},
        {Key = "ALT-G", Type = "spell", Value = "强效治疗术", Target = "player"},
        {Key = "SHIFT-G", Type = "spell", Value = "强效治疗术", Target = "target"},
        {Key = "F", Type = "spell", Value = "射击", Target = "target"},
        {Key = "SHIFT-F", Type = "spell", Value = "渐隐术", Target = "player"},
完全没问题

但是在这段后面加上
       {Key = "C", Type = "spell", Value = "噬灵瘟疫", Target = "target"},
       {Key = "X", Type = "spell", Value = "能量灌注", Target = "target"},
       {Key = "ALT-X", Type = "spell", Value = "能量灌注",Traget = "player"},      
后,所有的设定都么反映了。。是不是设置了太多了的关系。。

同时:
      {Key = "ALT-1", Type = "spell", Value = "强效治疗术(等级 1)", Target = "player"},
      {Key = "SHIFT-1", Type = "spell", Value = "强效治疗术(等级 1)", Target = "target"},   
在游戏里无效。。是不是1234这些按键,不能设置ALT SHIFT之类的?

抱歉大大,本人比较菜。。。。。。

TOP

你仔细检查下拼写错误,
比如 Value = "治疗祷言(等级 1)"}, 和 Value = "能量灌注",Traget
中文标点一定要注意.

TOP

啊啊,太深奥了...

TOP

引用:
原帖由 simonw 于 2007-8-10 14:21 发表
你仔细检查下拼写错误,
比如 Value = "治疗祷言(等级 1)"}, 和 Value = "能量灌注",Traget
中文标点一定要注意.
谢谢指出,刚下班到家,继续研究。。。。。。

TOP

白痴问题,还望回复

请问这个配置怎么写才能让它生效呢?要注意哪些重要元素,比如说人物,职业的名字,还有语法,我试了好多次,可是在按键设置里就是没有shortkey的配置出现,请问该如何用起这个插件,楼主说的几个要求在下基本上都能满足,初步学过C语言,另外那条基本上也能做到

TOP

引用:
原帖由 sywm 于 2007-8-16 20:17 发表
请问这个配置怎么写才能让它生效呢?要注意哪些重要元素,比如说人物,职业的名字,还有语法,我试了好多次,可是在按键设置里就是没有shortkey的配置出现,请问该如何用起这个插件,楼主说的几个要求在下基本上都能满足,初步学过C语 ...
你写好后进游戏直接使用相应的按键就行了  不需要在按键设置里进行设置(也没有设置)  至于语法  顶楼说得很明白了

TOP

发新话题