Jump to content

First person to create walk/run toggle mod gets a cookie


Recommended Posts

 

I've come round to think the toggle is actually better than a double-click...

 

 

Well, here's an autohotkey script that makes it work well enough using double-click to run (a la Fallout 2):

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
 
isRunning = 0
walkToggleKey := "["
 
#IfWinActive Pillars of Eternity ahk_class UnityWndClass
 
~LButton::
{ 
    if ((A_TimeSincePriorHotkey < 180) && (A_TimeSincePriorHotkey > 0))
    { 
        Send {%walkToggleKey%}
        isRunning = 1
        Return
    }
 
    if (isRunning == 1)
    {
        Send {%walkToggleKey%}
        isRunning = 0
    }

    Return
}
http://www.autohotkey.com/

 

... change walkToggleKey to whatever, and turn on walk mode manually just once (otherwise, it'll do the exact opposite -- walk on double-click).  

 

It would work slightly better if two more hotkeys existed: WalkMode: On, and a Walk Mode: Off

... but this really does work well enough for me, so I'm happy -- and I could always improve it slightly by using a screen tap if I feel the need.

 

 

Any chance of adding the option to disable the combat log text upon toggling?

 

 

Any chance of making this work for Tyranny and the Torment game?
  • Thanks 1
Link to comment
Share on other sites

  • 3 years later...
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
 
isRunning = 0
walkToggleKey := "["
 
#IfWinActive Pillars of Eternity ahk_class UnityWndClass
 
~LButton::
{ 
    if ((A_TimeSincePriorHotkey < 180) && (A_TimeSincePriorHotkey > 0))
    { 
        Send {%walkToggleKey%}
        isRunning = 1
        Return
    }
 
    if (isRunning == 1)
    {
        Send {%walkToggleKey%}
        isRunning = 0
    }

    Return
}

So...How the hell do I get this to work? I downloaded Auto Hotkey and made a script file named walk and put this script in it and saved. I've messed around a bit and cant get it to work. What do I do?

 

I just downloaded Pillars of Eternity Definitive Edition from Epic Games and it's like its own version. its like "Epic Games v1.1.3.007," but apparently the latest version, and that really finicky IE Mod just WILL NOT work with this version at all. There are comments about this Epic Games version on the comment section of Nexus for IE Mod, about how it won't work, and my only bet is to use auto hotkey, but I don't know how to get this to work.

 

Can someone explain this for me please?

Edited by hylic
Link to comment
Share on other sites

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
 
isRunning = 0
walkToggleKey := "["
 
#IfWinActive Pillars of Eternity ahk_class UnityWndClass
 
~LButton::
{ 
    if ((A_TimeSincePriorHotkey < 180) && (A_TimeSincePriorHotkey > 0))
    { 
        Send {%walkToggleKey%}
        isRunning = 1
        Return
    }
 
    if (isRunning == 1)
    {
        Send {%walkToggleKey%}
        isRunning = 0
    }

    Return
}

 

Ok, now I just have the normal steam version of Pillars of Eternity and IE Mod is giving me a big error (thread in the modding forum). Can someone please tell me how to make this autohotkey script run??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...