MAKING A TACTICS-STYLED BATTLE SYSTEM IN VX...
Posts
Pages:
1
I'm building my own tactics (think Final Fantasy Tactics, etc.) combat system...so far, it's been going very smoothly, but I've hit a road block...
When the player selects the "Attack" option, I'd like the game to scan the tiles around them and see if an enemy is in them. If so, then they should be able to attack the enemy, or, if there's more than one adjacent enemy, they should be able to pick which to attack. If there are no adjacent enemies, the game should simply give a message that attacking isn't possible.
I'm completely at a loss at how to do this...Anyone got any ideas?
When the player selects the "Attack" option, I'd like the game to scan the tiles around them and see if an enemy is in them. If so, then they should be able to attack the enemy, or, if there's more than one adjacent enemy, they should be able to pick which to attack. If there are no adjacent enemies, the game should simply give a message that attacking isn't possible.
I'm completely at a loss at how to do this...Anyone got any ideas?
You need to store variables for each enemy on the map. Make two variables for each enemy. It needs to be 1 for their X and one for their Y. Do this also for the hero's X and Y. I'm assuming you know how to do these things, mostly because I'm being very lazy. So, now let's say we are making the system check if the hero can attack an enemy above him. Make a conditional branch check if the enemy's X is the same as the Hero's X, if that is true, then have it check that the enemy's Y value is 1 less than the hero's, then he can attack! if not, then he can not.
That's all I'm putting for now. There should be multiple tutorials for this on the internet somewhere.
That's all I'm putting for now. There should be multiple tutorials for this on the internet somewhere.
There should be multiple tutorials for this on the internet somewhere.
Any chance I could get pointed in the right direction? I checked Google and I couldn't find anything. ._.
Any chance I could get pointed in the right direction? I checked Google and I couldn't find anything. ._.
Try looking in the Development and Resource guide. You might find some tutorials for something like this in there.
http://www.rpgmaker.net/forums/index.php?topic=933.0
http://www.rpgmaker.net/forums/index.php?topic=933.0
Unless I wasn't looking in the right place, the Development And Resource guide doesn't point me towards a useful tutorial, either. ._.
Try out this site. I have gotten plenty of tutorials from this place so you might be able to find one here.
http://www.rpgrevolution.com/forums/?showforum=42
http://www.rpgrevolution.com/forums/?showforum=42
Pages:
1
















