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
(lua)
 
No edit summary
Line 1: Line 1:
snes9x Lua "Clumsy Shits"
snes9x Lua "Clumsy Shits"


    while(true) do
while(true) do
   
    if math.random() < 0.004 then
if math.random() < 0.004 then
    memory.writebyte(0x7E0530, 0); --P1 trip
memory.writebyte(0x7E0530, 0); --P1 trip
   
    if math.random() < 0.05 then
if math.random() < 0.05 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
    end;
end;
   
    end;
end;
   
    if math.random() < 0.004 then
if math.random() < 0.004 then
    memory.writebyte(0x7E0770, 0); --P2 trip
memory.writebyte(0x7E0770, 0); --P2 trip
   
    if math.random() < 0.05 then
if math.random() < 0.05 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
    end;
end;
   
    end;
end;
   
    emu.frameadvance();
emu.frameadvance();
    end;
end;

Revision as of 21:05, 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.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;