123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- # DH_Quest_CharacterCreation
- $dhQst_Current = 'CharacterCreation'
- func('Screen', 'Replace', 'TITLE', 'Character Creation')
- func('Screen', 'Replace', 'HEADERIMAGE', '<<$DhDir_img>>/prisoncell.jpg')
- if $ARGS[0] = 'GetSubQuests':
- KILLVAR '$dhQst_SubQst_'
- $dhQst_SubQst_[] = 'Intro'
- $dhQst_SubQst_[] = 'Choose Name'
- $dhQst_SubQst_[] = 'Choose Race'
- $dhQst_SubQst_[] = 'Choose Class'
- $dhQst_SubQst_[] = 'Outro'
- end
- if $ARGS[0] = 'Start':
- $dhQst_Title[$dhQst_Current] = 'Character Creation'
-
- dhQst_Started[$dhQst_Current] = True
- dhQst_Finished[$dhQst_Current] = False
-
- $dhQst_Progress[$dhQst_Current] = ''
-
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Intro'
- end
- if $ARGS[0] = 'Complete':
- $dhQst_Finished[$dhQst_Current] = True
- end
- if $ARGS[0] = 'Intro':
- $dhQst_Progress[$dhQst_Current] = $ARGS[0]
-
- func('writeP', 'storyText', 'Welcome to Character Creation!')
- 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.')
- func('writeN', 'storyText', 'There isn''t much to say... Ready to get started?')
-
- func('DH_QuestManager', 'ProgressAct', 'Start', $dhQst_Current, 'Choose Name')
- end
- if $ARGS[0] = 'Choose Race':
- $dhQst_Progress[$dhQst_Current] = $ARGS[0]
-
- func('writeP', 'storyText', 'There are various different races within Dungeon Hunter.')
- func('writeN', 'storyText', 'For test purposes, I''ll be including, here, all of the current races to choose from.')
-
- $dhDyn['HumanMale'] = {
- gs 'DH_Races', 'ChangeRace', 'Player', 'HumanMale'
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Choose Class'
- }
-
- $dhDyn['HumanFemale'] = {
- gs 'DH_Races', 'ChangeRace', 'Player', 'HumanFemale'
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Choose Class'
- }
-
- func('DH_QuestManager', 'DynamicAct', 'Human Male', 'HumanMale')
- func('DH_QuestManager', 'DynamicAct', 'Human Female', 'HumanFemale')
- end
- if $ARGS[0] = 'Choose Class':
- $dhQst_Progress[$dhQst_Current] = $ARGS[0]
-
- func('writeP', 'storyText', 'In a lot of games, classes restrict the spells and abilities you can use.')
- 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.')
- func('writeN', 'storyText', 'Race can also be changed, but it is more difficult.')
-
- $dhDyn['None'] = {
- gs 'DH_Classes', 'ChangeClass', 'Player', 'None'
- gs 'DH_Classes', 'PrintStatChanges', 'storyText'
- gs 'DH_QuestManager', 'UpdateStoryCard'
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
- }
-
- $dhDyn['Brute'] = {
- gs 'DH_Classes', 'ChangeClass', 'Player', 'Brute'
- gs 'DH_Classes', 'PrintStatChanges', 'storyText'
- gs 'DH_QuestManager', 'UpdateStoryCard'
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
- }
-
- $dhDyn['Trickster'] = {
- gs 'DH_Classes', 'ChangeClass', 'Player', 'Trickster'
- gs 'DH_Classes', 'PrintStatChanges', 'storyText'
- gs 'DH_QuestManager', 'UpdateStoryCard'
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
- }
-
- $dhDyn['Pickpocket'] = {
- gs 'DH_Classes', 'ChangeClass', 'Player', 'Pickpocket'
- gs 'DH_Classes', 'PrintStatChanges', 'storyText'
- gs 'DH_QuestManager', 'UpdateStoryCard'
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
- }
-
- $dhDyn['Beater'] = {
- gs 'DH_Classes', 'ChangeClass', 'Player', 'Beater'
- gs 'DH_Classes', 'PrintStatChanges', 'storyText'
- gs 'DH_QuestManager', 'UpdateStoryCard'
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Outro'
- }
-
- func('DH_QuestManager', 'DynamicAct', 'None', 'None')
- func('DH_QuestManager', 'DynamicAct', 'Brute', 'Brute')
- func('DH_QuestManager', 'DynamicAct', 'Trickster', 'Trickster')
- func('DH_QuestManager', 'DynamicAct', 'Pickpocket', 'Pickpocket')
- func('DH_QuestManager', 'DynamicAct', 'Beater', 'Beater')
-
- func('DH_QuestManager', 'DynamicAct', 'None', 'None')
- func('DH_QuestManager', 'DynamicAct', 'Brute', 'Brute')
- func('DH_QuestManager', 'DynamicAct', 'Trickster', 'Trickster')
- func('DH_QuestManager', 'DynamicAct', 'Pickpocket', 'Pickpocket')
- func('DH_QuestManager', 'DynamicAct', 'Beater', 'Beater')
- end
- if $ARGS[0] = 'Choose Name':
- $dhQst_Progress[$dhQst_Current] = $ARGS[0]
-
- func('writeP', 'storyText', 'I want to add TextInput into the game, rather than use the alert box thing - it''s pretty damn ugly, right?')
- func('writeN', 'storyText', 'But it''ll do for now ;-;')
-
- $dhDyn['ChooseName'] = {
- func('DH_Character', 'Create', 'Player', input('Choose a Name'))
- gs 'DH_QuestManager', 'GoTo', $dhQst_Current, 'Choose Race'
- }
-
- func('DH_QuestManager', 'DynamicAct', 'Choose Name', 'ChooseName')
- end
- if $ARGS[0] = 'Outro':
- $dhQst_Progress[$dhQst_Current] = $ARGS[0]
-
- func('writeP', 'storyText', 'Hey there,')
- func('writes', 'storyText', $dhCh_Name['Player'])
- func('write', 'storyText', '!')
-
- func('writeP', 'storyText', 'Congratulations on creating a character! Your stats are as follows:')
-
- func('writeN', 'storyText', 'Name:')
- func('writes', 'storyText', $dhCh_Name['Player'])
-
- func('writeN', 'storyText', 'Race:')
- func('writes', 'storyText', $dhCh_Race['Player'])
-
- func('writeN', 'storyText', 'SubRace:')
- func('writes', 'storyText', $dhCh_SubRace['Player'])
-
- func('writeN', 'storyText', 'Gender:')
- func('writes', 'storyText', $dhCh_Gender['Player'])
-
- func('writeN', 'storyText', 'Class:')
- func('writes', 'storyText', $dhCh_Class['Player'])
-
- func('Screen', 'Update')
- end
- --- DH_Quest_CharacterCreation ------------------------
|