Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

battlexh.ref 21.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297
; Script file BATTLEXH.REF, indexed by REFINDEX v0.01 on Sun Mar 18 22:19:39 2001

@DECLARE done 000000593
@DECLARE gone 000000604
@DECLARE sorry 000000635
@DECLARE xhair 000000708
@DECLARE aim 000001904
@DECLARE power 000004026
@DECLARE didihit 000005206
@DECLARE miss1 000018761
@DECLARE miss2 000018886
@DECLARE miss3 000019093
@DECLARE getaway 000019750
@DECLARE assasin 000019807
@DECLARE cyrus 000020951
@NOCHECK
; End of .REF index

;Battlexh.ref  Handles all crossbow hit detection and assination scores
;All origonal Code by Codax of Dragon's Den Ultd.
 
@#done
 
@#gone
@drawmap
@update
 
@#sorry
@do saybar
Sorry, you cannot do that
@key
@do goto power
 
@#Xhair
@Drawpart &Lastx &Lasty
@update
@if crossbow.&playernum exists false then do
@begin
@do saybar
This would make a great place to try to assasinate someone!
@run done
@end
 
@if crossbow.&playernum exists true then do
@begin
@clearblock 21 21
@do move 3 21
@do write
`%Would you like to take a shot with your crossbow? `2[`0Y`2,`0N`2]
@do readspecial `s01 NY
@if `s01 is N then do
@begin
@if map is 644 then x - 1
@if map is 648 then x - 1
@if map is 646 then x - 1
@drawmap
@update
@run done
@end
 
@if `s01 is Y then do
@begin
@clearblock 21 23
@if `p90 < 1 then do
@begin
@do saybar
You don't have any arrows
@run done
@end
@if `p90 > 0 then do
@begin
@do move 3 21
@do write
`r0`4OOOOO
@do `p20 is x ;xchord
@do `p20 + 5  ;x chord
@do `p21 is y ;y chord 
@do `p21 + 2  ;y chord
@do `p22 is 0 ;power
@if map is 644 then `p23 is 2
@if map is 564 then `p23 is 7
@if map is 484 then `p23 is 7
 
@if map is 646 then `p23 is 2
@if map is 566 then `p23 is 7
@if map is 486 then `p23 is 7
 
@if map is 648 then `p23 is 2
@if map is 568 then `p23 is 7
@if map is 488 then `p23 is 7
 
@do `p25 is `p20
@do `p26 is `p21
@do `p25 + 1
@label aim
@do move `p20 `p21
@do write
`r`p23`4*`r4
@do move 3 23
;8=up 6=right 4=left 2=down s=shoot +=powerup q=quit
@do readspecial `s01 qr8642+s?
 
@if `s01 is ? then do
@begin
@show
`%`r0`c  `r1  How do you use this thingy?  `r0`0
 
   Chapter 1:  Aiming your Crossbow`2
 
	To aim the cross-bow use the number-pad on the right of the handle
  The number 8 means = up, 2 = down, 4 = left, 6 = right.
`k`0
 
   Chapter 2:  Fine Tuning your shot`2
 
	To fine tune your shot you can press "R" which is (If you are in
   home row configuration) is just above your middle left-hand finger
`k`0
 
   Chapter 3:  Adding Tension to your crossbow`2
 
	As you know if you do not use the correct tension on your crossbow
   it will not fire at all and will make alot of noise.  Therefor you must
   make sure your power meter is full before attemting a shot.  Your power
   meter is located at the bottom of the hilt and looks like this:
 
	`4OOOOO `00 out of 5 strength
	`$0`4OOOO `01 out of 5 strength
	`$00`4OOO `02 out of 5 strength
	`$000`4OO `03 out of 5 strength
	`$0000`4O `04 out of 5 strength
	`$00000 `0Full power!
`2
   To add power all you have too do look to the afore metioned num-pad and
   press the "+" key`0
`k
 
   Chapter 4:  Shooting your crossbow`2
 
	To shoot an arrow at the target(`r`p23``p24*`r0`2) just press the
   "S" key which is located near your left hand under your 2nd finger from
   the pinky(home row positon)`0
`k
 
   Chapter 5:  Chickening out`2
 
	If you don't have the guts to shoot or have changed your mind about
   killing then use the "Q" key, which is right above your left pinky, to 
   holster your crossbow.
`k
`0                            Happy Hunting!
`k
@drawmap
@update
@do goto power
@end
 
 
	
@if `s01 is R then do
@begin
@drawmap
@update
@do goto power
@end
 
@if `s01 is Q then do
@begin
@do saybar
You guess you will have to shoot later
@key
@run gone
@end
 
@if `s01 is + then do
@begin
@if `p25 > 80 then `p25 is 1
@drawpart `p25 `p21
@do `p22 + 1
@if `p22 > 5 then `p22 is 5
@label power
@clearblock 21 21
@do move 3 21
@if `p22 is 0 then `s02 is `r0`4OOOOO
@if `p22 is 1 then `s02 is `r0`$0`4OOOO
@if `p22 is 2 then `s02 is `r0`$00`4OOO
@if `p22 is 3 then `s02 is `r0`$000`4OO
@if `p22 is 4 then `s02 is `r0`$0000`4O
@if `p22 is 5 then `s02 is `r0`$00000`4
@do write
`s02
@do goto aim
@end
 
@if `s01 is S then do
@begin
@do goto didihit
@end
 
@if `s01 is 4 then do
@begin
@if `p25 > 80 then `p25 is 1
@drawpart `p20 `p21
@do `p20 - 1
@if `p20 < 1 then do
@begin
@do `p20 is 1
@run sorry
@end
@if `p20 > 0 then do
@begin
@do goto aim
@end
@end
 
@if `s01 is 2 then do
@begin
@drawpart `p20 `p21
@do `p21 + 1
@if `p21 > 20 then do
@begin
@do `p21 is 20
@run sorry
@end
@if `p21 < 21 then do
@begin
@do goto aim
@end
@end
 
@if `s01 is 8 then do
@begin
@drawpart `p20 `p21
@do `p21 - 1
@if `p21 < 1 then do
@begin
@do `p21 is 1
@run sorry
@end
@if `p21 > 0 then do
@begin
@do goto aim
@end
@end
 
@if `s01 is 6 then do
@begin
@drawpart `p20 `p21
@do `p20 + 1
@if `p20 > 80 then do
@begin
@do `p20 is 80
@run sorry
@end
@if `p20 < 81 then do
@begin
@do goto aim
@end
@end
 
@label didihit
@if `p22 < 5 then do
@begin
@do saybar
You didn't have enough tension on the crossbow!!!
@key
@if `p20 is x then `p29 is 1
@if `p21 is y then `p29 + 1
@if `p29 is 2 then do
@begin
@do `p29 is 30
@if `p22 less 1 then `p22 is 1
@do `p29 * `p22
@do `p02 - `p29
@if `p02 < 1 then do
@begin
@do enemy is a`xshot`xin`xthe`xfoot
@run die in gametxt.ref
@end
@if `p02 > 0 then do
@begin
@do saybar
You shoot yourself in the foot and loose `p29 hitpoints...lucky no one saw!
@End
@end
@run done
@end
 
@if `p22 = 5 then do
@begin
@if `p20 > x then `s03 is \
@if `p20 < x then `s03 is /
@drawpart `p20 `p21
@do move `p20 `p21
@do write
`r`p23`$`s03
@if `p20 is x then `p29 is 1
@if `p21 is y then `p29 + 1
@if `p29 is 2 then do
@begin
@do `p29 is 30
@if `p22 less 1 then `p22 is 1
@do `p29 * `p22
@do `p02 - `p29
@if `p02 < 1 then do
@begin
@do enemy is a`xshot`xin`xthe`xfoot
@run die in gametxt.ref
@end
@if `p02 > 0 then do
@begin
@do saybar
You shoot yourself in the foot and loose `p29 hitpoints...lucky no one saw!
@End
@end
 
@if map is 644 then do
@begin
@if `p20 is 20 then do
@begin
@if `p21 is 14 then do
@begin
@if bitcheck `t20 0 1 then do
@begin
@run miss3
@end
@if bitcheck `t02 0 0 then do
@begin
@do saybar
HIT!!!!  You hit the spy!  Nice Shot!
@key
@bitset `t20 0 1
@do `p90 + 1
@do goto xhair
@end
@end
@end
@if `p20 is 34 then do
@begin
@if `p21 is 13 then do
@begin
@if bitcheck `t20 3 1 then do
@begin
@run miss3
@end
@if bitcheck `t20 3 0 then do
@begin
@do saybar
HIT!!!!  You hit a girl!  Nice Shot!
@key
@bitset `t20 3 1
@do goto xhair
@end
@end
@end
@if `p20 is 26 then do
@begin
@if `p21 is 8 then do
@begin
@if bitcheck `t20 1 1 then do
@begin
@run miss3
@end
@if bitcheck `t20 1 0 then do
@begin
@do saybar
HIT!!!!  You hit a wierd guy!  Nice Shot!
@key
@bitset `t20 1 1
@do goto xhair
@end
@end
@end
@if `p20 is 53 then do
@begin
@if `p21 is 17 then do
@begin
@if bitcheck `t20 2 1 then do
@begin
@run miss3
@end
@if bitcheck `t20 2 0 then do
@begin
@do saybar
HIT!!!!  You hit someone!  Nice Shot!
@key
@bitset `t20 2 1
@do goto xhair
@end
@end
@end
@if `p20 is 33 then do
@begin
@if `p21 is 2 then do
@begin
@do saybar
You hit a guard in the leg but he doesn't even notice!
@key
@do goto xhair
@end
@end
@run miss1
@end
;---end of kills on block 644---
@end
 
@if map is 564 then do
@begin
@if `p20 is 11 then do
@begin
@if `p21 is 15 then do
@begin
@do saybar
You hit a guard in his leg, but he doesn't notice
@key
@do goto xhair
@end
@end
@if `p20 is 17 then do
@begin
@if `p21 is 12 then do
@begin
@do saybar
You hit a guard in his leg, but he doesn't notice
@key
@do goto xhair
@end
@end
@if `p20 is 13 then do
@begin
@if `p21 is 6 then do
@begin
@do saybar
You hit a guard in his leg, but he doesn't notice
@key
@do goto xhair
@end
@end
@if `p20 is 18 then do
@begin
@if `p21 is 4 then do
@begin
@do saybar
You hit a guard in his leg, but he doesn't notice
@key
@do goto xhair
@end
@end
@if `p20 is 51 then do
@begin
@if `p21 is 7 then do
@begin
@do saybar
You hit a guard in his leg, but he doesn't notice
@key
@do goto xhair
@end
@end
@if `p20 is 55 then do
@begin
@if `p21 is 8 then do
@begin
@do saybar
You hit a guard in his leg, but he doesn't notice
@key
@do goto xhair
@end
@end
@if `p20 is 52 then do
@begin
@if `p21 is 14 then do
@begin
@do saybar
You hit a guard in his leg, but he doesn't notice
@key
@do goto xhair
@end
@end
@if `p20 is 53 then do
@begin
@if `p21 is 18 then do
@begin
@do saybar
You hit a guard in his leg, but he doesn't notice
@key
@do goto xhair
@end
@end
@if `p20 is 23 then do
@begin
@if `p21 is 15 then do
@begin
@if bitcheck `t20 4 1 then do
@begin
@run miss3
@end
@if bitcheck `t20 4 0 then do
@begin
@do saybar
HIT!!!!  You hit a spy!  Nice Shot!
@key
@bitset `t20 4 1
@do `p90 + 1
@do goto xhair
@end
@end
@end
@if `p20 is 64 then do
@begin
@if `p21 is 18 then do
@begin
@do saybar
Your arrow hits the wall of the Tavern!
@key
@do goto xhair
@end
@end
@if `p20 is 79 then do
@begin
@if `p21 is 18 then do
@begin
@do saybar
Your arrow hits the wall of the Tavern!
@key
@do goto xhair
@end
@end
@if `p20 is 77 then do
@begin
@if `p21 is 16 then do
@begin
@do saybar
Your arrow hits the wall of the Tavern!
@key
@do goto xhair
@end
@end
@if `p20 is 64 then do
@begin
@if `p21 is 3 then do
@begin
@do saybar
The Dark healer sees the arrow coming and dodges easily!
@key
@do goto xhair
@end
@end
@end
@end
;----------
@if map is 484 then do
@begin
@if `p20 is 31 then do
@begin
@if `p21 is 20 then do
@begin
@do saybar
That person on the balcony has a crossbow!!  Get s&him
@key
@run miss2
@end
@end
@if `p20 is 45 then do
@begin
@if `p21 is 20 then do
@begin
@do saybar
That person up there has a crossbow!  Get s&him!
@key
@run miss2
@end
@end
@if `p20 is 64 then do
@begin
@if `p21 is 13 then do
@begin
@do saybar
That person on the balcony has a crossbow!!  Get s&him
@key
@run miss2
@end
@end
@if `p20 is 37 then do
@begin
@if `p21 is 2 then do
@begin
@if bitcheck `t20 7 1 then do
@begin
@run miss2
@end
@if bitcheck `t20 7 0 then do
@begin
@writefile lognow.txt
 
	`0`n`2 HAS KILLED KING `0POWER`2!  GOOD DRAGONS EVERYWHERE
		BEGIN A NIGHT OF PARTYING AND CELEBARTION!
@
@do saybar
HIT!!!!  You have killed POWER!  A ROYAL IS DEAD!
@key
@bitset `t20 7 1
@do `p84 + 1
@do goto xhair
@end
@end
@end
@run miss2
@end
;---------
@if map is 646 then do
@begin
@if `p20 is 32 then do
@begin
@if `p21 is 2 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 45 then do
@begin
@if `p21 is 2 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 21 then do
@begin
@if `p21 is 8 then do
@begin
@if bitcheck `t22 0 1 then do
@begin
@run miss3
@end
@if bitcheck `t22 0 0 then do
@begin
@do saybar
HIT!!!!  You hit a protester!  Nice Shot!
@key
@bitset `t22 0 1
@do goto xhair
@end
@end
@end
 
@if `p20 is 43 then do
@begin
@if `p21 is 12 then do
@begin
@if bitcheck `t22 1 1 then do
@begin
@run miss3
@end
@if bitcheck `t22 1 0 then do
@begin
@do saybar
HIT!!!!  You hit a spy!  Nice Shot!
@key
@bitset `t22 1 1
@do `p89 + 1
@do goto xhair
@end
@end
@end
 
@if `p20 is 11 then do
@begin
@if `p21 is 13 then do
@begin
@if bitcheck `t22 2 1 then do
@begin
@run miss3
@end
@if bitcheck `t22 1 0 then do
@begin
@do saybar
HIT!!!!  You hit a non-conformist !  Nice Shot!
@key
@bitset `t22 2 1
@do goto xhair
@end
@end
@end
 
@if `p20 is 34 then do
@begin
@if `p21 is 16 then do
@begin
@if bitcheck `t22 3 1 then do
@begin
@run miss3
@end
@if bitcheck `t22 3 0 then do
@begin
@do saybar
HIT!!!!  You hit a Blue Dragon!  Nice Shot!
@key
@bitset `t22 3 1
@do goto xhair
@end
@end
@end
 
@if `p20 is 38 then do
@begin
@if `p21 is 10 then do
@begin
@if bitcheck `t22 4 1 then do
@begin
@run miss3
@end
@if bitcheck `t22 4 0 then do
@begin
@do saybar
HIT!!!!  You hit a White Dragon!  Nice Shot!
@key
@bitset `t22 4 1
@do goto xhair
@end
@end
@end
@run miss1
@end
;--end map 646(codyard)
 
@if map is 566 then do
@begin
 
@if `p20 is 12 then do
@begin
@if `p21 is 10 then do
@begin
@if bitcheck `t22 5 1 then do
@begin
@run miss3
@end
@if bitcheck `t22 5 0 then do
@begin
@do saybar
HIT!!!!  You hit a spy!  Nice Shot!
@key
@bitset `t22 5 1
@do `p89 + 1
@do goto xhair
@end
@end
@end
 
@if `p20 is 76 then do
@begin
@if `p21 is 5 then do
@begin
@if bitcheck `t22 6 1 then do
@begin
@run miss3
@end
@if bitcheck `t22 6 0 then do
@begin
@do saybar
HIT!!!!  You hit a spy!  Nice Shot!
@key
@bitset `t22 6 1
@do `p89 + 1
@do goto xhair
@end
@end
@end
@if `p20 is 64 then do
@begin
@if `p21 is 18 then do
@begin
@do saybar
Your arrow hits the wall of the Tavern!
@key
@do goto xhair
@end
@end
@if `p20 is 79 then do
@begin
@if `p21 is 18 then do
@begin
@do saybar
Your arrow hits the wall of the Tavern!
@key
@do goto xhair
@end
@end
@if `p20 is 77 then do
@begin
@if `p21 is 16 then do
@begin
@do saybar
Your arrow hits the wall of the Tavern!
@key
@do goto xhair
@end
@end
@if `p20 is 46 then do
@begin
@if `p21 is 14 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 22 then do
@begin
@if `p21 is 9 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 15 then do
@begin
@if `p21 is 15 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 26 then do
@begin
@if `p21 is 14 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 32 then do
@begin
@if `p21 is 19 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 45 then do
@begin
@if `p21 is 19 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 55 then do
@begin
@if `p21 is 14 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 53 then do
@begin
@if `p21 is 8 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 46 then do
@begin
@if `p21 is 1 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@if `p20 is 31 then do
@begin
@if `p21 is 1 then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
@run miss1
@end
;----end cod hall
@if map is 486 then do
@begin
@if `p20 is 37 then do
@begin
@if `p21 is 2 then do
@begin
@if bitcheck `t22 7 1 then do
@begin
@run miss2
@end
@if bitcheck `t22 7 0 then do
@begin
@writefile lognow.txt
 
	`0`n`2 HAS KILLED `0KING CODAX`2!  GOOD DRAGONS EVERYWHERE
		WONDER WHAT WILL BECOME OF THEM!
@do saybar
HIT!!!!  You have killed CODAX!  A ROYAL IS DEAD!
@key
@bitset `t22 7 1
@do `p84 + 1
@run xhair
@end
@end
@end
 
@if `p20 is 31 then do
@begin
@if `p21 is 20 then do
@begin
@do saybar
Get that person up there! S&he has a Crossbow!
@key
@do goto miss2
@end
@end
 
@if `p20 is 45 then do
@begin
@if `p21 is 20 then do
@begin
@do saybar
Get that person on the balcony, s&he has a Crossbow!
@key
@do goto miss2
@end
@end
@do goto miss2
@end
;--endcodthroneroom
@if map is 568 then do
@begin
@if `p20 is 77 then do
@begin
@if `p21 is 16 then do
@begin
@if bitcheck `t23 0 1 then do
@begin
@run miss3
@end
@if bitcheck `t23 0 0 then do
@begin
@do saybar
HIT!!!!  You hit a innocent human!  Nice Shot!
@key
@bitset `t23 0 1
@do goto xhair
@end
@end
@end
@if `p20 is 60 then do
@begin
@if `p21 is 9 then do
@begin
@if bitcheck `t23 1 1 then do
@begin
@run miss3
@end
@if bitcheck `t23 1 0 then do
@begin
@do saybar
HIT!!!!  You hit a spy!  Nice Shot!
@key
@bitset `t23 1 1
@do `p90 + 1
@do goto xhair
@end
@end
@end
@if `p20 is 18 then do
@begin
@if `p21 is 9 then do
@begin
@if bitcheck `t23 2 1 then do
@begin
@run miss3
@end
@if bitcheck `t23 2 0 then do
@begin
@do saybar
HIT!!!!  You hit a Phoenix!  Nice Shot!
@key
@bitset `t23 2 1
@do goto xhair
@end
@end
@end
@if `p20 is 20 then do
@begin
@if `p21 is 12 then do
@begin
@if bitcheck `t23 3 1 then do
@begin
@run miss3
@end
@if bitcheck `t23 3 0 then do
@begin
@do saybar
HIT!!!!  You hit a Phoenix!  Nice Shot!
@key
@bitset `t23 3 1
@do goto xhair
@end
@end
@end
@if `p20 is 17 then do
@begin
@if `p21 is 16 then do
@begin
@if bitcheck `t23 4 1 then do
@begin
@run miss3
@end
@if bitcheck `t23 4 0 then do
@begin
@do saybar
HIT!!!!  You hit a Phoenix!  Nice Shot!
@key
@bitset `t23 4 1
@do goto xhair
@end
@end
@end
@if `p20 is 64 then do
@begin
@if `p21 is 18 then do
@begin
@if bitcheck `t23 5 1 then do
@begin
@run miss3
@end
@if bitcheck `t23 5 0 then do
@begin
@do saybar
HIT!!!!  You hit a spy!  Nice Shot!
@key
@bitset `t23 5 1
@do `p90 + 1
@do goto xhair
@end
@end
@end
@do goto miss1
@end
;-endsharroom2
@if map is 488 then do
@begin
@if `p20 is 56 then do
@begin
@if `p21 is 13 then do
@begin
@do saybar
HIT!!!!  You hit Cyrus!  You are in trouble now!
@key
@run cyrus
@end
@end
@if `p20 is 37 then do
@begin
@if `p21 is 2 then do
@begin
@if bitcheck `t23 7 1 then do
@begin
@run miss2
@end
@if bitcheck `t23 7 0 then do
@begin
@writefile lognow.txt
 
	THE GREAT `0SHARA`2 WAS ASSASINATED TODAY!  HER TYRANY HAS ENDED
	   FOR ANOTHER `0100`2 YEARS!!  HER KILLER IS BELIEVED TO BE
			        `0`N
@do saybar
HIT!!!!  You hit a SHARA!  You killed a ROYAL!
@key
@bitset `t23 7 1
@do `p84 + 1
@do goto xhair
@end
@end
@end
@do goto miss2
@end
;---------------if Xhairs not = position-------
@#miss1
@do saybar
You miss and your arrow hits the ground!
@key
@do saybar
Lucky no one saw you!
@key
@run xhair
 
@#miss2
@do `p28 random 70 1
@if `p28 is 1 then do
@begin
@run getaway
@end
@if `p28 not 1 then do
@begin
@do saybar
Guards rush at you from all directions!!!!
@run gotya in battlefx.ref
@end
 
@#miss3
@do saybar
This person is already dead!!!!
@key
@clearblock 22 24
@run xhair
 
;-this is the format for hit detection!
@if map is ;block; then do
@begin
 
@if `p20 is ;x; then do
@begin
@if `p21 is ;;y then do
@begin
@if bitcheck `t;; ; 1 then do
@begin
@run miss3
@end
@if bitcheck `t;; ; 0 then do
@begin
@do saybar
HIT!!!!  You hit a ;; !  Nice Shot!
@key
@bitset `t;; ; 1
@do `p;; + 1
@do goto xhair
@end
@end
@end
;-used for guards
@if `p20 is ;x; then do
@begin
@if `p21 is ;y; then do
@begin
@do saybar
HIT!!!!  You hit a guard in the leg but he doesn't even notice
@key
@do goto xhair
@end
@end
 
@#getaway
@do saybar
Lucky no one heard that shot!
 
@#assasin
@if map is 488 then `p29 is 3
@if map is 486 then `p29 is 2
@if map is 484 then `p29 is 1
 
@if `p29 is 3 then `s03 is Shara
@if `p29 is 2 then `s03 is Codax
@if `p29 is 1 then `s03 is Power
 
@if `p29 is 3 then `s02 is she
@if `p29 not 3 then `s02 is he
@do `p28 random 3 1
@routine gone
@do saybar
`s03:  We must wait for an omen!
@do move 3 22
@do write
`l`l`l`l`l`l`l
@if `p28 not 1 then do
@begin
@do saybar
`s03:  Sorry you just aren't Assasin material, `n
@run done
@end
 
@if `p28 is 1 then do
@begin
@do saybar
`s03:  LOOK!!!!!!
@key
@do `s01 is `4O`2M`0E`!N`w
@do `p20 is 1
@do `p21 is 10
@do `p22 is 76
@do `s02 is  
@do `p23 is 7
@do `p24 is 2
@routine movergt in battlefx.ref
@do `p20 is 1
@do `p21 is 10
@do `p22 is 80
@routine drawh in battlefx.ref
@do saybar
I guess we have our omen!  You are now my assasin!  Retire all spys here!
@key
@writefile lognow.txt
 
	`0`N`2 got an omen from `0`s03`2 and became an assasin today!
		Looks like the fighting just got dirty
@
@if `p29 is 1 then `p81 is 1
@if `p29 is 2 then `p81 is 3
@if `p29 is 3 then `p81 is 2
 
@end
 
@#cyrus
@Do move 56 13
@do write
`r7`1
@do enemy is Cyrus
@do `p20 is 55
@do `p21 is 13
@do `s01 is `!Û
@do `s02 is 
@do `p22 is 7
@do `p23 is 7
@do `p24 is 0
@routine movelft in battlefx.ref
@do `p20 is 7
@do `p22 is 2
@do `s01 is `%`!Û
@routine movelft in battlefx.ref
@do `p20 is 2
@do `p22 is 55
@routine movergt2 in battlefx.ref
@Do move 56 13
@do write
`r7`1
@do x is `p22
@do y is `p21
@update
@do saybar
Cyrus:  I hope you are happy!!!  Now we both die!!!
@key
@Do move 56 13
@do write
`r4`1
@Do move 55 13
@do write
`r4`%
@Do move 55 13
@do write
`r7`$<>`w`w`w
@do move 54 13
@do write
`r7`$<  >`w`w`w
@do move 53 13
@do write
`r7`$<    >`w`w`w
@do move 53 13
@do write
`r7      
@run die in gametxt.ref
 
 
;-------------------high ascii---------------------------
;    open face
;    full face
;    snow flake
;°    partial open
;±    middle open
;²    mostly closed
;Û    all closed
;ß    up top
;Ü    down bottom
;Ý    left wall
;Þ    right wall
;þ    middle square
;ú    middle dot