XS - Stamina System for regular movement

Is there a way to adjust Nicke's XS-Stamina System scripts so that stamina is reduced by walking as well as dashing? Thx!
Could you provide a link to said script? Personally, i don't know it.
Absolutely:

http://www.rpgmakervxace.net/topic/19138-xs-stamina-system/
I had to fix a few things first, because the script wasn't running for me (complaining about non-existing clamp-function and stuff).

Try replacing:

def move_by_input(*args, &block)  # // Method to control movement.    if $game_switches[XAIL::STAMINA::HUD_SWITCH[0]]      recover_stamina if @stamina < @max_stamina and !dash? or !moving?      set_stamina(1, :stamina, :lose) if dash? and moving?    end    xail_stamina_sys_gm_player_move_by_input(*args, &block)  endwith

Code:
def move_by_input(*args, &block)  # // Method to control movement.    if $game_switches[XAIL::STAMINA::HUD_SWITCH[0]]      recover_stamina if @stamina < @max_stamina and !dash? or !moving?      set_stamina(1, :stamina, :lose) if moving?    end    return if @stamina <= 0 && $game_switches[XAIL::STAMINA::HUD_SWITCH[0]]    xail_stamina_sys_gm_player_move_by_input(*args, &block)  end
Beautiful! Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/xs-stamina-system-for-regular-movement.39413/