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

From Data Crystal
< Super Street Fighter II: The New Challengers (Genesis)
Revision as of 21:02, 24 November 2018 by Mariofan2468 (talk | contribs) (lua)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.05 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.05 then
   			memory.writebyte(0x7E0771, -1); --P2 death
   			memory.writebyte(0x7E0876, 0); --P2 death
   		end;
   		
   	end;
   	
   	emu.frameadvance();
   end;