0 of 0

File information

Last updated

Original upload

Created by

Shinway

Uploaded by

Shnway

Virus scan

Safe to use

Tags for this mod

About this mod

This automates the Perfect Block and Riposte mechanics, allowing you to react instantly to enemy attacks. Hold F during combat and the script detects the green shield prompt in real-time and does a Perfect Block, followed by a Riposte counterattack. If you rather do a Master Strike then hold E while holding your weapon opposite to the enemies.

Requirements
Permissions and credits
This Mod has been replaced, I created a new script from scratch that allows for Toggles.
The new Mod has more features and has both a Toggle and Press and Hold version.


Simple Combat (Auto Perfect Block - Master Strike - Evade - Riposte)








📖 What This Mod Does
Provides a consistent and efficient way to perform Perfect Blocks and Ripostes.
The combat system requires timing to counter enemy attacks successfully. With this script, all you have to do is hold the F key, and the script will:
✅ Detect the green Perfect Block shield prompt on-screen using pixel search.
✅ Automatically execute a Perfect Block (Right Mouse Button press).
Instantly follow up with a Riposte (Left Mouse Button press).

*✅ Additional feature: It can also do a Master Strike for you. Hold E while holding your weapon in the opposite direction of the enemies and when they attack it will do a Master Strike.




🛠️ Installation & Setup

📥 Step 1: Install AutoHotkey
This script requires AutoHotkey v2.0 to run.
1️⃣ Download AutoHotkey v2.0  (https://www.autohotkey.com/download/ahk-v2.exe)
2️⃣ Install it (default settings are fine).


📂 Step 2: Get the Script
1️⃣ Download the script.
2️⃣ Save it anywhere on your PC and unzip it.


▶️ Step 3: Run the Script
1️⃣ Double-click the "Perfect Block and Riposte.ahk" file to run it. (Should not be required but may want to run it as Administrator.)
2️⃣ An AutoHotkey icon will appear in the system tray, meaning it's active.
3️⃣ Launch the game and hold F during combat and and the script detects the green shield prompt in real-time and does a Perfect Block, followed by a Riposte counterattack. It also has the added feature to do a Master Strike, hold E while holding your weapon opposite to the enemies and when they try and attack you will do a Master Strike. (Just make you keep holding your weapon in the opposite direction of your enemies.)

🛑 How to Stop the Script
  • Press F8 at any time to exit the script.
  • Alternatively, right-click the AutoHotkey icon in the system tray and select Exit.


🛠 Features
✔️ Holding F while in combat will perform Perfect Blocks and Ripostes when an enemy attacks.
✔️ Holding E can perform a Master strike as long as you keep holding your weapon in the opposite direction of your enemies.
✔️ Simple activation – Just hold F or E (You can change the activation keys in the script).
✔️ No input lag – Real-time detection for immediate responses.
✔️ Configurable color detection for mods that alter game visuals.
✔️ Works on any screen resolution (Fullscreen recommended).
✔️
Lightweight & CPU-friendly – Won’t impact performance.


🎮Compatibility & Input Support
🖱️ Mouse & Keyboard (Default Configuration)
  • This script is designed for keyboard and mouse while also using the game's default key bindings (Primary Attack is Left Mouse button, Block is Right Mouse button). But it is possible to edit the script for other key bindings.
  • The activation key is F (Perfect Block and Riposte) and E (Master Strike) by default, but these can be changed in the script (explained below).

🎮 Controller Support (Workaround)
  • The script does not support controllers natively, but you can still use it by mapping a controller button to a keyboard key using a program like AntiMicroX.
  • Example: If you want to activate the script using a controller button, open AntiMicroX and map your controller’s button (e.g., Joy5) to a keyboard key (e.g., F).
  • If you prefer to directly modify the script for controller support, replace the activation key F with Joy5 (or any other button you find in the button mapper).
The updated script with the controller button activation would look something like this:
~*Joy5::{
    while GetKeyState("Joy5", "P") {
Controller users MUST map buttons to keyboard keys for this script to work properly.


🎨 Adjusting for Mods that Change Colors (May be needed if other mods drastically change the games colors.)
If you're using a Reshade, LUT mods, or anything that changes the game's color or saturation then the script may not detect the green shield correctly.
Fix Options:
1️⃣ Increase Color Variation (Tolerance)
  • In the script, find this line and raise this number:
    variation := 5
  • Try using the script with a higher number but I would not recommend anything above 15 because then the script would find false positives because there is a lot of trees and the color green in the game so the script will then end up finding more than just the Perfect Block Shield prompt.

2️⃣ Update the Color Value
  • If the Perfect Block Shield's color is completely different due to your other mods changing the games colors, you need to find the new color and update the script.
  • How to find your shield color:
    • Take a screenshot while the green shield appears in-game.
    • Open the screenshot in MS Paint.
    • Use the color picker tool and click inside the green shield to select one of it's green pixels.
    • Click "Edit Colors" → "Define Custom Colors" to get the RGB values. (Will show a color like "#19B84D" in MS Paint.
    • Convert that color to work in the script by removing the # and adding 0x so the new color will look like 0x19B84D.
    • Update the script’s color value:
      color := 0xYOURNEWCOLOR


⚙️ Customization
Changing the Activation Key
By default, holding F activates the script. To change it:

1️⃣ Open the script
 in Notepad.
2️⃣ Find these lines:
~*f::{
    while GetKeyState("f", "P") {


3️⃣ Change "f" 
to any other key, like g~*g::{
    while GetKeyState("g", "P") {

4️⃣ Save the script and restart it.




My Other Mods







🛠️ Troubleshooting

🛑 The script isn’t working at all!
✔️ Make sure AutoHotkey v2.0 is installed.
✔️ Check if the script is running in the system tray.
✔️ Run the script as administrator (Right-click > "Run as administrator").
✔️ Ensure the game is in Fullscreen mode (the script uses screen coordinates).

🎯 The script isn’t detecting the green shield!
✔️ Try increasing the color variation (see above).
✔️ Use the color picker method to update the color in the script.
✔️ Make sure your resolution is at least 1080p (lower resolutions might shift UI elements).

🎮 I use a controller, how do I make this work?
✔️ Use a controller button mapper like AntiMicroX to map a controller button to a keyboard key.
✔️ Change the script’s activation key to one of your controller buttons like Joy5 (Use your controller button mapper like AntiMicroX to know which button is which).