|
|
|
|
|
|
|
|
|
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage(); |
|
const b0 = runtime.getOpcodeFunction("looks_say"); |
|
const b1 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"]; |
|
return function* genXYZ () { |
|
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null); |
|
b1.value = 0; |
|
startHats("event_whenbroadcastreceived", { BROADCAST_OPTION: "message1" }); |
|
startHats("event_whenbroadcastreceived", { BROADCAST_OPTION: "message1" }); |
|
thread.timer = timer(); |
|
var a0 = Math.max(0, 1000 * 0); |
|
runtime.requestRedraw(); |
|
yield; |
|
while (thread.timer.timeElapsed() < a0) { |
|
yield; |
|
} |
|
thread.timer = null; |
|
if (((+b1.value || 0) === 1)) { |
|
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null); |
|
} |
|
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null); |
|
retire(); |
|
}; }) |
|
|
|
|
|
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage(); |
|
const b0 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"]; |
|
return function* genXYZ () { |
|
b0.value = ((+b0.value || 0) + 1); |
|
retire(); |
|
}; }) |
|
|