Advertisement
dachte

fudd2.85p

Oct 3rd, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.32 KB | None | 0 0
  1. \START\
  2. \COMMENT=Program file dated 03/13/96, 12:15
  3. \NAME=FUDD2
  4. \FILE=fudd2.85P
  5. Disp "Fudd 2.6","By P.Gunn"
  6. Pause
  7. 0\->\EA
  8. 2\->\ATT
  9. 1\->\HPOT
  10. 1\->\MROT
  11. ClLCD
  12. Disp "Welcome to Fudd's","adventure."
  13.  
  14. Lbl Scr
  15. int (15rand)+4\->\STR
  16. int (15rand)+4\->\IN
  17. int (15rand)+4\->\WIS
  18. int (15rand)+4\->\CON
  19. int (15rand)+4\->\DEX
  20. 50+DEX+int (10rand)\->\GP
  21. int (12-.4DEX)\->\AC
  22. ClLCD
  23. Disp "Strength=","Intellect=","Wisdom=","Health=","Agility="
  24. Outpt(1,10,STR)
  25. Outpt(2,11,IN)
  26. Outpt(3,8,WIS)
  27. Outpt(4,8,CON)
  28. Outpt(5,9,DEX)
  29. Pause
  30. ClLCD
  31.  
  32. Lbl III
  33. Disp "Select a type","Wizard","Warrior","Priest","Psionicist","Ninja"
  34. Menu(1,"Wiz",WS,2,"Warr",FS,3,"Pri",CS,4,"Psi",PS,5,"Ninj",TS)
  35.  
  36. Lbl TS
  37. 2GP\->\GP
  38. int (7rand+.5CON-3)\->\HP
  39. (STR-9)/4\->\AMOD
  40. IN+4\->\MP
  41. 5\->\ATYPE
  42. Goto ABA
  43.  
  44. Lbl PS
  45. int (6rand+.5CON)\->\HP
  46. (STR-11)/3\->\AMOD
  47. WIS+int (IN/8)\->\MP
  48. 4\->\ATYPE
  49. Goto ABA
  50.  
  51. Lbl CS
  52. int (6rand+.5CON-2)\->\HP
  53. .3STR-4\->\AMOD
  54. 4WIS\->\MP
  55. 3\->\ATYPE
  56. Goto ABA
  57.  
  58. Lbl FS
  59. int (11rand+CON+2)\->\HP
  60. (.5STR-3)\->\AMOD
  61. 2\->\ATYPE
  62. 0\->\MP
  63. Goto ABA
  64.  
  65. Lbl WS
  66. 1\->\ATYPE
  67. int ((4rand+CON-9)/3)\->\HP
  68. 0\->\AMOD
  69. 3IN+WIS\->\MP
  70.  
  71. Lbl ABA
  72. HP\->\CHP
  73. MP\->\CMP
  74.  
  75. Lbl JOIN
  76. ClLCD
  77. Disp "MP=","HP=","$="
  78. Outpt(1,4,CMP)
  79. Outpt(2,4,CHP)
  80. Outpt(3,3,GP)
  81. Pause
  82. ClLCD
  83. Disp "Welcome to town"
  84. Menu(1,"SHOP",SHOP,2,"HEAL",HEAL,3,"WILD",WILD,4,"HOSP",SUR,5,"FINAL",F\#\
  85. IN)
  86.  
  87. Lbl SHOP
  88. Menu(1,"WEAP",WSH,2,"ARMR",ASH,3,"POTN",PSH,4,"Exit",JOIN)
  89.  
  90. Lbl HEAL
  91. ClLCD
  92. Disp "Welcome to the inn.","Rooms cost 50G"
  93. Menu(1,"YES",INN,2,"NO",JOIN)
  94.  
  95. Lbl INN
  96. If GP<50:Goto CHEAP
  97. HP\->\CHP
  98. MP\->\CMP
  99. GP-50\->\GP
  100. Goto JOIN
  101.  
  102. Lbl PSH
  103. ClLCD
  104. Disp "Heal Potions fer 70 G","Manna Root fer 80 G","You have HPOT","\#\
  105. You have MROT"
  106. Outpt(3,10,HPOT)
  107. Outpt(4,10,MROT)
  108. Menu(1,"HPOT",HPOT,2,"MROT",MROT,3,"Exit",JOIN)
  109.  
  110. Lbl HPOT
  111. If GP<70
  112. Goto CHEAP
  113. GP-70\->\GP
  114. HPOT+1\->\HPOT
  115.  
  116. Lbl BOTS
  117. Disp "Ching!"
  118. Pause
  119. Goto PSH
  120.  
  121. Lbl MROT
  122. If GP<80
  123. Goto CHEAP
  124. GP-80\->\GP
  125. MROT+1\->\MROT
  126. Goto BOTS
  127.  
  128. Lbl CHEAP
  129. Disp "Nice Try"
  130. Pause :Goto JOIN
  131.  
  132. Lbl ASH
  133. If AC\>=\7
  134. Then
  135. "Skin"\->\DTYPE
  136. Goto ASE:End
  137. If AC==6:Then
  138. "Leather"\->\DTYPE
  139. Goto ASE:End
  140. If AC>4
  141. Then
  142. "Scale"\->\DTYPE
  143. Goto ASE:End
  144. If AC>3:Then
  145. "Chain"\->\DTYPE
  146. Goto ASE:End
  147. If AC>1
  148. Then
  149. "Steel"\->\DTYPE
  150. Goto ASE:End
  151. If AC>0:Then
  152. "Plate"\->\DTYPE
  153. Goto ASE:End
  154. Disp "Shop CLOSED!":Pause :Goto JOIN
  155.  
  156. Lbl ASE
  157. ClLCD
  158. Disp "You want","Next ARMOR $"
  159. Outpt(1,10,DTYPE)
  160. Outpt(2,14,int (400/AC))
  161. Menu(1,"BUY",BY,2,"DON'T",JOIN)
  162.  
  163. Lbl BY
  164. If GP<int (400/AC)
  165. Goto CHEAP
  166. GP-int (400/AC)\->\GP
  167. AC-1\->\AC
  168. Disp "CHING!"
  169. Goto JOIN
  170.  
  171. Lbl WSH
  172. ClLCD
  173. Disp "Welcome to the","weapon shop"
  174. If ATT<3
  175. Then:"Hands"\->\ATY:Goto Asl:End
  176. If ATT<5
  177. Then:"Club"\->\ATY:Goto Asl:End
  178. If ATT<7
  179. Then:"Stave"\->\ATY:Goto Asl:End
  180. If ATT<9
  181. Then:"Sword"\->\ATY:Goto Asl:End
  182. If ATT<12
  183. Then:"M.Swd"\->\ATY:Goto Asl:End
  184. If ATT<15
  185. Then:"Laser"\->\ATY:Goto Asl:End
  186. If ATT<18
  187. Then:"Maser"\->\ATY:Goto Asl:End
  188. Disp "CLOSED":Pause :Goto JOIN
  189.  
  190. Lbl Asl
  191. ClLCD
  192. Disp "You have","The next costs $","Buy?"
  193. Outpt(1,10,ATY)
  194. Outpt(2,15,10ATT)
  195. Menu(1,"Yes",WBI,2,"No",JOIN)
  196.  
  197. Lbl WBI
  198. If GP<10ATT
  199. Goto CHEAP
  200. GP-10ATT\->\GP
  201. ATT+1\->\ATT
  202. Disp "Done"
  203. Pause
  204. Goto JOIN
  205.  
  206. Lbl WILD
  207. ClLCD
  208.  
  209. Lbl MSEL
  210. int (16rand)-1\->\MTV
  211. If MTV<1
  212. Then
  213. "Wasp"\->\MTY
  214. 5\->\EP
  215. 8\->\ED
  216. 5\->\EA
  217. Goto COM
  218. End
  219. If MTV==2
  220. Then
  221. "Mroom"\->\MTY
  222. 5\->\EP
  223. 7\->\ED
  224. 2\->\EA
  225. Goto COM
  226. End
  227. If MTV==3
  228. Then
  229. "Virus"\->\MTY
  230. 1\->\EP
  231. 75\->\ED
  232. 21\->\EA
  233. Goto COM
  234. End
  235. If MTV==4
  236. Then
  237. "Ogre"\->\MTY
  238. 12\->\EP
  239. 9\->\ED
  240. 16\->\EA
  241. Goto COM
  242. End
  243. If MTV<7
  244. Then
  245. "Snake"\->\MTY
  246. 11\->\EP
  247. 4\->\ED
  248. 4\->\EA
  249. Goto COM
  250. End
  251. If MTV<10
  252. Then
  253. "Nagus"\->\MTY
  254. 6\->\EP
  255. 3\->\ED
  256. 6\->\EA
  257. Goto COM
  258. End
  259. If MTV<13
  260. Then
  261. "Borg"\->\MTY
  262. 35\->\EP
  263. \(-)\2\->\ED
  264. 12\->\EA
  265. Goto COM
  266. End
  267. "Healer"\->\MTY
  268. 1\->\EP
  269. 10\->\ED
  270. \(-)\16\->\EA
  271.  
  272. Lbl COM
  273. ClLCD
  274. Disp "A leaps at ye","Yer HP="
  275. Outpt(1,3,MTY)
  276. Outpt(2,9,CHP)
  277. Pause
  278. If ATYPE==2
  279. Menu(1,"Att",ATT,5,"Run",RUN,2,"Parry",BLOK,3,"Item",USE)
  280. If ATYPE==5
  281. Menu(1,"Att",ATT,5,"Run",RUN,2,"Slash",NAT,3,"Njsu",NJU,4,"Item",USE)
  282. If ATYPE==4
  283. Menu(1,"Att",ATT,5,"Run",RUN,2,"Mind",PSI,3,"Item",USE)
  284. If ATYPE==3
  285. Menu(1,"Att",ATT,5,"Run",RUN,2,"HealS",PRY,3,"Item",USE)
  286. If ATYPE==1
  287. Menu(1,"Att",ATT,5,"Run",RUN,2,"Bmag",WIZ,3,"Item",USE)
  288.  
  289. Lbl NAN:Disp "None":Pause :Goto NROUND
  290.  
  291. Lbl RUN
  292. If DEX\>=\25rand
  293. Goto JOIN
  294.  
  295. Lbl NROUND
  296. If (20rand+.5(abs EA))<20-AC
  297. Then
  298. Disp "Miss":Pause :Goto COM
  299. End
  300. Pause :ClLCD
  301. Disp "He hit you for"
  302. int (4rand+.5EA)\->\DO
  303. Outpt(1,16,DO)
  304. Pause
  305. CHP-DO\->\CHP
  306. If CHP<1
  307. Then
  308. Pause
  309. Disp "You DIED!"
  310. Pause
  311. 1\->\CHP
  312. 0\->\CMP
  313. GP-int (80rand)\->\GP
  314. Goto JOIN
  315. End
  316. Pause
  317. Goto COM
  318.  
  319. Lbl ATT
  320. If 3(6rand+DEX)>17-ED
  321. Then:EP-(rand(ATT)+AMOD)\->\EP
  322. Disp "HIT!":Pause :Goto IDED
  323. End
  324. Disp "MISS!"
  325. Goto NROUND
  326.  
  327. Lbl IDED
  328. If EP<1
  329. Then:Pause :ClLCD:Disp "VICTORY!"
  330. GP+int (25rand)+ED\->\GP
  331. Pause
  332.  
  333. Goto JOIN
  334. End
  335. Goto NROUND
  336.  
  337. Lbl BLOK
  338. If CHP<HP
  339. HP+1\->\HP
  340. If DEX+20rand<30
  341. Goto NROUND
  342. Goto COM
  343.  
  344. Lbl NAT
  345. If MP<1
  346. Then:Disp "Slipped!"
  347. Goto NROUND
  348. End
  349. MP-1\->\MP
  350. If (20rand+.3DEX)>13-ED
  351. Then:EP-.5(3rand(ATT)+4AMOD)\->\EP:Disp "SLASH":Pause :Goto IDED
  352. End
  353. Disp "#$~'?! Weapon GONE!"
  354. 0\->\ATT
  355. Goto NROUND
  356.  
  357. Lbl USE
  358. ClLCD
  359. Disp "You have"," Manna"," Heal Potion"
  360. Outpt(2,1,MROT)
  361. Outpt(3,1,HPOT)
  362. Menu(3,"Exit",NROUND,1,"Manna",MUSE,2,"Hpot",HUSE)
  363.  
  364. Lbl MUSE
  365. If MROT<1
  366. Goto NAN
  367. MROT-1\->\MROT
  368. MP\->\CMP
  369. Disp "YAY!"
  370. Pause
  371. Goto NROUND
  372.  
  373. Lbl HUSE
  374. If HPOT<1
  375. Goto NAN
  376. HPOT-1\->\HPOT
  377. HP\->\CHP
  378. Disp "Yay!"
  379. Pause
  380. Goto NROUND
  381.  
  382. Lbl NOMAG
  383. Disp "Not Enough Power"
  384. Goto IDED
  385.  
  386. Lbl NJU
  387. ClLCD
  388. Disp "NINJA MAGIC","MP=","Flame=5MP","Flood=8MP","Blitz=12MP","Smoke=2M\#\
  389. P"
  390. Outpt(2,3,CMP)
  391. Menu(1,"Flame",NFIR,2,"Flood",NWAT,3,"Blitz",NLIT,4,"Smoke",NRUN,5,"Non\#\
  392. e",COM)
  393.  
  394. Lbl NRUN
  395. If CMP<2
  396. Goto NOMAG
  397. CMP-2\->\CMP
  398. Disp "Smoke!"
  399. Pause
  400. Goto JOIN
  401.  
  402. Lbl NLIT
  403. Disp "Zap!"
  404. If CMP<12
  405. Goto NOMAG
  406. CMP-12\->\CMP
  407. EP-(95rand+2AMOD)\->\EP
  408. Pause :ClLCD:Goto IDED
  409.  
  410. Lbl NWAT
  411. If CMP<8
  412. Goto NOMAG
  413. CMP-8\->\CMP
  414. Disp "A flood sweeps them!"
  415. EP-(50rand+2AMOD)\->\EP
  416. Pause :ClLCD:Goto IDED
  417.  
  418. Lbl NFIR
  419. If CMP<5
  420. Goto NOMAG
  421. Disp "Inferno!"
  422. CMP-5\->\CMP
  423. EP-(20rand+2AMOD)\->\EP
  424. Pause :ClLCD:Goto IDED
  425.  
  426. Lbl PSI
  427. ClLCD
  428. Disp "PSIONICS","MP=","Medit=+5 MP","DeathField=3","Tele=1","Psleak=4"
  429. Outpt(2,4,CMP)
  430. Menu(5,"Exit",NROUND,1,"DFld",FIE,2,"Medit",REST,3,"Tele",PRUN,4,"Pslea\#\
  431. k",PFIR)
  432.  
  433. Lbl REST
  434. ClLCD
  435. If CMP<MP
  436. MP+5\->\MP
  437. Disp "Hmmmmmmmm"
  438. Pause
  439. Goto NROUND
  440.  
  441. Lbl PRUN
  442. If CMP<1
  443. Goto NOMAG
  444. CMP-1\->\CMP
  445. ClLCD
  446. Disp "Mystic"
  447. Pause
  448. Outpt(1,8,"Teleport")
  449. Pause
  450. Goto JOIN
  451.  
  452. Lbl FIE
  453. ClLCD
  454. If CMP<3
  455. Goto NOMAG
  456. CMP-3\->\CMP
  457. Disp "Death Field","HP=","Sacrifice ? HP?"
  458. Outpt(2,4,CHP)
  459. Input GA
  460. CHP-GA\->\CHP
  461. If CHP<0
  462. Then:Disp "You Nit!"
  463. Pause
  464. Goto NROUND
  465. End
  466. Disp "Field of Pain!"
  467. EP-8GA\->\EP
  468. Goto IDED
  469.  
  470. Lbl PFIR
  471. If CMP<4
  472. Goto NOMAG
  473. End
  474. CMP-4\->\CMP
  475. ClLCD
  476. Disp "Mind Flame"
  477. If CMP<4
  478. Goto NOMAG
  479. CMP-4\->\CMP
  480. EP-40rand\->\EP
  481. Goto IDED
  482.  
  483. Lbl WIZ
  484. ClLCD
  485. Disp "Black Magic","MP=","Lbolt=2","Meteor=20","Weak=8","Beast=5","Sing\#\
  486. =0"
  487. Outpt(2,4,CMP)
  488. Menu(1,"Lblt",WLIT,2,"Meteo",FATAL,3,"Weak",NERD,4,"Beast",TURT,5,"Sing\#\
  489. ",SING)
  490.  
  491. Lbl WLIT
  492. ClLCD
  493. If CMP<2
  494. Goto IDED
  495. CMP-2\->\CMP
  496. Disp "Lightning strikes!"
  497. EP-4\->\EP
  498. Pause
  499. CMP-2\->\CMP
  500. Goto IDED
  501.  
  502. Lbl FATAL
  503. If CMP<20
  504. Goto NOMAG
  505. CMP-20\->\CMP
  506. Disp "His head is blown","to shreds!"
  507. \(-)\1\->\EP
  508. Goto IDED
  509.  
  510. Lbl NERD
  511. If CMP<8
  512. Goto NOMAG
  513. CMP-8\->\CMP
  514. 1\->\EP
  515. Disp "A grey wind blows"
  516. Pause
  517. Goto NROUND
  518.  
  519. Lbl TURT
  520. If CMP<5
  521. Goto NOMAG
  522. Disp "A Bull attacks them"
  523. EP-5+int (15rand)\->\EP
  524. Pause
  525. Goto IDED
  526.  
  527. Lbl SING
  528. ClLCD
  529. Disp "Aaaargh!","Moan!","They grab their ears!"
  530. EP-1\->\EP
  531. Pause
  532. Goto IDED
  533.  
  534. Lbl PRY
  535. ClLCD
  536. Disp "Priest Spells","MP=","Small Heal=2","Heal=5","Hurt=5"
  537. Outpt(2,3,CMP)
  538. Menu(5,"None",COM,4,"Exit",JOIN,1,"SHel",KLEIN,2,"Heal",GROSS,3,"Hurt",\#\
  539. OW)
  540.  
  541. Lbl KLEIN
  542. If CMP<2
  543. Goto NOMAG
  544. CMP-2\->\CMP
  545. .5HP\->\CHP
  546. Disp "Healed"
  547. Pause :Goto NROUND
  548.  
  549. Lbl GROSS
  550. If CMP<5
  551. Goto NOMAG
  552. CMP-5\->\CMP
  553. HP\->\CHP
  554. Disp "You are restored!"
  555. Goto NROUND
  556.  
  557. Lbl OW
  558. If CHP<5
  559. Goto NOMAG
  560. CMP-5\->\CMP
  561. Disp "The soul is torn from","their body"
  562. EP-int (16rand)\->\EP
  563. Goto IDED
  564.  
  565. Lbl SUR
  566. ClLCD
  567. Disp "Welcome to the","Hospital.","You have GP"
  568. Outpt(3,10,GP)
  569. Pause
  570. Disp "You want?","MPinc=2/","HPinc=1/","CCChange=100"
  571. Menu(1,"MP+",MI,2,"HP+",HI,3,"ClC",CI,4,"YAY!",SI,5,"Exit",JOIN)
  572.  
  573. Lbl MI
  574. Input "How much you want?",IC
  575. If GP-2IC<1
  576. Goto CHEAP
  577. IC+MP\->\MP
  578. GP-abs 2IC\->\GP
  579. Disp "Hallelujah!"
  580. Pause
  581. Goto JOIN
  582.  
  583. Lbl HI
  584. Input "How much?",IC
  585. If GP-IC<1
  586. Goto CHEAP
  587. GP-IC\->\GP
  588. HP+IC\->\HP
  589. Disp "You feel great!"
  590. Goto JOIN
  591.  
  592. Lbl CI
  593. If GP-100<1
  594. Goto CHEAP
  595. GP-100\->\GP
  596. Disp "*The world fades away*"
  597. Goto III
  598.  
  599. Lbl SI
  600. If rand<.45
  601. Then
  602. Disp "YAY!"
  603. Pause
  604. \(-)\2\->\EP
  605. 0\->\EA:0\->\ED
  606. Goto IDED
  607. End
  608. 55\->\EP
  609. Disp "False One!"
  610. Goto IDED
  611.  
  612. Lbl FIN
  613. Pause
  614. Disp "Really?"
  615. Menu(1,"No",JOIN,2,"Yes",RFIN)
  616.  
  617. Lbl RFIN
  618. Disp "You dare to challenge","me? HA HA HA!":Pause :Disp "I am the Lord\#\
  619. of Time","& Space.","I am demon Zull!!","You, Die now!"
  620. If HP<20
  621. Then
  622. Disp "You are ERASED"
  623. Stop
  624. End
  625. Disp "What the h%?'#'#'?"
  626. Menu(1,"Att",BAT,2,"Mleak",BMP)
  627.  
  628. Lbl BMP
  629. If CMP<50rand
  630. Goto DEI
  631. Goto WINN
  632.  
  633. Lbl BAT
  634. If EA+(DEX/3)+20rand>42-ED
  635. Goto WINN
  636. Lbl DEI
  637. Disp "You DIE!"
  638. Pause
  639. ClLCD
  640. Stop
  641.  
  642. Lbl WINN
  643. Disp "VICTORY!","Good Job!"
  644. \STOP\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement