游戏狂人
 
- 贡献度
- 118
- 金元
- 8880
- 积分
- 1360
- 精华
- 0
- 注册时间
- 2012-8-18
|
本帖最后由 花雨梵天 于 2014-4-26 23:32 编辑
没延迟,砍人砍怪超级爽 换角本文件如下:
;darksouls 2
Process,Priority,,High
;alt+f1 重载脚本 用于修改后更新脚本{{{
!f1::
traytip ,Reload, darksouls.ahk Reload, 1, 1
sleep 1000
reload
return
!f2::
suspend
return
;}}}
;因为挡反占用了tab键 所以不能切换到桌面 用alt+esc切换回桌面
!esc::winactivate ahk_class WorkerW
!tab::winactivate ahk_class Vim
;很多映射在游戏中也可以修改 不过我觉得用这种方式更灵活一些 以后重装游戏只要找到这个脚本 就可以玩游戏了
#ifwinactive ahk_class DarkSouls2
;通过映射键盘消除攻击延迟
;左键右手轻击 右键右手重击 shift格挡 tab挡反
;这会让鼠标失去点击按钮和右键菜单之类ui功能
;作为补偿 映射了鼠标中键作为原来的鼠标左键 用来操作ui
;我不用中键锁定目标--我用q键 中键实在不是一个符合战斗场景灵敏度需要的按键
;操作ui却正合适
LButton::h
RButton::g
shift::u
tab::y
;映射了左右键之后 左右键在ui界面失效
;映射alt+左右键 作为原来的左右键
!Lbutton: button
!Rbutton::Rbutton
;因为映射了左右键 所以ctrl+左右键 不能切换武器了
;重新映射 ctrl+左右键 为左右--键盘的切换武器键
^lbutton::left
^rbutton::right
;有xbutton键的鼠标 设定xbutton为切换武器
xbutton2::left
xbutton1::right
;游戏中的A B X Y按键图标对应的是手柄
;键盘对应是enter backspace n m
;四键离wasd太远
;映射r键为e 作为使用道具键
;映射e键为enter 也就是图标A 我觉得这样合理些
r::enter
e::e
;映射c为图标B backspace
;主要用作取消ui界面 c语义联系close 更好操作也更合理
c::backspace
;y 切换双手武器和切换某些界面比如篝火处的快捷键
;原游戏为n 映射为z
z::y
;鼠标中间和o作为锁定键 都不好用 鼠标中间很难按 o很远 所以映射q为o
q:
;按住capslock然后按wasd对应上下左右 用在ui操作上
;Capslock{{{
Capslock::
Gui, 93:+Owner +LastFound +AlwaysOnTop -Caption -ToolWindow
Gui, 93:Color, white, white
Gui, 93:Font, c000000 s21, Arial Black
Gui, 93:Add, Text, X5 y3, Capslock
Gui, 93:Show, xCenter Y0 w150 h50 NA, Capslock
KeyWait, Capslock ; wait until the Capslock button is released
If (A_PriorHotkey = Capslock && A_TimeSincePriorHotkey < 250)
{
sendinput,{m down}
sleep 100
sendinput,{m up}
}
Gui, 93:Cancel
Gui, 93:destroy
Return
#IfWinExist, Capslock
w::up
s::down
a::left
d::right
#IfWinExist
;}}} Capslock
;单击2 跳击 跳击非常难按出 所以映射了这个{{{
;用的时候不能按方向键 这也是设定为2的原因,避免按着w按2
;有时候会失效 我也不清楚怎么回事
+2::
*2::
sleep 30
sendinput {w up}
sleep 10
sendinput {space up}
sleep 10
Sendinput {w down}
sleep 20
Sendinput {g down}
sleep, 200
Sendinput {g up}
sleep 10
Sendinput {w up}
return
;单击2 跳击}}}
;单击x 破防{{{
;用的时候不能按方向键 这也是设定为x的原因,避免按着w按x
;有时候会失效 我也不清楚怎么回事
+x::
*x::
sleep 30
sendinput {w up}
sleep 10
sendinput {space up}
sleep 10
Sendinput {w down}
sleep 20
Sendinput {h down}
sleep, 200
Sendinput {h up}
sleep 10
Sendinput {w up}
return
;单击2 跳击}}}
;用v代替x 切换跑
v::x
#ifwinactive
|
|