GTBS v1.5.1.4 - A FFT Styled Battle System (5/19/2010)

I keep thinking of things after I post, but have you ever considered making this a two player thing? I mean instead of your traditional story driven TRPG, I can easily set up events so that a player can pick his army now, it would be kinda fun to make it team based for turns and have it two player.
Ok, well I wrote a few events a few different ways, I told it to add actor 5 and added a text display to make sure it worked. Well I get the text but no character. If someone could please give me an event that will make this work it would be welcome. Thank you.


It's been about 6 months since I've toyed with RMXP, my trial ran out and I just recently bothered to purchase the full version. Thanks for all your help.
Ok... first use the edit button if you want to add something to your previous post unless its days later and no other responses have come in.

There is no way to figure height easily in 2d, but in 2.5d(iso) then its is much easier.  That is the main reason why it wont be included for 2d. 

I havent thought of this for a 2 player setup, although it wouldnt be hard.  Problem is I am guessing you want them to be at another machine.  Being as I dont know net+ and so on, I dont see that being done any time soon.  If its not over the network and you want to do it in a "hot seat" style, you simply need to remove the call to the AI and update how you assign enemies and actors.

Not sure what you are trying to do exactly.  Can you be a little more descriptive on your problem?
Update 1.3 released!  See the main page for details.
All I can say is exceptional job Gubid, especially the Isometric and Gravity portions.

Could you elaborate more on making it 2 player? "hot seat" is good, and it wouldn't be extremely hard to make another set of controls for p2 (at least for me). Hmm, come to think of it, make another neutral team and you got 4 players...
God this is one mighty script. There are a few things however that I have to point:
1) When changing from diagonal to regular map scrolling, there are a few frames that are skipped. Dunno where that came from.
2) This script isn't compatible with the SDK. Make it likewise, and we have a winner.
3) This is more of a personal request. If this was compatible with the Pixelmovement script (not yours, the other one), that would rule big time. That, or add functions to yours (which isn't really yours, just the one you use on the pixelmovement script), like more frames per direction, and the jump and dash functions (each with their own sprites, say you press dash, and the sprite changes to sprite_dash, or sprite_jump acordingly).

If you resolve these three issues, I'll be your slave. Until then, you're just my hero!
First... it is compatible with SDK, but must be placed BELOW the SDK, otherwise the SDK rewrites my methods.

1. I didnt notice the frame skips, but that is basic eventing, so I am not sure what happened there.
2. Look above..
3. To be honest I didnt test the full use of the pixel movement script for iso or regular, simply because those methods were redefined.  I can make them capatable in about 5 min or less I am sure.  Just need to make a new method that uses the old default method instead of the pixel movement method for movement.

I guess I will have to look into Net+ and see what I can find.  It would be cool to make it 2 player capable, but that is quite a ways down the road. 

I am going to set the TBS asside for a little while and work on my other projects, but I will return to it, so be sure to leave some good suggestions and report anything that doesnt seem to work. 

Thanks again everyone for your comments.  Please report any problems you encounter and of course, comments are always welcome.
What I meant regarding the first point was the following. Suppose your pixelmovement script is activated. When I am walking right, and then walk right/up, there is a slight frame skip, or so it seems. Try it yourself to see if it does that. At least, it seemed to happen that way for me. If you can add those functions to the pixelmovement script, you rock. By the way, when I'm in iso maps, and the 8-dir is activated, I would like to press up and go up, not press up and go right/up (if you know what I mean). And since I'm requesting so much things, I'll add another one... the passability zmaps. Because, with pixelmovement activated, there are some tiles where you are supposed to go around a tree, but you have to go fully around the square (even if you don't see the square, it's there, right?). So, that is a little thing I also require for te pixelmovement function... I would probably do these things myself, but I'm too bloody n00b. If you can do these things to me, great. If not, well, it's your call. Anyway, if you can incorporate all of this, and script activation and deactivation of functions through events, I'm pretty sure even more people will use your script. I guess... xD

Oh, and as for the SDK thingy, it works as a whistle. Thanks!
Hey man, love the script, but I just found a funny little quirk.

I cast Aura on myself, and then, countered myself :p
It said fail to load script actor data.
Woodwoof...
Haha.. Guess I forgot to ask the question if you are yourself.  That is funny though.  At least I found it quite funny.  "Damn you die already"  Its like an alternate personality.  When I have the code in front of me tomorrow I will provide you a fix.

DarkKyo, can you download it again and see if that resolves it.  My download counter shows over 300 on 1.3 and no one else has reported that. 
I've found a new bug in the animated version. When your charas and enemies gets killed, they won't show their death pose. Instead, they get stuck in the last frame they had before they got killed.
I don't know if this has been asked, but is there a way for you to control the summoned creature?
@Gubid - Very nice, I love how you incorporated the ISO with your ATB script. Just a few things,
1. Within the next release or so, will you allow actual Final Fantasy Tactics Charsets to be used, since they are also isometric?
2. When you move in battle, right as soon as you move, it says whether you want to stay or not, just wondering if you can make it so that it asks when you stop moving in case you misclick.

That's all for now! Keep up the good work! =P
-Krobe
kaze950:
Yes, you need to find "def set_character" in -Scene_Battle_TBS- and look under actor regarding the summon stuff for the line
actor.neutral = true..
just change the value to false.

Celvin:
I will check the animation thing.  I thought I had all those cleaned up.. If they are dead and there is no "timer" then they should assume the "dead" pose.

Krobelus:
1. I eventually plan to, along with a fully iso map from FFT, but that is a ways off yet.  I dont have time to convert graphics all the time. 
2. Yeah, that shouldnt be too difficult.  I will see what I can do.  Like I said earlier though, I will probably not do another version for awhile, I will provide bug fixes for now, as I am working on other projects.
It works now, i just find out that something was wrong with my Winzip so then i use Rar and it works.
A few things:

1) I got this error when trying to import the stuff from the demo to my own project.
Content Hidden Spoiler
http://img137.imageshack.us/img137/8213/errorib9.jpg[/img]


2) How do you add your own characters? When I add mine, it still shows Aluxes when the battle starts.'

3) How come after the battle finishes, my character ends up at the top right of the map?
Something... wierd just happened... playtesting my game I went into combat with the first encounter, and after the enemy took their first turn, I took mine and took everyones turn, but before I told my hunter to wait, I took my clerics turn. When I went back to make him wait, the goblin stood next to him took a move , and then it switched to the enemies turn O_O Then it got back to my turn and I couldn't do anything because the wait and status box was showing, and whenever I tried to wait, my controls didn't work...

WTF?

Also, is there a way to shut down the hit chance/damage thing not show ever? 'cause with it disabled, it will still show up, but flick off straight away
mistakiula wrote:
A few things:

1) I got this error when trying to import the stuff from the demo to my own project.
Content Hidden Spoiler
http://img137.imageshack.us/img137/8213/errorib9.jpg[/img]


2) How do you add your own characters? When I add mine, it still shows Aluxes when the battle starts.'

3) How come after the battle finishes, my character ends up at the top right of the map?

1. Did you take all the script parts to your project?  The only thing I can think of is you missed a script.  Particularly the -Spriteset_Battle- one. 
2. I assume that it was your character, but that the graphic still used Aluxes, right?  Why?  Its because you didnt change their battler.  You must update the battler to the desired graphic, then when the battle starts the script will look at your BATTLER name and find the CHARACTER in your folder of that same name and use that.  So if the BATTLER is still aluxes, then the Aluxes CHARACTER graphic will be loaded for them during battle.
3. I am guesing that you are using the demo script exactly which means you need to do some configuring... Goto the -GTBS Open/Exit- section and look for the battle exit information.  There you can define for each map where you will be transfered to when the battle is complete.  If the stuff is still there from the demo, that would probably be why you transfered to an an desired location.

cocicookie wrote:
Something... wierd just happened... playtesting my game I went into combat with the first encounter, and after the enemy took their first turn, I took mine and took everyones turn, but before I told my hunter to wait, I took my clerics turn. When I went back to make him wait, the goblin stood next to him took a move , and then it switched to the enemies turn O_O Then it got back to my turn and I couldn't do anything because the wait and status box was showing, and whenever I tried to wait, my controls didn't work...

WTF?

Also, is there a way to shut down the hit chance/damage thing not show ever? 'cause with it disabled, it will still show up, but flick off straight away

Not quite sure what happened.  Have you encountered it again, or was it only once.  If you can comeup with some steps to duplicate the situation, I would take a look at it.  As for the damage control, I will look into that.  I only tested it once back when, but havent bothered since.  It shouldnt draw it if the switch is disabled.

Thanks again everyone and good luck with your projects.
Thank you. Works perfectly now.

However,.... more questions!

1) How do you set the AI level for each monster on the map?
2) After each battle, the game plays the Battle music that is set in the database. How do you make it so that it returns to the previously played BGM? Better yet, how can I make it memorize the BGM and let it play from where it left off before the battle.
http://www.mediafire.com/?6remweyezza <-- Download for my project.

In it, there SHOULD be a save, if not, start a new game and go up to the top of the path when you can.
In the battle, after two attacks, and it seems to be after the cleric takes his move, the wait/status box should appear and the enemy takes their turn... it's wierd, but I think it may have something to do with my eventing of the paralel process (Top left of the combat map)...
I must be way drunk today, since it took me almost half an hour to find the download link.. xP
cocicookie wrote:
http://www.mediafire.com/?6remweyezza <-- Download for my project.

In it, there SHOULD be a save, if not, start a new game and go up to the top of the path when you can.
In the battle, after two attacks, and it seems to be after the cleric takes his move, the wait/status box should appear and the enemy takes their turn... it's wierd, but I think it may have something to do with my eventing of the paralel process (Top left of the combat map)...

OK, I found the problem.... it was already resolved already with 1.3, but since you are still usig 1.2 you havent seen the fix.  The reason for this is because the actor has already moved and acted.. so when they are attempted to be made active its says... hey you have already gone and you cannot do anything else so why give you control of the actor?  and then calls the enemies. 
Please update, at least "tbs_phase_1" to 1.3 and this will go away.
After messing around with the system, I've found a few odd problems, nothing major but some minor problems that might have been over looked.

1. Dead characters can still be placed back into battle, however they cannot be used and will just stand there walking in place for the whole battle. While this is okay to a point, what if I wanted a status that disabled a character from entering battle like death or something similar?

2. I'm not sure what it is but some status effects seem to either backfire or mess up, for example using the demo's summoned monster can often cause a "paralyzed" error, which brings me to the line(can't remember the number exactly, but I'll look it up if needed) about checking for if a unit is paralyzed or sleeping at the start of their turn. I also have gotten this from having an enemy unit using the Dash skill on my part.
This is one of the best scripts I've seen in a long time. Anyways just one thing I want to elaborate on a bug...

When I play, the script for the exp is set at this...

if amount <= -10
            pre_exp += 0
          else
            pre_exp += 0
          end
          if target.dead?
            pre_exp *= target.exp

Thinking this part of the Scene_Battle_TBS on line 959 to 965 to give me 0 exp from everything except for killing the enemy. (I want to just get exp from killing and not give to all people) But the bug is that when I do that, I still get exp 0 and 0 gold too when I kill the enemy. However when the neutral killed the enemy, I got the money after the battle. Is there something that could be messing that up?
GubiD, I have a problem with your tactical battle system when I installed Poccil's DMS modification in this game. It had to do with line 5192 of Scene_Battle_TBS NameError occurred. undefined local variable or method 'checked_here' for # .

This happened after my 8 members killed two soldiers (Galzamians) and the enemies were about to make their turn.

LINK:
http://www.savefile.com/files/1373371
http://www.megaupload.com/?d=U7NTA2R1
correct me if these things are already scripted in.
             
              1.Job changing script like in Final Fantasy Tactics: The War of The Lions.
              2.When in water you sink and can not use any actions but "Move" & "Wait".

Thats all i have to say. And as always excellent scripting job i love V3.3. I cant wait for next up date. Best of luck. :thumb:

EDIT: I'm having trouble with the "height" thingy you put in...can u please help????? how do i activate it????????
His next big project is making a job changing script if I'm not mistaken.

Try being more specific. The height "thingy" only works in the isometric view btw.
Dung Beetle wrote:
GubiD, I have a problem with your tactical battle system when I installed Poccil's DMS modification in this game. It had to do with line 5192 of Scene_Battle_TBS NameError occurred. undefined local variable or method 'checked_here' for # .

This happened after my 8 members killed two soldiers (Galzamians) and the enemies were about to make their turn.

LINK:
http://www.savefile.com/files/1373371
http://www.megaupload.com/?d=U7NTA2R1


Change the line you quoted to...
checked_here = []
Expand to see the code.
and it should take care of it.  Its not actually a compatibility problem, but something I didnt finish typing out, but since the enemies didnt have 'raise' abilities I didnt notice.  It should work after correcting that line.
Ikarru wrote:
This is one of the best scripts I've seen in a long time. Anyways just one thing I want to elaborate on a bug...

When I play, the script for the exp is set at this...

if amount <= -10
            pre_exp += 0
          else
            pre_exp += 0
          end
          if target.dead?
            pre_exp *= target.exp

Thinking this part of the Scene_Battle_TBS on line 959 to 965 to give me 0 exp from everything except for killing the enemy. (I want to just get exp from killing and not give to all people) But the bug is that when I do that, I still get exp 0 and 0 gold too when I kill the enemy. However when the neutral killed the enemy, I got the money after the battle. Is there something that could be messing that up?
In my testing the EXP gained seems to work correctly as long as the Level for the enemy is set in the -Enemy Class/Level- section.  I will play with it and see what I can find.
Lockheart wrote:
After messing around with the system, I've found a few odd problems, nothing major but some minor problems that might have been over looked.

1. Dead characters can still be placed back into battle, however they cannot be used and will just stand there walking in place for the whole battle. While this is okay to a point, what if I wanted a status that disabled a character from entering battle like death or something similar?

2. I'm not sure what it is but some status effects seem to either backfire or mess up, for example using the demo's summoned monster can often cause a "paralyzed" error, which brings me to the line(can't remember the number exactly, but I'll look it up if needed) about checking for if a unit is paralyzed or sleeping at the start of their turn. I also have gotten this from having an enemy unit using the Dash skill on my part.

1 - when it battle they should be in their down pose even if placed, although they are added to the actors array and not the dead array, thus not allowing you to revive them.  I will add some syntax to prevent placement of dead characters.

2 -  not sure what you are saying here.. can you provide some more information?
-BlackShadow- wrote:
correct me if these things are already scripted in.
             
              1.Job changing script like in Final Fantasy Tactics: The War of The Lions.
              2.When in water you sink and can not use any actions but "Move" & "Wait".

Thats all i have to say. And as always excellent scripting job i love V3.3. I cant wait for next up date. Best of luck. :thumb:

EDIT: I'm having trouble with the "height" thingy you put in...can u please help????? how do i activate it????????

1- that is my current project, it is already making good progress.  I should be done with the main menu(not equip and others) by the end of the week.  As for the equip, it gets pretty complex.  And of course the Job system and Ability system.  The trick is to make it compatible with the default system and others.  That is a different task altogether.
2- there is nothing that does that as of yet, although I would imagine it wouldnt be that hard.  Just a thing when setting the active battler... (if battler.screen_th < 0; battler.perf_action = true; end)  or something along those lines.

You need to be alot more specific with the height "thingy", but here is the gist of the system..
1. You create a PARENT map with a couple of objects on it.
2. You create the CHILD map with a name including ISO.
3. Build the CHILD map using the ISO BASE tileset I provided. (the one with numbers)
4. place the numbers(heights) in the desired locations.
5. Test your map
6. Redraw your barriers if needed.
7. repeat steps 5 and 6 until the map is complete.
thank you very much Gubid. Ill try what you just said.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=32656