Hello!
(I apologize for the long post, but there's a lot to say...)
I want to make a tank game, where the player controls tanks. At first I went with the standard battle system, but it lacked the depth I wanted. Then there's GubiD's for RPGVXA, and while it is a great system, it hasn't been updated in a while and lacks some features that I need. Also I "ported" my project over to MV, so there's no scripted battle system like that available anymore at all.
I considered using normal existing Action Battle systems, but they weren't suitable for my intentions either. One thing that is important for me is that you can control the whole party, which requires a turn based system. It's also important that you can "shoot" enemies without touching them, which requires either a projectile system or some workaround. I don't want to use a projectile system, so I had to find the workaround.
Sooo I spent the last week trying to come up with something. My JS programming knowledge exists but is very limited, so coding everything myself wasn't really an option. I ended up using what feels like 300 different plugins and some heavy eventing and pieced together something... It's unflexible, it's buggy, and still lacks many features, but it works.
TL;DR: Existing battle systems don't do what I want to do, came up with my own. It's intended for use with tanks!
I don't want to make a video yet, but I can show you some screenshots and explain what it does. (All icons and graphics that aren't RTP were taken from World of Tanks..please don't sue me, I'll replace them if I ever actually release this.)
If people are interested and once I have made more progress with hunting down the bugs as well as implementing features, I can make a tutorial how to do this.
In any case, let's take a look at it:
The battle starts by triggering an event. This can be done by talking to an NPC, or entering a map, or any other way events can be triggered, basically. You just need one event that sets up the enemies and the party and informs the game that it should initiate "Battle Mode". Here, I just "talk" to the flame, and it sets up the required variables before sending me to another map where the battle will happen. It's not required to change the map. The current map could also be used as a battle map.
The enemies show up or activate and the party is divided into its individual actors. The player starts their first turn and is informed which actor's turn it is. The face and name are generated, so I don't have to hardcode the turns. (Please note that after taking these screenshots, I added little name popups to the enemies so it's more clear who is who.) All enemies and allies wait for their turn, so the current actor is the only one who moves during their turn.
There is a little action window on the top right corner of the screen, which informs you how many actions you have left in your turn. Attacking an enemy instantly drops the actions to 0. Here, the player moved. The actions are subtracted. (Arrow and white line added by me in GIMP for emphasis, they don't actually show up in the game)
If you get close enough to an enemy (here, it's 2 tiles...I will probably increase the distance), they will "spot" you. Now, a fire exchange is initiated.
(Please ignore the fact that "Ability" is cut off...I'm working on it.) Tanks can have different shell types and even abilities (like aiming for the tracks etc). Here, only HE shells are shown, but for example the second actor in the party can also use AP and APCR.The actor and the enemy both shoot once, then you return to the map. If you destroy the enemy with your shot, a loot window will be shown. Destroy all enemies on the map and the game will inform you of your victory and end the Battle Mode.
If the enemy destroys you, this actor will count as "fainted". There is no reviving during battles. If all of your actors faint, you lose the battle.
After this your actor's turn ends. It's now the first enemy's turn, aka the first enemy moves. Then it's the next actor's turn. Then the next enemy's, and so on...Fainted enemies and actors are skipped.
But wait, there's more!
There is also a "Balancing Mode". If the actor happens to be an SPG and isn't involved in a fire exchange, they can switch to Balancing Mode by pressing Shift. Now, the mouse turns into a reticle and you can click on any enemy on the map to attack them. The best thing? If they're not an SPG themselves, they can't shoot back. I plan on making this a bit less unfair, since in its current implementation it's pretty OP.
One last thing is states. There are currently four states: Tracked, On Fire, Fainted, and Camouflaged. On Fire means that your tank will lose HP, but it can't faint from it. Fainted means the actor is "dead" but it will leave them 1 HP so you don't get a game over. Camouflaged will reduce the radius in which enemies can detect you. You can achieve that by equipping a camo net. Tracked means that the tank can't move, but still shoot. If your tank is tracked, it will show "..." when its turn starts:
This can also happen to enemies. If it happens to all of your actors....well, I didn't think of that yet. In any case if you're tracked, you can only use Balancing Mode, continue a fire exchange, or skip your turn by pressing S. You can always press S if it's your turn by the way, and it will skip this actor.
And that's it so far, basically...
In review, the current features are:
- Unlimited number of enemies per battle
- Unlimited number of actors per battle
- Enemies change graphics and stats dynamically to reflect which enemy type they are
- Enemy stats and states are memorized between turns
- Turn based
- Battle happens mostly on the map
- You can use terrain to take cover, to avoid being spotted
- Attack enemies from the distance
- Battles can happen on separate or current map
- Balancing Mode activated by Shift
- Skip actor by pressing S
- Enemy prototype events: Only set them up once and reuse them for every battle
- Battle process is controlled by common events and spawned prototype events, means you only have to put one event on a battle map to handle everything
- And probably some stuff that I'm forgetting now
Some downsides:
- Enemy prototype events only have to be set up once but for every enemy type that you add, you have to modify each enemy prototype event. If you only have like 5 enemies per map, that's not a problem, but the more you want, the more tedious it gets. You also need a lot of switches and variables for them.
- Enemies and actors have to be placed in hardcoded positions when the battle starts. Not in the editor, but by an event that spawns them.
- A lot of work to set this all up
- You need a lot of plugins, so compability issues may arise
- Actor and enemy agi is only taken into account when you shoot each other. The turn oder always remains the same.
Planned features:
- Add enemy spotting mechanism - you can only attack and balance enemies that are "spotted" by you or your party members
- Include "extra moves", for example if you run away from a fire exchange, you can choose to move backward a step or two; or for example light tanks don't lose their action points when attacking
- Enable Balancing Mode for enemies?
- Make enemy and actor starting positions dynamic?
- Change turn order to go by actor and enemy agi instead of fixed order
- Make number of actions dependent on actor's/enemy's agi
- Implement reload times, so not every gun can be shot every turn
- Add more flexible enemy behaviours; currently every enemy prototype event moves in a certain hardcoded way
- ???
Credits for the plugins:
- Yanfly
- Galv
- pareidolon
- Soulpour777
- Hime
- Hudell
So, can anyone give me some feedback on this? Or do you have feature ideas?
🙂
And does anyone have a good way of keeping track of how many tiles a player has moved? My method is very buggy...