DH_Quest_CharacterCreation.qsrc 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. # DH_Quest_CharacterCreation
  2. $dhQst_Current = 'CharacterCreation'
  3. func('Screen', 'Replace', 'TITLE', 'Character Creation')
  4. func('Screen', 'Replace', 'HEADERIMAGE', '<<$DhDir_img>>/prisoncell.jpg')
  5. if $ARGS[0] = 'GetSubQuests':
  6. KILLVAR '$dhQst_SubQst_'
  7. $dhQst_SubQst_[] = 'Intro'
  8. $dhQst_SubQst_[] = 'Choose Name'
  9. $dhQst_SubQst_[] = 'Choose Race'
  10. $dhQst_SubQst_[] = 'Choose Class'
  11. $dhQst_SubQst_[] = 'Outro'
  12. end
  13. if $ARGS[0] = 'Start':
  14. $dhQst_Title[$dhQst_Current] = 'Character Creation'
  15. dhQst_Started[$dhQst_Current] = True
  16. dhQst_Finished[$dhQst_Current] = False
  17. $dhQst_Progress[$dhQst_Current] = ''
  18. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Intro'
  19. end
  20. if $ARGS[0] = 'Complete':
  21. $dhQst_Finished[$dhQst_Current] = True
  22. end
  23. if $ARGS[0] = 'Intro':
  24. $dhQst_Progress[$dhQst_Current] = $ARGS[0]
  25. func('writeP', 'storyText', 'Welcome to Character Creation!')
  26. func('writeN', 'storyText', 'This is a test location. Character Creation will be completed through various story choices rather than from a Character Creator like this.')
  27. func('writeN', 'storyText', 'There isn''t much to say... Ready to get started?')
  28. func('DH_QuestManager', 'ProgressAct', 'Start', $dhQst_Current, 'Choose Name')
  29. end
  30. if $ARGS[0] = 'Choose Race':
  31. $dhQst_Progress[$dhQst_Current] = $ARGS[0]
  32. func('writeP', 'storyText', 'There are various different races within Dungeon Hunter.')
  33. func('writeN', 'storyText', 'For test purposes, I''ll be including, here, all of the current races to choose from.')
  34. $dhDyn['HumanMale'] = {
  35. gs 'DH_Races', 'ChangeRace', 'Player', 'HumanMale'
  36. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Choose Class'
  37. }
  38. $dhDyn['HumanFemale'] = {
  39. gs 'DH_Races', 'ChangeRace', 'Player', 'HumanFemale'
  40. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Choose Class'
  41. }
  42. func('DH_QuestManager', 'DynamicAct', 'Human Male', 'HumanMale')
  43. func('DH_QuestManager', 'DynamicAct', 'Human Female', 'HumanFemale')
  44. end
  45. if $ARGS[0] = 'Choose Class':
  46. $dhQst_Progress[$dhQst_Current] = $ARGS[0]
  47. func('writeP', 'storyText', 'In a lot of games, classes restrict the spells and abilities you can use.')
  48. func('writes', 'storyText', 'In Dungeon Hunter, however, classes only affect stats. Your class can also be changed at any time if you have the required items.')
  49. func('writeN', 'storyText', 'Race can also be changed, but it is more difficult.')
  50. $dhDyn['None'] = {
  51. gs 'DH_Classes', 'ChangeClass', 'Player', 'None'
  52. gs 'DH_Classes', 'PrintStatChanges', 'storyText'
  53. gs 'DH_QuestManager', 'UpdateStoryCard'
  54. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
  55. }
  56. $dhDyn['Brute'] = {
  57. gs 'DH_Classes', 'ChangeClass', 'Player', 'Brute'
  58. gs 'DH_Classes', 'PrintStatChanges', 'storyText'
  59. gs 'DH_QuestManager', 'UpdateStoryCard'
  60. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
  61. }
  62. $dhDyn['Trickster'] = {
  63. gs 'DH_Classes', 'ChangeClass', 'Player', 'Trickster'
  64. gs 'DH_Classes', 'PrintStatChanges', 'storyText'
  65. gs 'DH_QuestManager', 'UpdateStoryCard'
  66. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
  67. }
  68. $dhDyn['Pickpocket'] = {
  69. gs 'DH_Classes', 'ChangeClass', 'Player', 'Pickpocket'
  70. gs 'DH_Classes', 'PrintStatChanges', 'storyText'
  71. gs 'DH_QuestManager', 'UpdateStoryCard'
  72. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
  73. }
  74. $dhDyn['Beater'] = {
  75. gs 'DH_Classes', 'ChangeClass', 'Player', 'Beater'
  76. gs 'DH_Classes', 'PrintStatChanges', 'storyText'
  77. gs 'DH_QuestManager', 'UpdateStoryCard'
  78. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
  79. }
  80. func('DH_QuestManager', 'DynamicAct', 'None', 'None')
  81. func('DH_QuestManager', 'DynamicAct', 'Brute', 'Brute')
  82. func('DH_QuestManager', 'DynamicAct', 'Trickster', 'Trickster')
  83. func('DH_QuestManager', 'DynamicAct', 'Pickpocket', 'Pickpocket')
  84. func('DH_QuestManager', 'DynamicAct', 'Beater', 'Beater')
  85. func('DH_QuestManager', 'DynamicAct', 'None', 'None')
  86. func('DH_QuestManager', 'DynamicAct', 'Brute', 'Brute')
  87. func('DH_QuestManager', 'DynamicAct', 'Trickster', 'Trickster')
  88. func('DH_QuestManager', 'DynamicAct', 'Pickpocket', 'Pickpocket')
  89. func('DH_QuestManager', 'DynamicAct', 'Beater', 'Beater')
  90. end
  91. if $ARGS[0] = 'Choose Name':
  92. $dhQst_Progress[$dhQst_Current] = $ARGS[0]
  93. func('writeP', 'storyText', 'I want to add TextInput into the game, rather than use the alert box thing - it''s pretty damn ugly, right?')
  94. func('writeN', 'storyText', 'But it''ll do for now ;-;')
  95. $dhDyn['ChooseName'] = {
  96. func('DH_Character', 'Create', 'Player', input('Choose a Name'))
  97. gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Choose Race'
  98. }
  99. func('DH_QuestManager', 'DynamicAct', 'Choose Name', 'ChooseName')
  100. end
  101. if $ARGS[0] = 'Outro':
  102. $dhQst_Progress[$dhQst_Current] = $ARGS[0]
  103. func('writeP', 'storyText', 'Hey there,')
  104. func('writes', 'storyText', $dhCh_Name['Player'])
  105. func('write', 'storyText', '!')
  106. func('writeP', 'storyText', 'Congratulations on creating a character! Your stats are as follows:')
  107. func('writeN', 'storyText', 'Name:')
  108. func('writes', 'storyText', $dhCh_Name['Player'])
  109. func('writeN', 'storyText', 'Race:')
  110. func('writes', 'storyText', $dhCh_Race['Player'])
  111. func('writeN', 'storyText', 'SubRace:')
  112. func('writes', 'storyText', $dhCh_SubRace['Player'])
  113. func('writeN', 'storyText', 'Gender:')
  114. func('writes', 'storyText', $dhCh_Gender['Player'])
  115. func('writeN', 'storyText', 'Class:')
  116. func('writes', 'storyText', $dhCh_Class['Player'])
  117. func('Screen', 'Update')
  118. end
  119. --- DH_Quest_CharacterCreation ------------------------