Need help with GTBS (Gain EXP on Counter, AI help)

Dr. Spacebar

Villager
Member
Joined
Aug 28, 2015
Messages
8
Reaction score
0
First Language
English
Primarily Uses
I've been using GubiD's Tactical Battle System and have run into three issues that will cause trouble down the line. I've searched the web and the related sites and even looked at the script, but couldn't figure anything out. If anyone can help me resolve these issues, I'd appreciate it greatly.


1: The script gives every battler a counterattack if the enemy attacking them is within their range, much like in Fire Emblem. When actors attack or use their skills, they gain EXP; however, when an actor counterattacks an enemy, they don't gain EXP for it. This is problematic if a high-exp boss is killed with a counterattack, and it makes more sense for counterattacks to grant EXP like regular attacks.


2: You can check friendly and hostile attack ranges, as expected in a tactical RPG. But, while friendly attack ranges will show the range of the target's skills if it is outside of their normal attack and movement ranges (for example, a mage with a 1-3 range spell and a 1-range attack), hostile skill ranges will not show up.


Fixed this by setting "if act.kind == 1" in [GTBS] Game_Enemy's attack_skill_range method to "if act.kind == nil". act.kind must not have been set. Weird.


3: GTBS comes with a means of customizing the AI, but no matter what option is selected, enemies sometimes refuse to approach their target if it's not in immediate range, instead randomly moving or (most of the time) just standing still. This includes enemies that can hit them from outside their attack range (like an archer over a wall). I would like a number of enemies to charge toward the nearest target.
 
Last edited by a moderator:

Dr. Spacebar

Villager
Member
Joined
Aug 28, 2015
Messages
8
Reaction score
0
First Language
English
Primarily Uses
Further thinking on #3: If I could get each enemy that isn't in range of anything to calculate the path it'd take to the nearest target if it had all the movement in the world (let's say 100), then go as far along that path as it could on each turn, that'd be great. Maybe I'll look into how the movement works when I'm less sleepy.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Karen: Hi, I have a condition that prevents me from wearing a mask. :)

Employee: Can you tell me what it is?

Karen: >:(
Feeling a little overwhelmed... There are so many things to do.
- Building a simple website for portfolio
- Setup *******
- Manage social media
There are so many things inside of these tasks :(
Meet the cute little ghost, FhooFhoo. :kaopride:
If anyone here is looking for another high-potential RPGMaker game--besides She Dreams Elsewhere--be sure to follow Lawmage Academy. Good social media presence will take that game far.
Lol, I was about to write a small tutorial and realized it would belong to the MZ section ....that does not exist yet.

Forum statistics

Threads
99,575
Messages
966,825
Members
131,231
Latest member
Bektos
Top