I know, I know.
Okay, say that the regional map consists of a village (your home base) and a deep cave filled with monsters. Whenever you want to go to the cave, you have to go through a forest that has already claimed the lives of many adventurers.
So we'll say that there's a 60% chance of a random encounter in the forest. The first thing that your script will need to do is to roll a d100 and set the result in a variable that we will call 'Roll to determine if there is an encounter'.
Next we need to create the actual encounters. Say we want to have six possible encounters in the forest: a group of five orcs and a troll, a group of seven human cutthroats, a single hill giant, a group of three ghouls, a pack of five wolves, and if you're really unlucky, two hill giants and a bear.
So you start with the forest map background and you place the monsters of the first encounter in it. You set them to act as a group. Then you tell the editor to hide that group. Now you place the monsters of the second encounter. And so on, until you've placed all six encounters.
There are six possible encounters, so the second thing that your script will need is to roll a d6 and record the result in a variable that we will call 'Number of the selected encounter'.
After creating these two variables, your script will look if the 'Roll to determine if there is an encounter' is below 60. If yes, there's an encounter. If not, the script ends and the party can keep moving through the forest.
If there's an encounter, then you have a series of six checks, one for each possible value of the 'Number of the selected encounter' variable.
If the variable is one, you teleport the party to the forest map, you set the monster group of five orcs and a troll as visible, and you display a dialogue 'The party is facing a group of savage orcs led by a Troll!'. That's it for this check.
If the variable is two, you teleport the party to the forest map, you set the monster group of human cutthroats as visible, and you display a dialogue 'The party is under attack by a group of human cutthroats!'. And so on.
You also have to decide whether these encounters respawn or if they are a one-time affair only. If they respawn, you have to tell the script to heal the monster group before unveiling it.
If they don't respawn, then the script needs one more variable called 'Have all the random encounters been defeated'. The script ends if this variable has been set to 1 (true). If not, the script needs to check if the selected monster group has been defeated before. If that's the case you increment the 'Number of the selected encounter' and check again, until the script finds a monster group that has not yet been defeated.
we can create world maps then. How will it work? We must use a .png image for it or? What can we do in the toolset with regard to world maps? Placing site locations and stuff?
Yes, you need a JPG or PNG image for a regional map or world map. Yup, you can place important sites on the map. Thank you!!
