-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from DRincs-Productions/80-improve-charanter-i…
…nto-commitment-and-conversation 80 improve charanter into commitment and conversation
- Loading branch information
Showing
20 changed files
with
391 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
init python: | ||
def add_conversation_choice(choice_character, choice_text: str, label_name: str, dict_choices: dict[str, list] = None) -> None: | ||
"""Wiki: https://github.com/DRincs-Productions/NQTR-toolkit/wiki/Conversation-system#add-an-talk-choice-in-default_label_talk """ | ||
if not dict_choices: | ||
dict_choices = conversations | ||
if (choice_character in dict_choices.keys()): | ||
dict_choices[choice_character].append((choice_text, label_name)) | ||
else: | ||
talk_choices = [] | ||
talk_choices.append((choice_text, label_name)) | ||
dict_choices[choice_character] = talk_choices | ||
del talk_choices | ||
return | ||
|
||
|
||
def del_conversation_choice(choice_character: str, choice_text: str, dict_choices: dict[str, list] = None) -> None: | ||
"""Wiki: https://github.com/DRincs-Productions/NQTR-toolkit/wiki/Conversation-system#delete-an-action-in-default_label_talk """ | ||
val = 0 | ||
if not dict_choices: | ||
dict_choices = conversations | ||
ch_to_del = choice_character | ||
for cur_choice in dict_choices[choice_character]: | ||
if cur_choice[0] == choice_text: | ||
ch_to_del = choice_character | ||
break | ||
else: | ||
val = val+1 | ||
dict_choices[choice_character].pop(val) | ||
del val | ||
del ch_to_del | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.