Random Encounter Indicator
Random Encounter IndicatorDifficulty: Beginner
Those of you who have played the classic RPG Legend of Dragoon already know what's up, but for the rest of you, welcome! This is a tiny little event I whipped together, and I wanted to share it with you all to add some dynamic to your random encounters. This system is built with the in game random-encounter system in mind, and there is plenty of room to add additional clauses to customize it even more.
Without further ado, let's begin!
-~-O-~-~-O-~-~-O-~-
Spoiler: Step 1Download this image and replace it with your Balloon.PNG
If you wanted to use your own graphics instead, we will be utilizing the User Defined Balloons 1, 2, and 3.Spoiler: Step 2We will be creating 2 Variables, and 2 Switches for this system to work:
Var: Randomizer - This is used to create a random number which will be used to calculate how many steps the player needs to take.
Var: Current Steps - This is used to obtain the current amount of steps the player has taken throughout the entire game - used for math purposes.
Switch: Random Encounter Link - This Switch will be assigned in each Troop tab as a Turn 0 event command, and serves to reset the Indicator after each encounter.
Switch: Encounter Enable - This is simply the On/Off switch for the entire system. If you wanted to disable the system (for a cut scene, for example) simply turn this switch off.Spoiler: Step 3Create a new event and set it up like in the picture below:
First, we disable the in-game encounters. Then, set Variable 1 to whatever you desire for the step count, but I decided to go with 30-60 steps for the first section. Next, set Variable 2 so that it is equal to Game Data -> Steps. Finally, we are going to add Variable 2 to Variable 1, therefore creating the limit we need to hit in order to reach the second stage of the encounter indicator. Simpy turn on Self Switch A, and move to the next step.Spoiler: Step 4Add a second page to your event and set it up like in the picture below:
Create a Loop - all of our eventing will be inside of it, starting with the first stage of our indicator (green gem). This system utilizes Balloon Icons - if you downloaded the included image, set the Show Balloon Icon command to User-defined 1, followed by 60 frames of wait time. Next, we want to refresh the amount of steps that have been taken, and compare it to the limit we set earlier. So, set Variable 2 equal to Game Data -> Steps, then we will create a Conditional Branch to see if Variable 2 is greater than or equal to Variable 1.
If this is true, the player has hit the limit we set earlier. Once this happens, we will set a new limit for the second stage of our indicator (yellow gem). For this, I have chosen a random amount of steps between 15 and 30, half of the previous stage, to be assigned to Variable 1. I will once again set Variable 2 equal to Game Data -> Steps, then add that variable onto Variable 1 to create our new limit. Set the Self Switch B on, and move on to the next step!Spoiler: Step 5If you got through Step 4, this is going to be a cake walk! We are setting up the same exact event, except this time, once we hit our limit, we will turn Self Switch C on.
Spoiler: Step 6All we are going to do now is Enable Encounters, and show the final stage of the indicator (red gem). We're going to let the engine handle random encounters from here!
Spoiler: Step 7To finish off our event, we will create one last event page. This page has another condition attached to it, Random Encounter Link, which when turned on, will erase itself and all the Self Switches attached to the Indicator event, resetting the system.
Spoiler: Step 8We're on the home stretch now - most of the eventing has already been done! Now, we will be tying in the encounters on the map, and the troops in our database. First, open the map in which you want to have encounters, and make sure to assign all of your troops accordingly! In the Encounter field, I wrote in 8 steps - you can place what you like, however I recommend a low number since the the player has already had anywhere from 45-90 steps without a battle thus far.
Spoiler: Step 9Next, we want to ensure that each of our troops have the clause to reset our Random Battle Indicator back to stage one. This can be done rather simply by creating a Battle Event on Turn 0 that turns our Random Encounter Link Switch on. Follow the image below, and repeat for each troop!
Spoiler: FinishPat yourself on the back, you did it! Have fun running around raking in those random battles! I encourage you to mess around with this system, as there are many ways to build and improve upon it! You could create a system where the time between encounters increases and deceases depending on what time of day it is, or perhaps you could change which image is used for the indicator mid game, it's yours to discover. Have fun, and happy game designing!-~-O-~-~-O-~-~-O-~-
本贴来自国际rpgmaker官方论坛作者:GoodSelf处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/random-encounter-indicator.121102/
页:
[1]