

Adventurebook embedded in a page.
Adventurebook is a plugin that allows you to create interactive storybooks or roleplay-like adventure books on your WordPress site. With Adventurebook, you can craft engaging narratives where readers can make choices that influence the outcome of the story.
Key Features:
Whether you’re an author looking to publish interactive stories or a teacher wanting to create engaging learning materials, Adventurebook provides the tools you need to bring your narratives to life.
Get started today and captivate your audience with immersive storytelling!
See it in action:
The “Demoworld” Adventurebook is also included in the premium version of the plugin as demo content to help you get started.
When editing a book page, you can add choices by using the ‘Add Decision Option’ button at the bottom.
Each choice can link to another (existing) page in the book, allowing for branching narratives. Be sure to first create the target pages before linking them.
After having added a decision to a page, you can restrict the choice to characters that have a specific item.
This applies to Game-type Adventurebooks.
To do this, choose “Restriction Type” -> “Item” and then enter the code of the item that the character must have to be able to choose this option.
E.g. if you restrict a decision to the item with code “key_gold”, only characters that have this item in their inventory can choose this option.
[adventurebook_character_overview].[adventurebook id="X"], where X is the ID of your adventure book.Items are defined in the “Adventurebook Items” menu. Every item has a code, a name, a description, stats and an image.
The code is a unique human readable identifier for the item, e.g. “key_gold”.
Stats are depending on the chosen Combat System. In the free version, only the “Simple” combat system is available.
E.g. a longsword could be defined by:
Creatures are defined in the “Adventurebook Creatures” menu. Every creature has a code, a name, a description, hostility, attackability, xp value, stats, loottable and an image.
The code is a unique human readable identifier for the creature, e.g. “goblin”.
Stats are depending on the chosen Combat System. In the free version, only the “Simple” combat system is available.
E.g. a goblin could be defined by:
The loottable defines which items the creature can drop when defeated. The format is:
item_code:chance:min_amount:max_amount
E.g. sword_longsword:20:1:1 means that the creature has a 20% chance to drop 1 longsword when defeated.
For gold/money, use the item code “money”.
E.g. money:100:5:15 means that the creature will always drop between 5 and 15 gold when defeated.
To make the plugin more flexible, different combat systems can be chosen.
Currently, only the “Simple” combat system is available in the free version.
In the “Simple” combat system, the currency is set to “Gold”.
Character Stats for the “Simple” combat system are:
internal use only:
* initiative (Defaults to 0)
* attack (Defaults to 0)
* armor (Defaults to 0)
* defense (Defaults to 0)
Creature Stats for the “Simple” combat system are:
Item Stats for the “Simple” combat system are:
Value
how much (Gold) the item is worth when selling it to a shop
Armor
how much armor the item provides when equipped
Damage
how much damage the item provides when equipped
Slot
if the slot of an item matches any slot of a character, the item can be equipped by the character.
In the Simple Combat System, the available slots are ‘Weapon’, ‘Shield’ and ‘Armor’. Only one item can be equipped per slot.
Examples:
If a player has a leather armor equipped, his armor stat is 3.
If he equips the chain mail, the leather armor will be unequipped and the armor stat will be 7.
Damage dealt: Damage Value (Attacker) – Armor Value (Defender), minimum 1 damage.
The following information is for the Adventurebook Type “Game”.
Item Definitions (table _adventurebook_item_definitions)
Every item in the world/game has a definition. The definition is stored in the table _adventurebook_item_definitions.
The definition contains non-mutable information about the item.
idcode (unique human readable identifier, used for restrictions e.g.)namedescriptionstatsimage-urlItem Spawns (table _adventurebook_item_spawns)
Defines a spawn point for an item. The spawn point is a zone.
When a new character is created, all items that have a spawn point will be added to the zone (page).
item_idpage_idItems (table _adventurebook_items)
Defines an item that a character can find in his adventure.
idcodecharacter_idlocation_idScripts (table _adventurebook_scripts)
Defines a script that can be attached to a page and is executed when the page is visited / reloaded.
idcode (unique human readable identifier, used to attach the script to a page)name (will not be displayed to the user)commands (the commands that will be executed, array in json format)Scripts can be attached to book pages and are executed when the page is visited / reloaded, e.g. each time the user clicks on a decision that leads to this page,
or when attacking, equipping, unequipping, buying, selling, using an item.
A script can be attached to an adventurebook page by selecting the script in the “Script” dropdown on the page edit screen.
Every script line needs a unique key (it is a jumpmark).
The second input field is the command. The third input field is optional and can contain parameters for the command, usually separated by “|”.
The following script commands can be used in a script.
output text
Outputs the given text to the user. Supported placeholders:
output text|text color
Outputs the given text to the user in the given color. Color can be a color name (e.g. “red”) or a hex color (e.g. “#ff0000”).
show_key_link text|key
Outputs the text as a clickable button and links it to a certain key in the script.
add_item item_code
Gives the item with the given code to the character.
remove_item item_code
Removes the item with the given code from the character.
if_item_is_here_goto item_code|key
If the item with the given code is in the current location, jump to the given key in the script.
heal amount
Heals the character by the given amount. If the amount is -1, the character will be fully healed.
stop
Stops the execution of the script and sets the key to 0, so that the script will be executed from the beginning the next time the page is visited.
100 output A wooden bench is here.
110 showkeylink Sit down and take a rest|200
120 stop
200 output You sit down on the bench and take a rest. You feel better.|green
210 heal 10
220 stop
Note: The premium version of the plugin comes with different premade scripts.