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

[QUOTE=WooX;332030]Just download the demo,open it as a project (the icon with the cogwheel),press F8 to open the scripts window,and copy all the scripts you want (the last ones separated by ---) to your project,in the same order,and above the scrip Main (wich HAVE to be the last one,always).[/QUOTE]

Okay, thanks. So like all of them from Menu config to enemny detection script? do I also need to get things like ---GTBS---?

EDIT: Is there a way to make it teleport you to a random map to fight on? I want it to make it so I can fight normal bad guys on a random arena type map and I want boss battles to be fought in the room you see the boss in. If it's possible.
Yeah, you can configure it to call a specific map from the current one. You can control that in the GTBS::battle_map def.

  def self.battle_map(id)
    case id
    when 1; map = 3   ##when on map 1, call map 3, or reverse it, when calling
# battle from map3, call battle map1.. you get the idea
    else; map = id
    end
    return map
  end
Expand to see the code.
[QUOTE=Gubid;332090]Yeah, you can configure it to call a specific map from the current one. You can control that in the GTBS::battle_map def.

  def self.battle_map(id)
    case id
    when 1; map = 3   ##when on map 1, call map 3, or reverse it, when calling
# battle from map3, call battle map1.. you get the idea
    else; map = id
    end
    return map
  end
Expand to see the code.
[/QUOTE]

I'll try that. EDIT: How do I put that in, and I couldn't find GTBS::battle_map def.

Now I have another problem, I put it in but when I try to hit wait it says: unable to find file graphics/pictures/wait2. What should I do?
That means that you didnt copy the wait graphics that are required from the demo graphics folder.  Just copy them to your project.  By GTBS:: I mean the -Module_GTBS- code section... then look down for self.battle_map(id) and you will see what I pasted.
Gubid wrote:
That means that you didnt copy the wait graphics that are required from the demo graphics folder.  Just copy them to your project.  By GTBS:: I mean the -Module_GTBS- code section... then look down for self.battle_map(id) and you will see what I pasted.

Okay, I have another question (sorry!)  Can I have multiple battles on one map?  I tried but it didn't seem to work.  Also can I have random battles or do i need tp do an event on every square that I want a battle to happen on?
So now I'm getting a new error.  It takes me to my new map fine but then when I beat the bad guys it says:

script '-scene_battle_tbs-' line 769: NoMethodError occured

undefined method 'list' for nil:nilclass
Quote:
script '-scene_battle_tbs-' line 769: NoMethodError occured

undefined method 'list' for nil:nilclass

You havent setup your common events on your game yet.  The victory and failure events are events 1 and 2.  If you only have 1 displayed and you lose, this error will occur.  The demo actually required 6 common events 1-6 as on of the defeat variables is a quick "Dying words" from both Leo and Aluxes if he dies, but they must exist in the database, otherwise, error.

Quote:
Okay, I have another question (sorry!)  Can I have multiple battles on one map?  I tried but it didn't seem to work. 

yeah, as long as you know you will all fight in the same positions again.  If you are ok with that, then go for it.

Quote:
Also can I have random battles or do i need tp do an event on every square that I want a battle to happen on?

You can do this with random battles, but if you are going to do it that way, ensure that in the Module_GTBS that you have the exit_info set to [true,1,[0,0],0] otherwise you will be teleported somewhere else when the battle is completed.


EDIT:
Hey it looks like the update might not release this week and will be pushed to next week.  I have been working long hours at work and hasnt provided me much time to focus on this.  I will let you know.
im not sure if this was reported or not but i had the neutral girl was 1 square away from my character then she went to go cast a heal spell then she moved away and the spell (animation) kept playin, it didnt stop the game but my character never got healed and the girl kept playing the spell animation

oh and is there a way to make the game so the players dont have a choice of there colors and what type of battle?
I've tried the transformation about 6 different ways and I can't seem to get it to function with your battle system, Gubid.... I've tried common events three times, battle events twice and then I even tried adding it into your script, but nothing was working. For now I'm leaving it out, but hopefully you can find a way to integrate a transformation skill. 
Quote:
im not sure if this was reported or not but i had the neutral girl was 1 square away from my character then she went to go cast a heal spell then she moved away and the spell (animation) kept playin, it didnt stop the game but my character never got healed and the girl kept playing the spell animation
Its a wait skill and thats how they work.  You are welcome to change the "casting" state animation to whatever you would like.
Quote:
I've tried the transformation about 6 different ways and I can't seem to get it to function with your battle system, Gubid.... I've tried common events three times, battle events twice and then I even tried adding it into your script, but nothing was working. For now I'm leaving it out, but hopefully you can find a way to integrate a transformation skill.
Interesting.  All I did in the demo was open the troop setup in the database, removed the current "battle event" contents and replaced it with transform enemy "leo" into leviathan.  It did that exactly.  I tested it again just now and it seemed to work fine.  Let me know if you have continued problems with this or share you project with me and I will take a look at it and try to decide why it doesnt work.
I'm talking about transforming characters, not the enemies, although that was easy enough to do.

What I've done so far is made a skill that gives the state "Transformed" to a character and in a common event I have it set in a conditional branch to change the current character to a demon form when in that state and back again if not in that form. One of my main problems is that the skill, for whatever reason, cannot be used on the caster. I've tried every combination I could think of, and it won't permit me while in you battle system to use it. Is there any reason you can think of that would prohibit this?
I'm about to fall asleep right now but, is there an easy way to make the dead battler image just not appear at all? I like having the option of a "down" battler, however they are getting in the way of some of my more cramped scenes. I know I know, just map better, but I like my maps the way they are (better ambiance).

In summation, is there a way to make the enemies simply dissapear when they die? Possibly with an animation effect from the database?

Sorry for my sleepy-typing-ness. I need sleep...

Oh yeah, awesome system, I love this one so much that I would marry it if I weren't already engaged  ;D
sixdd, Please wait for the update.  It will have "remove from map" option.

firecross, player transformations?  I suppose I may be able to pull something off for that.  I am still working on the re-write of the skills section, cause it was given me major headaches, but when I complete I will take a look at this.
Some more suggestions. Hurray!

Directions - I'm not sure if this is implemented or anything as I had a rather difficult time checking, however since you have already set it so players could choose where to face, perhaps the direction where you're attacked in should affect damage. For example, you'd have better chances of hitting harder and more accurately if you struck from behind than in front.

Movement - It's really annoying how the "Do you want to move here?" window pops up as the character moves. Perhaps it would look better if it comes up either before or after the character moves.

I was thinking a better display window for the character's stats too, but I think that should be easy to fix and personalize.
Just a thought, it would be nice to have an option to gain items from enemies "as" you kill them. For example instead of gaining items after the battle is over you could set it so items are gained instantly, if at all. It would make it more like looting for need rather than looting for greed, kill a guy and then "Oh crud I'm gonna die!" "Guess I'll see if he has anything on him... oh boy! A Potion! Now I won't die!"

Just a thought.
Quote:
Directions - I'm not sure if this is implemented or anything as I had a rather difficult time checking, however since you have already set it so players could choose where to face, perhaps the direction where you're attacked in should affect damage. For example, you'd have better chances of hitting harder and more accurately if you struck from behind than in front.

This is planned, should be part of the update.
Quote:
Movement - It's really annoying how the "Do you want to move here?" window pops up as the character moves. Perhaps it would look better if it comes up either before or after the character moves.
If you dont like it, disable it from the -GTBS_Module- Although once you move, your done. 

Quote:
I was thinking a better display window for the character's stats too, but I think that should be easy to fix and personalize.

Yeah, I am updating the status a little, but why dont you give me some examples and that will guide me better. 
Faces are already implemented in the updated status screen, but nothing else has really changed.  I do plan to update it some though.

Quote:
Just a thought, it would be nice to have an option to gain items from enemies "as" you kill them. For example instead of gaining items after the battle is over you could set it so items are gained instantly, if at all. It would make it more like looting for need rather than looting for greed, kill a guy and then "Oh crud I'm gonna die!" "Guess I'll see if he has anything on him... oh boy! A Potion! Now I won't die!"

Wouldnt be too hard to do, but I have never liked gaining items from them right then.  I was thinking that I would do it like FFT, and set a state on them once they die, and once their "state turn" had expired that a treasure chest would appear, and getting that you would collect an item or as in FFT, a skill if they were human.  I havent figured out how I am going to do that yet, but I hope to do that soon.
Sorry for so many queations, but I have another one  ;D

So when I go to attack on the menu it says "Earth" and in it are my abilities.  I just want it to say "Special Attacks" and I cannot figure out how to do that.

Thanks.
Look at the Window_Base edits, you will see right there the settings that control what is displayed in the system.  Just change it to whatever you would like, or set it, and add a else statement and set them all to it.
Gubid wrote:
Look at the Window_Base edits, you will see right there the settings that control what is displayed in the system.  Just change it to whatever you would like, or set it, and add a else statement and set them all to it.

Thanks, that worked.


In your demo your hunter can shoot in this big circle around her, how do I set my guy to do that?

Thanks for answering all my questions, sorry.
When setting up your weapon, add true to the end instead of false.  It should use the long range stuff and enable the surrounding squares.  Let me know if you have any other questions.
Gubid wrote:
When setting up your weapon, add true to the end instead of false.  It should use the long range stuff and enable the surrounding squares.  Let me know if you have any other questions.

In the database or in the script editor?  Where in the script editor would I do that?
Script: -GTBS_Module-

#-------------------------------------------------------------
  # set range from weapon
  # [max_range, min_range, is_bow?] - is_bow? is only used when "LSHAPE_BOWS"
  # is enabled.
  #-------------------------------------------------------------
  def self.w_range(id)
    case id
    when 2; range = [1, 0, false]
    when 4; range = [1, 0, false]
    when 5; range = [2, 0, false]#lance
    when 17; range = [4, 2, true]#bronze bow
    when 20; range = [5, 2, true]#mythril bow
    else; range = [1, 0, false]
    end
    return range
  end

just add a when statement define the [MAX, MIN, and BOW?]  Thats it.
Gubid wrote:
Script: -GTBS_Module-

#-------------------------------------------------------------
  # set range from weapon
  # [max_range, min_range, is_bow?] - is_bow? is only used when "LSHAPE_BOWS"
  # is enabled.
  #-------------------------------------------------------------
  def self.w_range(id)
    case id
    when 2; range = [1, 0, false]
    when 4; range = [1, 0, false]
    when 5; range = [2, 0, false]#lance
    when 17; range = [4, 2, true]#bronze bow
    when 20; range = [5, 2, true]#mythril bow
    else; range = [1, 0, false]
    end
    return range
  end

just add a when statement define the [MAX, MIN, and BOW?]   Thats it.


So do I put the when statement beside [max_range, min_range, is_bow?]?  Whats a when statement?  Sorry, I don't get it.
look at the script snippet he gave you. Do you see the line:
when 20; range = [5, 2, true]#mythril bow
Expand to see the code.
?

That's a when statement. You type in:
when (insert weapon id here); range = [max_range, min_range, is_bow?]#(name of weapon, this is optional as it's only for reference)
Expand to see the code.


so for mine I type in:
when 1; range[2,0,false]#short spear
Expand to see the code.
How do i make the enemies fade away instead of using downed character sprites?
I have no clue how to add new downed sprites, even after reading the comments in Module_GTBS..
I believe Gubid said that that will be an option in the next release. Which IF he is working on it, should be released fairly soon.
Yes that is correct, the remove_dead option will be available when I release the update.  Sorry it is taking so long, just ran into some problems and need to work them out before I release, otherwise, it would be buggy.
Great script! This is by far the best tactical battle script I've tried so far!
Just wanted to say that this is an amazing script and I'm very excited for the next release. I have a couple of questions that I'm not sure have been answered yet.

I'm assuming that this script supports large party scripts. If so, do I just add actor5 events on the map and adjust accordingly?

How do I adjust skill AoE and skill casting time?
Yes this supports large party scripts.  As for the AoE etc for skill, please read the help or review the GTBS module.

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