DanielShougun Posted August 1, 2012 Share Posted August 1, 2012 I realized that I most likely posted my previous post in the wrong place, so I'm trying here instead. I need help with a little scripting. Problem: I use both Abo's Backwards Running Updated (http://oblivion.nexu....com/mods/10901) and Beni's Pretty Woman - animation replacer (http://oblivion.nexu...com/mods/32572/). The issue is that I like the backwards run animation and would still like to see it occasionally. Idea for a solution: I'd like to edit the script in Abo's Backwards Running Updated so it only kicks in when a weapon out/unsheathed. While I can read a script and understand the logic in it enough to edit it to my liking, I have no skills in adding lines or in the actual scripting language. This is where I need help. I think it has something to do with a "IsWeaponOut" function, but I don't understand how to implement it. If there are concerns about permission, Abo wrote, "You are allowed to modify my files and release bug fixes or improve on features so long as you credit me as the original creator." The following is the actual script from the mod: ----------------------------------------------------------------------------------------------------------------------------------------------- Scriptname aaNoRunBackwards ; Running is toggled off by either disabling (runState == 1) or holding (runState == 2); the run key. When running has been toggeled off it takes one frame to take effect.; After togging running off, debounce is set to give one frame for it to take effect. ; This can also be done less reliably by increasing fQuestDelayTime to longer ; than one frame. short initScriptshort runKeyshort backKeyshort runStateshort debouncefloat fQuestDelayTimefloat backRunTimefloat timePassed Begin GameMode ; Initialise settings for v2if (initScript != 2)set fQuestDelayTime to 0.01set runKey to GetControl 10 ; Run Key Codeset backKey to GetControl 1 ; Back Key Codeset initScript to 2endif set timePassed to GetSecondsPassed if IsKeyPressed2 backKeyif (backRunTime < 0.33); accumulate backwards running timeset backRunTime to backRunTime + timePassedelseif debounce; last frame we toggled run, give it a frame to take effect.set debounce to 0elseif player.IsRunning ; backwards running time limit reached, force walkif IsKeyPressed2 runKey; running because run key pressed so disable it.ReleaseKey runKeyDisableKey runKeyset runState to 1else; running because run key not pressed, so hold it.EnableKey runKeyHoldKey runKeyset runState to 2endif; set debounce to allow next fame for toggle to take effect.set debounce to 1endifelse; decrement backwards running time to zeroif (backRunTime > 0.0)set backRunTime to (backRunTime > timePassed) * (backRunTime - timePassed)endif; toggle running back if it was toggledif runState == 1EnableKey runKeyset runState to 0elseif runState == 2ReleaseKey runKeyset runState to 0endifendif End---------------------------------------------------------------------------------------------------------------------------------------------- It ought to be fairly simple, but I just don't understand how to write scripts. A hint or a simple line to add in would help tremendously. Thank you for your time Link to comment Share on other sites More sharing options...
Recommended Posts