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: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
  memory.writebyte(0x7E0530, 0); --P1 trip
  memory.writebyte(0x7E0530, 0); --P1 trip
 
 
  if math.random() < 0.05 then
  if math.random() < 0.005 then
  memory.writebyte(0x7E0531, -1); --P1 death
  memory.writebyte(0x7E0531, -1); --P1 death
  memory.writebyte(0x7E0636, 0); --P1 death
  memory.writebyte(0x7E0636, 0); --P1 death
Line 16: Line 16:
  memory.writebyte(0x7E0770, 0); --P2 trip
  memory.writebyte(0x7E0770, 0); --P2 trip
 
 
  if math.random() < 0.05 then
  if math.random() < 0.005 then
  memory.writebyte(0x7E0771, -1); --P2 death
  memory.writebyte(0x7E0771, -1); --P2 death
  memory.writebyte(0x7E0876, 0); --P2 death
  memory.writebyte(0x7E0876, 0); --P2 death

Revision as of 21:06, 24 November 2018

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;