How does Moghunter's ATB script Calculate turns?

Link to Script: https://atelierrgss.wordpress.com/rgss3-active-time-battle/

I'm asking because I have no clue how it does it.(doesn't help that the entire script is in a language I have to chuck into google translate in order to understand)

If someone could explain to me what values affect how quickly a turn passes and how they do so, that would be so awesome.^^
Check this part:

#-------------------------------------------------------------------------- # ● Update Turn #-------------------------------------------------------------------------- def update_turn force_reset_turn_duration if $game_temp.turn_duration_clear $game_system.atb_turn_duration[0] += 1 unless $game_troop.interpreter.running? if $game_system.atb_turn_duration[0] >= $game_system.atb_turn_duration[1] $game_system.atb_turn_duration[0] = 0 $game_troop.increase_turn execute_event_phase if $game_troop.can_interpreter_running?(true) end end $game_system.atb_turn_duration[1] is what you'll want to investigate 🙂
Well it can be changed in many ways and it's all kinda weird.

The best solution is to check what everything does by yourself - to help you with that, I wrote a script, that will add a window in battle scene, where it'll show current progress and next turn value, so you can keep track how fast it's filling up.

Spoiler
Don't worry about weirdness at the beginning - It's a mark of originality and will disappear after pasting to your editor. ( ͡° ͜ʖ ͡°)

# __________________________________ _____________#═╡ ҉ CELESTIA ENGINE - Scene Battle ╞═══╡ By Rikifive ╞════════════════════════# ̀ ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅́ ̀ ̅̅̅̅̅̅̅̅̅̅̅̅̅́ #=[ ҉ ]===[ Turn Progress Counter ]=============================================#-< ҉ >---< Change position, opacity and font >---------------------------------LOL_WINDOW_POSITION_X = 200LOL_WINDOW_POSITION_Y = 0LOL_WINDOW_WIDTH = 200LOL_WINDOW_HEIGHT = 72LOL_WINDOW_OPACITY = 0LOL_WINDOW_BOLD = false # enable / disable font BOLD.LOL_WINDOW_SIZE = 20 # Set the font SIZE.LOL_WINDOW_OUTLINE = true # enable / disable font OUTLINE.LOL_WINDOW_SHADOW = true # enable / disable font SHADOW. #-< ҉ >---< Initialize >------------------------------------------------------ class Window_WutWindow < Window_Base def initialize(x, y) super(x, y, LOL_WINDOW_WIDTH, LOL_WINDOW_HEIGHT) self.opacity = LOL_WINDOW_OPACITY self.contents.font.bold = LOL_WINDOW_BOLD self.contents.font.size = LOL_WINDOW_SIZE self.contents.font.outline = LOL_WINDOW_OUTLINE self.contents.font.shadow = LOL_WINDOW_SHADOW self.contents.font.color = normal_color refresh end #-< ҉ >---< Draw Content >---------------------------------------------------- def refresh update_turnprogress update_nextturn self.contents.font.color = Color.new(100,175,255) self.contents.draw_text(0, 0, 80, 24, "Progress", 0) self.contents.font.color = normal_color self.contents.draw_text(70, 0, 80, 24, "/ Next Turn", 0) self.contents.draw_text(70, 24, 80, 24, "/", 0) end # Refresh #-< ҉ >---< Update Stuff >-------------------------------------------------- def update_turnprogress(force=false) if @current != $game_system.atb_turn_duration[0] || force @current = $game_system.atb_turn_duration[0] rect = Rect.new(35,24,35,24) contents.clear_rect(rect) self.contents.font.color = Color.new(100,175,255) draw_text(rect," #{$game_system.atb_turn_duration[0]}") end end def update_nextturn(force=false) if @next != $game_system.atb_turn_duration[1] || force @next = $game_system.atb_turn_duration[1] rect = Rect.new(90,24,30,24) contents.clear_rect(rect) self.contents.font.color = normal_color draw_text(rect," #{$game_system.atb_turn_duration[1]}") end end def update super update_turnprogress update_nextturn self.visible = true unless self.visible end end # class #-< ҉ >---< Create window in Battle Scene >------------------------------------class Scene_Battle < Scene_Base #-< ҉ >---< Start >--------------------------------------------------------- alias wutwindow_start start def start wutwindow_start create_wutwindow_window end #-< ҉ >---< Create Wut Window >---------------------------------- def create_wutwindow_window @wutwindow_window = Window_WutWindow.new( LOL_WINDOW_POSITION_X, LOL_WINDOW_POSITION_Y) end end#=[ ҉ ]===[ END ]===============================================================
And then you can change values and see what happens. (=

Original thread: https://forums.rpgmakerweb.com/threads/how-does-moghunters-atb-script-calculate-turns.44263/