Skip to content

Commit

Permalink
BatDungeon update
Browse files Browse the repository at this point in the history
  • Loading branch information
AstralSyntax committed Apr 8, 2024
1 parent 14ed9d9 commit aca17b9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
9 changes: 8 additions & 1 deletion QuestPackages/BatDungeon/Conversations/Steve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ conversation:
NPC_options:
welcome:
text: "Hey %player%! Welcome to the BatDungeon tutorial quest! This quest will give you an example of teleporting a player, killing mobs, and using variables!"
pointer: continue
npcCont:
text: "Head over to the BatDungeon Quest Package and head to the package.yml file. you'll notice line 5,6,7 accept coords. Change these to the coords for your world before starting the quest please"
pointer: "acceptQuest,denyQuest"

player_options:
acceptQuest:
text: "Start Quest"
event: "startQuest"
denyQuest:
text: "Deny Quest"
text: "Deny Quest"
continue:
text: "&7(...)"
pointer: "npcCont"
7 changes: 6 additions & 1 deletion QuestPackages/BatDungeon/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ events:
teleportToCave: "teleport $caveLoc$" # We use the variable with '$variableName$' and we can use it in most event arguments.
teleportToNPC: "teleport $returnLoc$"
spawnBats: "spawn $batSpawn$ marked:targets"
startQuest: "folder"
startObj: "objective add killBats"
reward: "give diamond:1"

startQuest: "folder teleportToCave,spawnBats,startObj" # Folder events can run multiple pre defined events back to back. More on Folders here - https://betonquest.org/2.0-DEV/Documentation/Scripting/Building-Blocks/Events-List/#run-multiple-events-folder

endQuest: "folder teleportToNPC,reward"
2 changes: 2 additions & 0 deletions QuestPackages/BatDungeon/objectives.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
objective:
killBats: "mobkill BAT 5 notify events:endQuest"
8 changes: 4 additions & 4 deletions QuestPackages/BatDungeon/package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
npcs:
'0': "Steve"

variables:
caveLoc: "0;0;0;world" # X;Y;Z;world_name
returnLoc: "0;0;0;world" # X;Y;Z;world_name
batSpawn: "0;0;0;world BAT 5" # X;Y;Z;world_name MOBNAME amount
variables: # Variables are useful for a tons of things, here we use them basically like a config file, where the coords you set below will automatically be the ones used during the quest
caveLoc: "0;0;0;world" # X;Y;Z;world_name - Location of your Cave
returnLoc: "0;0;0;world" # X;Y;Z;world_name - Location of your NPC
batSpawn: "0;0;0;world BAT 5" # X;Y;Z;world_name MOBNAME amount - Spawn Bats location and amount

0 comments on commit aca17b9

Please sign in to comment.