MV More ideas for attacks in Chrono engine ABS

Chrono engine ABS is a plugin that allows real time combat in RPG Maker, and i am already implementing some different ideas for attacks, more than the plugin offers. For example i made one attack that leave a pool of poison in the ground for some seconds, dealing damage multiple times as long the player is adove it.

Like the last time, i have more ideas for attacks i would like to know how to do, and also ask for how to make possible a few ones i´m going to explain.

  1. A homing projectile towards the enemy. Something like Great Oracular Bubble from Elden ring. A slow but very powerful projectile that follow the enemy you targeted. Here would be the nearest enemy.
  2. A projectile that splits into more projectiles at certain distance, something similar to Genie´s or Brom´s attacks from Brawl Stars, if you know what i´m talking about. Like a single projectile splitting into 3 in a cone-shaped range, or other that split in four in a cross-shaped attack.
  3. A cone-shaped attack that deals more damage the closer you are to the enemy. Something like a shotgun shooting 5 bullets, and if you are in meele range, you take damage from the 5, but if you are far away, you take damage from less bullets.
  4. A projectile that deals a small amount of damage when it lands, and then sticks to the enemy for a short amount of time before exploding, an explosive bolt.
Maybe i come out with more ideas, but those are the ones i have.
Are you using Altimit (Cross Engine)?
Are you using Altimit (Cross Engine)?
Yes.
If you want a bullet to home in on the player and chase him/her around put
Code:
this.shootPastPlayer(1,0,0.2);this.rotFaceTarg();
in its moveroute and set it to repeat.
This will only work in Cross Engine as those are Cross Engine functions.
If you want a bullet to home in on the player and chase him/her around put
Code:
this.shootPastPlayer(1,0,0.2);this.rotFaceTarg();
in its moveroute and set it to repeat.
This will only work in Cross Engine as those are Cross Engine functions.
And how it would be if is the player who use the attack? And the attack has to chase an enemy?
And how it would be if is the player who use the attack? And the attack has to chase an enemy?
See this is where it gets far more complicated because you're getting into intermediate scripting. You would use a script to go through every event on the map, filter it by instance of Game Enemy, then also check the distance between the player and each of those events until you find the one with the shortest distance, and set it as the target (you have to determine how to do this as the scripter, there's multiple ways and no "right answer"). Then use this.tLoc(target.x,target.y) instead of shootPastPlayer
See this is where it gets far more complicated because you're getting into intermediate scripting. You would use a script to go through every event on the map, filter it by instance of Game Enemy, then also check the distance between the player and each of those events until you find the one with the shortest distance, and set it as the target (you have to determine how to do this as the scripter, there's multiple ways and no "right answer"). Then use this.tLoc(target.x,target.y) instead of shootPastPlayer
That seems complicated, how would be that script that checks the events and the distance?
There is a distance checking script built into Cross Engine, distanceToPoint(x,y)

You would use it like
Code:
$gamePlayer.distanceToPoint(target.x,target.y)
There is a distance checking script built into Cross Engine, distanceToPoint(x,y)

You would use it like
Code:
$gamePlayer.distanceToPoint(target.x,target.y)
And where i put those scripts? In a common event? Or as a script in the movement route of the attack? Also, what do you suggest for the others?
I remembered there is a function $gameMap.allEnemiesOnMap() that will do the first half of what I said that will make this easier. What do you want the bullet to do if there is no enemy on the map?
I remembered there is a function $gameMap.allEnemiesOnMap() that will do the first half of what I said that will make this easier. What do you want the bullet to do if there is no enemy on the map?
It would just move forward. The idea is to create a projectlie that chase the enemy for around 20 seconds and then explodes, and if don´t touch any enemies in those 20 seconds, the projectile explode anyways.
A projectile that splits into more projectiles at centain distance, something similar to Genie´s or Brom´s attacks from Brawl Stars, if you know what i´m talking about. Like a single projectile splitting into 3 in a cone-shaped range
I was able to do this with these settings
1737322157866.png


1737322189019.png
I was able to do this with these settings
View attachment 329349

View attachment 329350
Captura de pantalla 2025-01-19 214444.png
Captura de pantalla 2025-01-19 214603.png


I have something wrong? Because i have an error. Also, what "tool_flamethrower" do?
I have something wrong? Because i have an error. Also, what "tool_flamethrower" do?
What is the error. The flamethrower is a function added in Cross Engine that offsets the tool forward in a random range, i.e. it sprays it forward randomly like a flamethrower.
What is the error. The flamethrower is a function added in Cross Engine that offsets the tool forward in a random range, i.e. it sprays it forward randomly like a flamethrower.
Captura de pantalla 2025-01-19 220158.png
Are all your Yanfly plugins in order and above Chrono Engine?
Are all your Yanfly plugins in order and above Chrono Engine?
You should have Yanfly before Altimit too. Chrono Engine, Cross Engine, and Altimit plugins should be in the order Restart had them in the Cross Engine demo or what he said in the first post of the Cross Engine thread
You should have Yanfly before Altimit too. Chrono Engine, Cross Engine, and Altimit plugins should be in the order Restart had them in the Cross Engine demo or what he said in the first post of the Cross Engine thread
Oh, im just dumb. I wrote the code incorrectly. I wrote Inacurate instead of Inaccurate. Just for a c didn´t worked. But i´m noticing that the projectiles pierce through the enemies, even when "tool_disable_piercing" is in the event".
A cone-shaped attack that deals more damage the closer you are to the enemy. Something like a shotgun shooting 5 bullets, and if you are in meele range, you take damage from the 5, but if you are far away, you take damage from less bullets.
This should be the same thing as the tool I just posted without the step forward commands.

Original thread: https://forums.rpgmakerweb.com/threads/more-ideas-for-attacks-in-chrono-engine-abs.174822/