Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -1,8 +1,6 @@
|
|||
function textfile_slot_20() /* entry=393 class_id=0x0A17 slot=0x20 */
|
||||
{
|
||||
entry:
|
||||
/* param_pid_chg bp_offset=0xA target=[BP+0Ah] copy_type=0x1 */
|
||||
set_info(0x0001, *(arg_06));
|
||||
return;
|
||||
|
||||
/* param_pid_chg bp_offset=0xA target=[BP+0Ah] copy_type=0x1 */
|
||||
set_info(0x0001, *(arg_06));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,31 +5,17 @@ function textfile_slot_21() /* entry=393 class_id=0x0A17 slot=0x21 */
|
|||
linkNum, /* [BP+0Ah] type=0x69 */
|
||||
msgNum; /* [BP+0Ch] type=0x69 */
|
||||
|
||||
entry:
|
||||
if (msgNum >= 110) goto block_0167;
|
||||
|
||||
block_014D:
|
||||
if (msgNum < 110) {
|
||||
class_0A1F_slot_20(0, msgNum, linkNum, arg_06);
|
||||
goto block_01A6;
|
||||
|
||||
block_0164:
|
||||
goto block_01A6;
|
||||
|
||||
block_0167:
|
||||
if (msgNum >= 60) goto block_018F;
|
||||
|
||||
block_0175:
|
||||
class_0A1D_slot_20(0, msgNum, linkNum, arg_06);
|
||||
goto block_01A6;
|
||||
|
||||
block_018C:
|
||||
goto block_01A6;
|
||||
|
||||
block_018F:
|
||||
class_0A17_slot_23(0, msgNum, linkNum, arg_06);
|
||||
goto block_01A6;
|
||||
|
||||
block_01A6:
|
||||
return;
|
||||
|
||||
}
|
||||
else if (msgNum < 60) {
|
||||
class_0A1D_slot_20(0, msgNum, linkNum, arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
class_0A17_slot_23(0, msgNum, linkNum, arg_06);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,31 +5,21 @@ function textfile_slot_22() /* entry=393 class_id=0x0A17 slot=0x22 */
|
|||
ref, /* [BP+0Ah] type=0x69 */
|
||||
vel; /* [BP+0Ch] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x0001, *(arg_06));
|
||||
class_0A0C_slot_2B(vel, ref);
|
||||
if retval goto block_0292;
|
||||
|
||||
block_01F8:
|
||||
if (Item.getMapNum(arg_06) != 0) goto block_0292;
|
||||
|
||||
block_020A:
|
||||
if (Item.getFrame(arg_06) != 0) goto block_024E;
|
||||
|
||||
block_0219:
|
||||
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
goto block_0292;
|
||||
|
||||
block_024E:
|
||||
if (Item.getFrame(arg_06) != 1) goto block_0292;
|
||||
|
||||
block_025D:
|
||||
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
goto block_0292;
|
||||
|
||||
block_0292:
|
||||
return;
|
||||
|
||||
set_info(0x0001, *(arg_06));
|
||||
class_0A0C_slot_2B(vel, ref);
|
||||
if (!retval) {
|
||||
if (Item.getMapArray(arg_06) == 0) {
|
||||
if (Item.getFrame(arg_06) == 0) {
|
||||
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 1) {
|
||||
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ function textfile_slot_23() /* entry=393 class_id=0x0A17 slot=0x23 */
|
|||
if (msgNum != 0) goto block_0967;
|
||||
|
||||
block_031B:
|
||||
rnge = Intrinsic00DA(11, 1);
|
||||
rnge = UCMachine.rndRange(11, 1);
|
||||
if (rnge != 1) goto block_03C9;
|
||||
|
||||
block_0333:
|
||||
|
|
@ -305,256 +305,142 @@ function textfile_slot_23() /* entry=393 class_id=0x0A17 slot=0x23 */
|
|||
goto block_24D4;
|
||||
|
||||
block_1471:
|
||||
if (msgNum != 30) goto block_1528;
|
||||
|
||||
block_1479:
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = ".^*End of Message <";
|
||||
goto block_24D4;
|
||||
|
||||
block_1528:
|
||||
if (msgNum != 31) goto block_15BD;
|
||||
|
||||
block_1530:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Thermatron Assembly Line:^_____________^Now interfacing with remote droid *.*.*.^<Thermatron> VTK944^^Unit is now *-ONLINE-.";
|
||||
goto block_24D4;
|
||||
|
||||
block_15BD:
|
||||
if (msgNum != 32) goto block_1600;
|
||||
|
||||
block_15C5:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Thermatron Manufacturing Plant:^_____________";
|
||||
goto block_24D4;
|
||||
|
||||
block_1600:
|
||||
if (msgNum != 33) goto block_166F;
|
||||
|
||||
block_1608:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Refinery Operations:^____________^Remote viewing facility.^*Restricted Access*^Granted";
|
||||
goto block_24D4;
|
||||
|
||||
block_166F:
|
||||
if (msgNum != 34) goto block_16E2;
|
||||
|
||||
block_1677:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^Remote viewing facility.^*Production Line^*<DEACTIVATED>";
|
||||
goto block_24D4;
|
||||
|
||||
block_16E2:
|
||||
if (msgNum != 35) goto block_176C;
|
||||
|
||||
block_16EA:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^*Auxiliary Production Line^*<ACTIVE>^Shut down requires Security Card Clearance";
|
||||
goto block_24D4;
|
||||
|
||||
block_176C:
|
||||
if (msgNum != 36) goto block_17B0;
|
||||
|
||||
block_1774:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Thermatron Auxiliary Production Line:^________";
|
||||
goto block_24D4;
|
||||
|
||||
block_17B0:
|
||||
if (msgNum != 37) goto block_1806;
|
||||
|
||||
block_17B8:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^*Laser Field^*<DEACTIVATED>";
|
||||
goto block_24D4;
|
||||
|
||||
block_1806:
|
||||
if (msgNum != 38) goto block_18A0;
|
||||
|
||||
block_180E:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^Remote viewing facility.^*Laser Field^*<ACTIVE>^Security card clearance required to de-activate";
|
||||
goto block_24D4;
|
||||
|
||||
block_18A0:
|
||||
if (msgNum != 39) goto block_196F;
|
||||
|
||||
block_18A8:
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^Memorize the code and delete this message immediately! <";
|
||||
goto block_24D4;
|
||||
|
||||
block_196F:
|
||||
if (msgNum != 40) goto block_19C5;
|
||||
|
||||
block_1977:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^*Laser Field^*<DEACTIVATED>";
|
||||
goto block_24D4;
|
||||
|
||||
block_19C5:
|
||||
if (msgNum != 41) goto block_1A54;
|
||||
|
||||
block_19CD:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Remote Security Op:^_____________^Now interfacing with remote droid *.*.*.^<Thermatron> ATK656^^Unit is now *-ONLINE-.";
|
||||
goto block_24D4;
|
||||
|
||||
block_1A54:
|
||||
if (msgNum != 42) goto block_1AAA;
|
||||
|
||||
block_1A5C:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^Security Control:^_______________^^*Laser Field^*<ACTIVATED>";
|
||||
goto block_24D4;
|
||||
|
||||
block_1AAA:
|
||||
if (msgNum != 43) goto block_1B1F;
|
||||
|
||||
block_1AB2:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel HQD^___________________^*^Accessing system:*.*.*.*^^Thresher Cannon: *ACTIVE";
|
||||
goto block_24D4;
|
||||
|
||||
block_1B1F:
|
||||
if (msgNum != 44) goto block_1BB3;
|
||||
|
||||
block_1B27:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel HQD^___________________^*^Accessing system:*.*.*.*^^SORC Monitoring station security field:^^*<DEACTIVATED>";
|
||||
goto block_24D4;
|
||||
|
||||
block_1BB3:
|
||||
if (msgNum != 45) goto block_1C6F;
|
||||
|
||||
block_1BBB:
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^^Spies are everywhere so be alert!";
|
||||
goto block_24D4;
|
||||
|
||||
block_1C6F:
|
||||
if (msgNum != 46) goto block_1DFD;
|
||||
|
||||
block_1C77:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^* WEC Email^^To: Prof. Coulson^^From: Sev Dorren,^Security Chief^^Professor, I have installed a force-field at the entrance to the SORC station as you instructed. If there is anything further required please let me know. ^PS: The only way to access the force-field is through the central computer, so I am sure it will be quite safe from any saboteurs. .^*End of Message <";
|
||||
goto block_24D4;
|
||||
|
||||
block_1DFD:
|
||||
if (msgNum != 47) goto block_1EBF;
|
||||
|
||||
block_1E05:
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^*End of Message <";
|
||||
goto block_24D4;
|
||||
|
||||
block_1EBF:
|
||||
if (msgNum != 48) goto block_1F13;
|
||||
|
||||
block_1EC7:
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = Item.hurl(passcode);
|
||||
goto block_24D4;
|
||||
|
||||
block_1F13:
|
||||
if (msgNum != 49) goto block_1F62;
|
||||
|
||||
block_1F1B:
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = Item.hurl(passcode);
|
||||
goto block_24D4;
|
||||
|
||||
block_1F62:
|
||||
if (msgNum != 50) goto block_2069;
|
||||
|
||||
block_1F6A:
|
||||
if (linkNum && passcode) goto block_202C;
|
||||
|
||||
block_1F7B:
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = ". J.J.";
|
||||
goto block_2066;
|
||||
|
||||
block_202C:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*";
|
||||
|
||||
block_2066:
|
||||
goto block_24D4;
|
||||
|
||||
block_2069:
|
||||
if (msgNum != 52) goto block_217A;
|
||||
|
||||
block_2071:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Dr. Watson:^Since we no longer produce the 37x18 Chip at the Snell Memorial Science Center, you can expect to receive the remaining chips for meltdown this afternoon. See that no chips find their way out of your facility.^L. Probst^End of Message <";
|
||||
goto block_24D4;
|
||||
|
||||
block_217A:
|
||||
if (msgNum != 53) goto block_225D;
|
||||
|
||||
block_2182:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Ms. Ashcraft - *It has come to my attention that you have had problems with your platform elevator. Just put an Out of Order sign on it, and I'll send a maintenance worker out to fix it A.S.A.P. Larson ";
|
||||
goto block_24D4;
|
||||
|
||||
block_225D:
|
||||
if (msgNum != 54) goto block_22B3;
|
||||
|
||||
block_2265:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*^M.E.L.F. Station";
|
||||
goto block_24D4;
|
||||
|
||||
block_22B3:
|
||||
if (msgNum != 56) goto block_2313;
|
||||
|
||||
block_22BB:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^^Remote Camera: *ACTIVE^Teleporter Room^Level Four";
|
||||
goto block_24D4;
|
||||
|
||||
block_2313:
|
||||
if (msgNum != 57) goto block_2370;
|
||||
|
||||
block_231B:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*^Security System^*ACTIVE";
|
||||
goto block_24D4;
|
||||
|
||||
block_2370:
|
||||
if (msgNum != 58) goto block_24D4;
|
||||
|
||||
block_2378:
|
||||
if (linkNum && passcode) goto block_2469;
|
||||
|
||||
block_2389:
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Now you can store your very own load!";
|
||||
goto block_24D1;
|
||||
|
||||
block_2469:
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^Remote Camera: ACTIVE*^Security System^*ACTIVE^Forcefield Deactivated";
|
||||
|
||||
block_24D1:
|
||||
goto block_24D4;
|
||||
if (msgNum == 30) {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = ".^*End of Message <";
|
||||
}
|
||||
else if (msgNum == 31) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Thermatron Assembly Line:^_____________^Now interfacing with remote droid *.*.*.^<Thermatron> VTK944^^Unit is now *-ONLINE-.";
|
||||
}
|
||||
else if (msgNum == 32) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Thermatron Manufacturing Plant:^_____________";
|
||||
}
|
||||
else if (msgNum == 33) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Refinery Operations:^____________^Remote viewing facility.^*Restricted Access*^Granted";
|
||||
}
|
||||
else if (msgNum == 34) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^Remote viewing facility.^*Production Line^*<DEACTIVATED>";
|
||||
}
|
||||
else if (msgNum == 35) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^*Auxiliary Production Line^*<ACTIVE>^Shut down requires Security Card Clearance";
|
||||
}
|
||||
else if (msgNum == 36) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Thermatron Auxiliary Production Line:^________";
|
||||
}
|
||||
else if (msgNum == 37) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^*Laser Field^*<DEACTIVATED>";
|
||||
}
|
||||
else if (msgNum == 38) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^Remote viewing facility.^*Laser Field^*<ACTIVE>^Security card clearance required to de-activate";
|
||||
}
|
||||
else if (msgNum == 39) {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^Memorize the code and delete this message immediately! <";
|
||||
}
|
||||
else if (msgNum == 40) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel:^________________^*Laser Field^*<DEACTIVATED>";
|
||||
}
|
||||
else if (msgNum == 41) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Remote Security Op:^_____________^Now interfacing with remote droid *.*.*.^<Thermatron> ATK656^^Unit is now *-ONLINE-.";
|
||||
}
|
||||
else if (msgNum == 42) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^Security Control:^_______________^^*Laser Field^*<ACTIVATED>";
|
||||
}
|
||||
else if (msgNum == 43) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel HQD^___________________^*^Accessing system:*.*.*.*^^Thresher Cannon: *ACTIVE";
|
||||
}
|
||||
else if (msgNum == 44) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Security Cartel HQD^___________________^*^Accessing system:*.*.*.*^^SORC Monitoring station security field:^^*<DEACTIVATED>";
|
||||
}
|
||||
else if (msgNum == 45) {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^^Spies are everywhere so be alert!";
|
||||
}
|
||||
else if (msgNum == 46) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^* WEC Email^^To: Prof. Coulson^^From: Sev Dorren,^Security Chief^^Professor, I have installed a force-field at the entrance to the SORC station as you instructed. If there is anything further required please let me know. ^PS: The only way to access the force-field is through the central computer, so I am sure it will be quite safe from any saboteurs. .^*End of Message <";
|
||||
}
|
||||
else if (msgNum == 47) {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "^*End of Message <";
|
||||
}
|
||||
else if (msgNum == 48) {
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = UCMachine.numToStr(passcode);
|
||||
}
|
||||
else if (msgNum == 49) {
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = UCMachine.numToStr(passcode);
|
||||
}
|
||||
else if (msgNum == 50) {
|
||||
if (!(linkNum && passcode)) {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = ". J.J.";
|
||||
}
|
||||
else {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*";
|
||||
}
|
||||
}
|
||||
else if (msgNum == 52) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Dr. Watson:^Since we no longer produce the 37x18 Chip at the Snell Memorial Science Center, you can expect to receive the remaining chips for meltdown this afternoon. See that no chips find their way out of your facility.^L. Probst^End of Message <";
|
||||
}
|
||||
else if (msgNum == 53) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Ms. Ashcraft - *It has come to my attention that you have had problems with your platform elevator. Just put an Out of Order sign on it, and I'll send a maintenance worker out to fix it A.S.A.P. Larson ";
|
||||
}
|
||||
else if (msgNum == 54) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*^M.E.L.F. Station";
|
||||
}
|
||||
else if (msgNum == 56) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^^Remote Camera: *ACTIVE^Teleporter Room^Level Four";
|
||||
}
|
||||
else if (msgNum == 57) {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^^Remote Camera: ACTIVE*^Security System^*ACTIVE";
|
||||
}
|
||||
else if (msgNum == 58) {
|
||||
if (!(linkNum && passcode)) {
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* concat */
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "Now you can store your very own load!";
|
||||
}
|
||||
else {
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = "WEC SECURITY SYSTEM:^Remote Camera: ACTIVE*^Security System^*ACTIVE^Forcefield Deactivated";
|
||||
}
|
||||
}
|
||||
|
||||
block_24D4:
|
||||
goto block_24DD;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue