RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[Resolved]Storing Event (x,y) in a variable?

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 88
Something something events
Project of the Month winner for December 2008
Usually I can figure things out on my own but ever since I switched to RMVX I can't seem to figure this out. I'm working on a CBS that is completely evented (no scripts) and I've gotten a lot of things done, but now it's time to do the Enemy AI...  :-[  Most my battle system will require event (x,y) vs event (x,y) to be able to make an AI event code, melee range code, and so forth. Here is the video of what I have so far, but as you can see it doesn't shift over from turn 1 to turn 2 because I still have yet to do the Orc AI lol

http://www.youtube.com/watch?v=ogMiP9z_hCc

Any advice would be very much welcomed.

If you want a more detailed report on what the battle system is (or what I want to make it be) it's just below.

Spoiler for:
Alright, so when you encounter an enemy it will take you to a battle map with similar traits of the area you are in. So if you run into an enemy in a mountain area this is what the battle field might look like. This will let me be able to customly make the battle maps with the map tiles (much easier).

Now battle wise, when it comes to your player's turn you will gain controle of that ally/player. Each character will have a set amount of "Move" (MOV) each turn. e.g. Lynn can move 4 spaces each turn. If you move foward THEN backwords it still counts as moving so make sure you carefully make up your mind when moving. Now lets say Lynn moved 2 times and is now infront of the enemy. When you open up your abilities menu you will notice something a bit different then some games.

Lynn is engaged to the enemy and she has 2 MOV left. When you open up your ability menu it might look something like this:
[Spinning Slash (MOV)1  {AP}3]
[Vortex Whirl (MOV)3  {AP}6]
[Demonic Dive (MOV)4  {AP} 12]
Lynn has already used up 2 MOV reaching the enemy, so the only ability she can use in this same turn is Spinning Slash as it only takes 1 MOV to use. (Note: After you use an ability you can not continue moving, your turn will be done even if you have MOV left). So if you stay in the same spot and your next turn comes around and the monster is still in range you will have the option to use Demonic Dive assuming you have enough AP. Each turn you will regain AP but it won't be enough where you can spam abilities. Some characters will have more or less MOV then Lynn. Magic users follow a different fighting style.

For magic users, since magic is already long range, at the end of thier turn, the remaining MOV they have will be channeled back to thier MP. If they move so they can get in range for magic, then that means you get less MP back at the end of the turn. Magic users will not regain MP at the begining of thier turn.

EDIT: *Face-palm* Found it... I tend to fail at looking REALLY hard at some options in the variable control window.
« Last Edit: October 18, 2008, 07:54:28 AM by HowlingWinds »