Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Super Street Fighter II: The New Challengers (Genesis)/RAM map

From Data Crystal
Jump to navigation Jump to search

snes9x Lua "Clumsy Shits"

while(true) do

	if math.random() < 0.004 then
		memory.writebyte(0x7E0530, 0); --P1 trip
		
		if math.random() < 0.005 then
			memory.writebyte(0x7E0531, -1); --P1 death
			memory.writebyte(0x7E0636, 0); --P1 death
		end;
		
	end;
	
	if math.random() < 0.004 then
		memory.writebyte(0x7E0770, 0); --P2 trip
		
		if math.random() < 0.005 then
			memory.writebyte(0x7E0771, -1); --P2 death
			memory.writebyte(0x7E0876, 0); --P2 death
		end;
		
	end;
	
	emu.frameadvance();
end;