Skip to content

Instantly share code, notes, and snippets.

@EvilAsh25
EvilAsh25 / DW4 Demon Hammer.lua
Last active February 14, 2017 23:39
Dragon Warrior 4 Lua Script for testing the Demon Hammer
--This script is designed to work with Bizhawk
--This script assumes a pre-made state on Quicksave Slot 0, with 1 enemy,
--Ragnar the only alive party member, and the Demon Hammer equipped
--Set the correct memory domain
memory.usememorydomain("System Bus")
--define variables
wins = 0
@EvilAsh25
EvilAsh25 / DW2-Dodge.lua
Created February 16, 2017 23:47
Dragon Warrior 2 Lua Script for testing Dodge chance
--This script is designed to work with Bizhawk
--This script assumes a pre-made state on Quicksave Slot 0
--Set the correct memory domain
memory.usememorydomain("System Bus")
--define variables
dodge = 0
@EvilAsh25
EvilAsh25 / DW2 Targeted Chances.lua
Created February 17, 2017 20:14
Dragon Warrior 2 Lua Script for testing the chances of who in the party is targeted
--This script is designed to work with Bizhawk
--This script assumes a pre-made state on Quicksave Slot 0
--Set the correct memory domain
memory.usememorydomain("System Bus")
--define variables
midd = 0
cann = 0
@EvilAsh25
EvilAsh25 / DW2-Dew's Yarn.lua
Created January 21, 2019 16:33
DW2 Dew's Yarn Lua test
--This script is designed to work with Bizhawk
--This script assumes a pre-made state on Quicksave Slot 0
--Set the correct memory domain
memory.usememorydomain("System Bus")
--define variables
found = 0
@EvilAsh25
EvilAsh25 / DW2-Encounter Rate.lua
Created January 21, 2019 16:36
DW2 Encounter Rate Lua
--For Bizhawk
--Set the correct memory domain
memory.usememorydomain("System Bus")
--emu.speedmode("maximum")
save_state_slot = 0
trials = 0
encounters = 0
@EvilAsh25
EvilAsh25 / DW2-Run.lua
Created January 21, 2019 16:37
DW2 Run Chance Lua
--This script is designed to work with Bizhawk
--This script assumes a pre-made state on Quicksave Slot 0
--Set the correct memory domain
memory.usememorydomain("System Bus")
--define variables
run = 0
@EvilAsh25
EvilAsh25 / DW2-Lottery Ticket.lua
Created January 21, 2019 16:37
DW2 Lottery Ticket Lua
--This script is designed to work with Bizhawk
--This script assumes a pre-made state on Quicksave Slot 0
--Set the correct memory domain
memory.usememorydomain("System Bus")
--define variables
found = 0
@EvilAsh25
EvilAsh25 / DW2-Dodge.lua
Created January 21, 2019 16:43
DW2 Dodge Rate Lua
--This script is designed to work with Bizhawk
--This script assumes a pre-made state on Quicksave Slot 0
--Set the correct memory domain
memory.usememorydomain("System Bus")
--define variables
dodge = 0
/// twitch-videoad.js
const origFetch = window.fetch;
window.fetch = (url, init, ...args) => {
if (typeof url === "string") {
if (url.includes("/access_token")) {
url = url.replace("player_type=site", "player_type=embed");
} else if (
url.includes("/gql") &&
init &&
typeof init.body === "string" &&