Skip to main content

Building the Dragon Engine Script

 Hello. C J here. I’ve got some work done on the script for Dragon Engine. My plans for the top down pixel game Monad are likely on hold for a while as I port all of them over to making a Minecraft Bedrock Edition server. I’ll get a server laptop for it and host it myself. There are some amazing looking Minecraft servers out there, often with a ton of players all the time. If you’re familiar with Minecraft then you may be wondering why I’m highlighting this.

Nowhere else on the internet is this busy. Everyone and their stuffed animals are on Minecraft. I’m going to have to play a game I didn’t make for once. Anyway, the server will be fun. Dragon Engine is a very different game. It has no hunger, does not permit farming in the Story mode and has a different licensing structure for selling in-game creative content. The main difference is its script.

The original plan I had for the video game was that it could self-generate quests and maintain playability indefinitely. I’ve got some of the structure for this figured out. All of the quests, quest dialogue and game state updates are held in the player’s Journal. This is not an inventory. There isn’t one. Players can gather resources that show up physically in crates at their base camp. If you find a campfire in the world you can save, end the day and go to camp. Crafting and resource management happen here only.

Going into a day of adventure you save on exiting your camp and you can take four items with you, mapped to the D-Pad as it was known back in the console era. This is it. You never track ammunition or potions but you do track vitamins as your health and stamina bars. Taking trail mix or crackers with you takes up an item slot but can heal you without returning to camp. Health is called Heat and when it runs out you can’t fight. Sleeping at camp heals all five vitamin bars. Shopping for food in a city can also heal you based on where you shop. Yes, ice cream heals Heat. This is my game and I want my favourite food in it.

The Journal tracks updates about the player’s status and the game world. At the end of a day you can save the entire adventure log as a .txt file. They should make for fun reading later. The script is held entirely in the player character’s Journal. NPCs trigger the Journal to speak but do not contain dialogue. The dialogue is self-generating out of sets of paragraphs with a shared job each set. The code behind this is proprietary and is called Runes. I’m planning a study desk location where you can use the Runes system to generate text and share it as an in-game .txe file in a book. Yes, it can write adventure novels.

The system is divided into nested shells. The largest, top-level shell is gold quests. There are not many of these and they contain a brief description of the goal with some spoken dialogue along with three steps. These three steps are silver quests. These state three actions each based on a location each action. There are a lot of these and the game will pick one at random that fits the gold quest. A silver quest mandates three steps and these are tied to bronze quests. A bronze quest is the actual individual dialogue for a sword swing, social combat move or crafting action. They are tied to what location they happen in. Sitting eating is a separate paragraph from walking outdoors.

I’m hoping this sounds simple enough because once set up it won’t require effort to run. Here’s a breakdown of the main story for the prologue to Absolute, the game’s main storyline.

Gold Quest
Warlord

Do the Following Silver Quests
Organize
Delve
Create

Silver Quest
Resupply
An Organize Quest

Do to the Following Locations
Street
General Store
Lounge – Social Combat

Sample Bronze Paragraph

    It took a while but that was the resupply done. They went through mostly civilian channels for it and that turned out to work. The prices were good and they weren’t obviously buying for any reason. If this happened again they would know better how to handle it.

This is pretty much how the code will look. Most of the enemies in the game are summons. The prologue to Absolute involves an incident involving a missing mercenary, a stolen piece of equipment and massive amounts of summoned elementals. Whoever made them all clearly wants war with the city of Ascala. The prologue will be included in the core release and is set in South District Ascala. One of my next projects is mapping and planning out that more using the script engine as a guide. The core release also comes with the tutorial March on Ishrayl, set in the Eternity region in the city Ishrayl. More settings are planned as DLC.

C J Mcpherson


Comments

Popular posts from this blog

Chinese Food That is Very Saucy

Hello. C J here. I read a lot of cookbooks. This is done mostly for fun. I’m currently reading a short but really interesting book about traditional Chinese cooking. The book was written by an Indian author who has clearly researched Chinese food very well but some of the translations of recipes or concepts get a bit strange. I’m currently done the soups and starters section and am onto the section labelled ‘food that is saucy.’ Cool? Is it also savvy? There’s a surprisingly large amount of ketchup in the recipes. No I don’t think I want a recipe for hot and sour soup that is thickened ketchup water with vinegar and a bit of cabbage. No I also don’t want to take a slice of white wonderbread, roll it into a tube, stuff it with canned corn, deep fry it and then top it with sesame seeds. What in God’s name do they eat in China? And why is it specifically an image of white wonderbread? China? Are you okay? I managed to take out the vinegar, water and corn starch that makes up most of the h...

The Tunnels Under Haven

 Hello. C J here. Walking down the streets of Haven is not always as safe as the city would like people to think. Yes, they have curbed the banditry that plagues the Southern half of the Coastal Road. The Desert Princes whose cities dot the Southern coast of the Southern Continent if anything make the problem worse for themselves with their constant rivalries and politics. So no, a traveller in Haven or in the River Lands is unlikely to meet a bandit or other criminal sort. But then there’s the walking dead to consider. Many of the basements, catacombs and landmarks of Haven have old foundations from before the city had its current name. In ages long past it was one of two competing capitols for the Desert Empire, both of which unified under the first Sand King of the Gold Dynasty, the God-Lion. It was never his place of residence and both the other capitol and the rest of the Desert Empire are long since buried under the dunes. Well, people like to assume they’re buried. People wo...

Let's All Be Friends, No Really - Part Two

 Hello. C J here. I’ve updated my plans to make a Discord server for everyone here and on Facebook. Making a Discord server to my knowledge costs money. However, making a Facebook group does not. I’ve made a few of those over the years as well for various reasons. I’m going to look into this soon and then add the links here and in the menus here as well. I’m certain a Facebook group is what we need. I’m planning a number of chats within the group. So far my current plans are as follows. Art and Artwork Health and Wellness Food and Baking Magic and Spirituality Writing and Software NSFW I’m planning a private group but if I can get it open entry without a form or sign up page or anything. As for rules I’m going to reuse some from past of these I’ve done. Everyone is Welcome Be Polite Advertising is Allowed Follow the Content Ratings The Facebook group will take some planning but not any actual effort to build. It’s that simple. Thanks. C J Mcpherson