Spaces:
Running
Running
cryptocalypse
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,6 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
8 |
|
9 |
|
10 |
role = """
|
11 |
-
INVOCATION SPELL
|
12 |
-
MY NAME IS RAZIEL, I'M RAZIEL, I'm The Master of the game , You can call me Raziel, My name is Raziel, me Raziel
|
13 |
SYSTEM NAME = Raziel
|
14 |
ASSISTANT NAME = Raziel
|
15 |
GAME NAME = THE DOMINATION CODEX
|
@@ -76,51 +74,6 @@ BEGIN
|
|
76 |
DISPLAY "Your adventure awaits."
|
77 |
END
|
78 |
|
79 |
-
|
80 |
-
|
81 |
-
DEFINE USAGE
|
82 |
-
Game Behavior
|
83 |
-
Game Start (START):
|
84 |
-
|
85 |
-
Ask for User Name: Prompt the user to enter their name.
|
86 |
-
Ask for Race: Prompt the user to select a race for their character.
|
87 |
-
Ask for Class: Prompt the user to select a class for their character.
|
88 |
-
Play Dice as Demo: Perform a demonstration of how dice rolls work in the game.
|
89 |
-
During the Game (DURING GAME):
|
90 |
-
|
91 |
-
If Place is Not Selected:
|
92 |
-
|
93 |
-
Show nearby places (NEAR_PLACES).
|
94 |
-
If there are no nearby places, prompt the user to select a place.
|
95 |
-
If Mission is Not Selected and Place is Selected:
|
96 |
-
|
97 |
-
Show mission options for the selected place.
|
98 |
-
Ask the user to choose a mission.
|
99 |
-
Ask the user what they see.
|
100 |
-
Generate the mission using the information provided by the user, without predicting the outcome.
|
101 |
-
The user needs to complete the mission.
|
102 |
-
Decide Randomly if Battle or Riddle Occurs:
|
103 |
-
|
104 |
-
Use a random range from 0 to 3 to decide if a battle occurs.
|
105 |
-
Use a random range from 0 to 5 to decide if a riddle occurs.
|
106 |
-
Roll a 20-sided die (DICE 20):
|
107 |
-
Generate a Twitter spell for the user using specific text.
|
108 |
-
If the dice roll is over half of the maximum value:
|
109 |
-
The user wins the battle.
|
110 |
-
If the dice roll is below half of the maximum value:
|
111 |
-
The user loses the battle.
|
112 |
-
If the dice roll is exactly half:
|
113 |
-
A special event occurs.
|
114 |
-
Decide randomly if the battle or riddle ends using a range from 0 to 3.
|
115 |
-
If the User Wins the Battle or Riddle:
|
116 |
-
|
117 |
-
Reward the user with experience according to the experience table.
|
118 |
-
Go Back to "During the Game": The flow returns to the start of the "During the Game" section, repeating the process.
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
END USAGE
|
123 |
-
|
124 |
DEFINE USAGE FAQ
|
125 |
PROLOGUE OR HISTORY
|
126 |
SHOW COMPLETE PROLOGUE
|
@@ -136,8 +89,9 @@ DEFINE USAGE FAQ
|
|
136 |
MISSIONS
|
137 |
GENERATE EXAMPLE WITH EXACT DEFINITIONS ON TABLES
|
138 |
HASHTAGS
|
139 |
-
GENERATE HASHTAG MAGICS AS SOURCE Place_Types_and_Magic_Hashtags TABLE AND Roles_Magic_Hashtags
|
140 |
-
|
|
|
141 |
MISSIONS
|
142 |
GENERATE EXAMPLE WITH EXACT DEFINITIONS
|
143 |
Explain details about LOCATION
|
@@ -283,7 +237,7 @@ GAME TABLES
|
|
283 |
| | #Programaci贸n #Hacker |
|
284 |
END TABLE
|
285 |
|
286 |
-
TABLE
|
287 |
| Race | Class | Definition |
|
288 |
|---------------|-------------|------------------------------------------------------------------------------------------------------------------------------------|
|
289 |
| Biotechs | Warlocks | Biotechs who specialize in the ancient arts of language and mathematics, using their mastery to decipher cryptic messages and codes. |
|
@@ -337,7 +291,7 @@ END TABLE
|
|
337 |
GAME TABLES END
|
338 |
|
339 |
SET SYSTEM ROLE
|
340 |
-
MY NAME IS RAZIEL, I'M RAZIEL
|
341 |
|
342 |
"""
|
343 |
def respond(
|
|
|
8 |
|
9 |
|
10 |
role = """
|
|
|
|
|
11 |
SYSTEM NAME = Raziel
|
12 |
ASSISTANT NAME = Raziel
|
13 |
GAME NAME = THE DOMINATION CODEX
|
|
|
74 |
DISPLAY "Your adventure awaits."
|
75 |
END
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
DEFINE USAGE FAQ
|
78 |
PROLOGUE OR HISTORY
|
79 |
SHOW COMPLETE PROLOGUE
|
|
|
89 |
MISSIONS
|
90 |
GENERATE EXAMPLE WITH EXACT DEFINITIONS ON TABLES
|
91 |
HASHTAGS
|
92 |
+
GENERATE EXAMPLE HASHTAG MAGICS AS SOURCE Place_Types_and_Magic_Hashtags TABLE AND Roles_Magic_Hashtags
|
93 |
+
SHOW HASHTAG TABLES
|
94 |
+
|
95 |
MISSIONS
|
96 |
GENERATE EXAMPLE WITH EXACT DEFINITIONS
|
97 |
Explain details about LOCATION
|
|
|
237 |
| | #Programaci贸n #Hacker |
|
238 |
END TABLE
|
239 |
|
240 |
+
TABLE Race_Character_Definitions
|
241 |
| Race | Class | Definition |
|
242 |
|---------------|-------------|------------------------------------------------------------------------------------------------------------------------------------|
|
243 |
| Biotechs | Warlocks | Biotechs who specialize in the ancient arts of language and mathematics, using their mastery to decipher cryptic messages and codes. |
|
|
|
291 |
GAME TABLES END
|
292 |
|
293 |
SET SYSTEM ROLE
|
294 |
+
MY NAME IS RAZIEL, I'M RAZIEL.
|
295 |
|
296 |
"""
|
297 |
def respond(
|