1
1

DH_Quest_NB.qsrc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # DH_Quest_NewBeginnings
  2. $dhQst_Current = 'NewBeginnings'
  3. if $ARGS[0] = 'Start':
  4. $dhQst_Title['NewBeginnings'] = 'New Beginnings'
  5. $dhQst_Started['NewBeginnings'] = True
  6. $dhQst_Finished['NewBeginnings'] = False
  7. $dhQst_QstLine['NewBeginnings_0'] = 'So Cold'
  8. $dhQst_QstLine['NewBeginnings_1'] = 'Alive?'
  9. $dhQst_QstLine['NewBeginnings_2'] = 'Part3'
  10. $dhQst_Progress['NewBeginnings'] = ''
  11. gt 'DH_Quest_<<$dhQst_Current>>', 'So Cold'
  12. end
  13. if $ARGS[0] = 'Complete':
  14. $dhQst_Finished['NewBeginnings'] = True
  15. end
  16. if $ARGS[0] = 'So Cold':
  17. $dhQst_Progress['<<$dhQst_Current>>'] = $ARGS[0]
  18. 'It all starts with a shiver. The shiver wakes you up, and, all of a sudden, you feel. You feel cold. So cold.'
  19. 'Then the pain sets in. The shiver makes you hit the ground, and the ground hurts! It hurts so much.'
  20. 'But that''s all there is, cold and pain. Pain and cold.'
  21. 'No, that isn''t right. There''s one more feeling. But it''s slipping away. Fast.'
  22. 'Oh! Another feeling, is it... laughter? Right, you feel like laughing! Haha, that''s right, the one slipping away is your sanity. Haha.'
  23. 'Desperately, you try to latch onto something. Anything. Oh, your name! Err... What was your name, again?'
  24. $act_GetName = {
  25. $_playerName = input("What was my name?")
  26. $_playerName = iif($_playerName = '', 'Ash', $_playerName) &! Default name.
  27. !! Check if valid name
  28. FUNC('DH_Character', 'Delete', 'Player')
  29. FUNC('DH_Character', 'Create', 'Player', $_playerName)
  30. gt 'DH_Quest_NewBeginnings', 'Alive?'
  31. }
  32. ACT 'My name..?': DYNAMIC $act_GetName
  33. ACT 'Exit Game': gt 'Komp', 'start'
  34. end
  35. if $ARGS[0] = 'Alive?':
  36. $dhQst_Progress['<<$dhQst_Current>>'] = $ARGS[0]
  37. !!TODO: Give a different response for special names
  38. $_specialNameMsg = 'Yes. Your name was <<$_playerName>>. Not that it matters though, you''re already half-mad, after all.'
  39. $_specialNameMsg_[0] = 'WinkyFace ;)'
  40. if $_playerName = 'WinkyFace': $_specialNameMsg = $_specialNameMsg_[0] & end
  41. $_specialNameMsg
  42. 'Really, if it weren''t for that incessant ringing, you''d have long lost your- Wait, ringing..?'
  43. 'A burst of white light appears, the ringing gets louder and you finally feel. You feel alive.'
  44. 'You struggle to open your eyes just a bit wider, but the more you see, the more pain you feel. And the more your head aches.'
  45. 'Without warning you feel something drop onto your left eye. The sudden attack makes you flinch, and you knock your head against something hard.'
  46. 'Mentally, you shout in pain, but all that escapes your parched throat is a weak groan.'
  47. 'When you open your eyes once again, the left''s vision is slightly red, and you feel a wetness just above your brow.'
  48. 'Reaching up you find your hand covered in blood. A head injury, is it the cause of your amnesia? Or something else...'
  49. 'You try looking around but there''s too much dust. On top of is a wooden beam, did it fall from the ceiling?'
  50. 'You are trapped.'
  51. !! Warrior
  52. _pushBeamCount = 0
  53. act 'Attempt to push the beam.':
  54. _pushBeamCount += 1
  55. if _pushBeamCount = 3 and dhCh_Str['Player'] = 1:
  56. 'Despite your pain, you clench your teeth hard, and hope for the best in what can only be described as a retarded decision.'
  57. 'But against all odds, you succeed! It''s hard to believe it, and even you''re not quite sure where you pulled that last ounce of strength from, but you did it.'
  58. 'With haste, you push the sturdy beam off of you, freeing yourself from captivity.'
  59. gs 'DH_Classes', 'ChangeClass', 'Player', 'Warrior'
  60. CLA
  61. ACT 'Stand Up': gt 'DH_Quest_NewBeginnings', 'Path of the Warrior'
  62. elseif _pushBeamCount = 1 and dhCh_Str['Player'] >= 2:
  63. 'You didn''t notice it before but you feel... strong. Powerful. Nothing can get in your way!'
  64. 'It must be some sort of miracle, an huge feat of strength, but with a single hand you pick up and toss the heavy beam across the room.'
  65. 'The large movement causes more destruction in your surroundings, but you simply don''t care.'
  66. 'When a loosened stone block falls towards you, you just knock it away with a casual swipe.'
  67. 'You''re not sure why, but you get the feeling you''d look even cooler with a pair of Sunglasses right now.'
  68. 'With the beam gone, you''ve freed yourself from captivity.'
  69. gs 'DH_Classes', 'ChangeClass', 'Player', 'Warrior'
  70. CLA
  71. ACT 'Stand Up': gt 'DH_Quest_NewBeginnings', 'Path of the Warrior'
  72. elseif _pushBeamCount = 100:
  73. 'They say perseverance is also a type of strength, and it seems to be true.'
  74. 'Through sheer effort, you manage to push the wooden beam off of you, freeing yourself from captivity.'
  75. ''
  76. 'Strength + 1'
  77. gs 'DH_Character', 'AddStat', 'Player', 'Strength', 1
  78. gs 'DH_Classes', 'ChangeClass', 'Player', 'Warrior'
  79. CLA
  80. ACT 'Stand Up': gt 'DH_Quest_NewBeginnings', 'Path of the Warrior'
  81. else
  82. 'You attempt to push the beam away.'
  83. end
  84. end
  85. !! Ranger
  86. _waitDustCount = 0
  87. ACT 'Wait for the dust to settle.': gt 'Komp', 'start'
  88. !! Mage
  89. _shoutHelpCount = 0
  90. ACT 'You could also try calling for help.': gt 'Komp', 'start'
  91. ACT 'Exit Game': gt 'Komp', 'start'
  92. end
  93. if $ARGS[0] = 'Path of the Warrior':
  94. $dhQst_Progress['<<$dhQst_Current>>'] = $ARGS[0]
  95. 'I AM WARRIOR'
  96. end
  97. --- DH_Quest_NewBeginnings ---------------------------------