Mr.Mo's Squad Based ABS (SBABS)

.:Mr.Mo's Squad Based Action Battle System:.



I NO LONGER SUPPORT THESE SCRIPTS. I'm making a new version. If you want the scripts to get fixed.. ask someone else. Sorry guys.

.:Introduction:.

In this version of my ABS, the party members can fight along side you. You can switch to the party members and you can also use squad commands such as Follow, Stay, Heal, and Search and Destroy.

I will not accept any requests at this point! I'm trying commercial scripting. :P

.:Update:.
June 17 2007
June 17 2007 Spoiler
  • Updated FAQ
  • Fixed "Dispose Error" again..
  • Fixed "Nil for dead?" error
  • Added $ABS.hide_allies and $ABS.show_allies

June 16 2007 Spoiler
  • Fixed "Enemy kill each other"
  • Fixed "Dispose Error"
  • Fixed "Enemy Can't activate Common Events"
  • Fixed other reported bugs.

May 27 2007 Spoiler
  • Reported Errors Fixed

May 1 2007 Spoiler
  • Save and Load Error fixed.
  • Hotkey errors fixed.


.:Features:.
  • Battle with monsters, on the map, that are highly customizable!
  • Able to command your squad!
  • Able to have as much as party members as you want!
  • Improved Enemy AI - Now includes personality(as in how it will act).
    • They can no longer see through walls! See WALL_TAG in settings. You can change the number, assign the number to the tiles you want as high 'walls' in tileset editor!
    • Personalities:
      1. Able to Attack.
      2. Stay at distance from hostile.
      3. Run when dying.
      4. Do not move.
      5. Do not turn.
  • Ally(Party Member) AI
    • They heal or revive(each other or self) when hurt too much.
    • Advanced Control Commands.
    • Shoot ranged weapons and skills when too far.
    • Attack when close.
    • They help you!
  • Animations' size can be shrunk to fit the appropriate size - Customizable!
    • See: ANIMATION_DIVIDE = 2 in Settings
  • Able to Attack(with weapons), Defend, use Ranged Skills and Weapons and Explosive Skills(missile like)!
  • Able to Hotkey Skills and Items!
  • All keys are customizable!
  • Players and Events can animate if animation turned on!
    • See: ANIMATE_PLAYER = false and ANIMATE_ENEMY = false in settings.
  • Mash Time - Default, by weapon and by skill.
  • Dash and Sneak!
  • States effect and display on map! Shows state animation as well.
  • Can display Damage and Level Up!
  • Monsters can now drop Items and Gold!
  • Many more, check the demo!

.:Screenshot:.
Image

.:Instructions and FAQ:.
Content Hidden Spoiler
Q: I can not open the demo!
A: Download winrar. Google it.

Q: What scripts do I need?
A: You'll need the SDK 2.0 or higher if you don't have it. You'll need the  main ABS script and you'll need the Input script. If you want to use the HUD or the Enemy HP Bars you'll need the Gradient bars by Trickster.

Q: My game crashes and all I did was add the script to my game!
A: You need to add them in the same order they came in the demo.

Q: How can I display the mini-map?
A: I believe I set the mini-map switch to Switch 3. Look in the Mini-Map script, it should show where the switch ID is and can be edited. To display the mini-map just turn the switch on.

Q: How can I turn off the HUD with using script call?
A: Call this: $scene.hud_hide to hide and $scene.hud_show to show.

Q: How can I hide and show the allies?
A: Use in a script call $ABS.hide_allies to hide and $ABS.show_allies to show.

Q: How can I edit the animations divided so that the SCREEN animations don't get smaller?
A: Find:[/list][/list][/list][/list]
  1.  
  2. for an in $data_animations
  3.         next if an == nil
  4.         frames = an.frames
  5.         for i in 0...frames.size
  6.            for j in 0...frames[i].cell_max
  7.               frames[i].cell_data[j, 1] /= $ABS.ANIMATION_DIVIDE
  8.               frames[i].cell_data[j, 2] /= $ABS.ANIMATION_DIVIDE
  9.               frames[i].cell_data[j, 3] /= $ABS.ANIMATION_DIVIDE
  10.            end
  11.         end
  12.      end
Expand to see the code.
Replace with:
  1.      for an in $data_animations
  2.         next if an == nil or an.position == 3
  3.         frames = an.frames
  4.         for i in 0...frames.size
  5.            for j in 0...frames[i].cell_max
  6.               frames[i].cell_data[j, 1] /= $ABS.ANIMATION_DIVIDE
  7.               frames[i].cell_data[j, 2] /= $ABS.ANIMATION_DIVIDE
  8.               frames[i].cell_data[j, 3] /= $ABS.ANIMATION_DIVIDE
  9.            end
  10.         end
  11.      end
Expand to see the code.


Q: What are all the [B]default controls for the ABS and the HUD and the squad?[/B]
A:
ABS and Hud Spoiler
  1. ABS
    • Attack - S
    • Defend - D
    • Run - A
    • Sneak - Z
    • Skill - Hotkeys(look in the script)
  2. HUD
    • Toggle On/OFF - E
  3. Squad
    • Follow Key - J
    • Search and Destroy - K
    • Stay and Secure - L
    • Heal All Key - B
    • Change Leader - N(forward) or M(backward)


Q: How can I setup an enemy?
A: First go to the enemies database and look at the monsters you will use. Set the stats, items, gold and attacks there. Now go to the event that will be the monster and:
Content Hidden Spoiler
  1. # To add a comment, click on the event command list, in the first tab, you should
  2. # see the [ Comment... ] button. It should look similar to this.
  3. #
  4. # V = value
  5. #
  6. # Comment: ABS                         - Required for recognizing enemies.
  7. # Comment: ID V                       - Enemy ID from the database.
  8. # Comment: Behavior V              - Refer to Enemy AI.
  9. # Comment: Sight V                   - See range the enemy can hear.
  10. # Comment: Sound V                   - Sound range the enemy can hear.
  11. # Comment: Aggressiveness V     - How fast will the enemy attack.
  12. # Comment: Speed V                   - How fast will the enemy move when in battle
  13. # Comment: Frequency V             - What rate will the enemy move when in battle
  14. # Comment: Trigger V                - Refer to Triggers.
  15. # Comment: Respawn V
  16. #
  17. # Example:
  18. #
  19. # Comment: ABS
  20. # Comment: ID 1
  21. # Comment: Behavior 1
  22. # Comment: Sight 5
  23. # Comment: Sound 5
  24. # Comment: Aggressiveness 1
  25. # Comment: Speed 4
  26. # Comment: Frequency 4
  27. # Comment: Trigger 0
  28. # Comment: Respawn 0
Expand to see the code.


Q: How can I make a bow or a fire ball?
A: To make a bow like weapon, find:[spoiler=Bow like weapon]
  1. #Ranged Weapons
  2. RANGE_WEAPONS = {}
  3. # RANGE_WEAPONS[Weapon_ID] = [Character Set Name, Move Speed, Animation, Ammo, Range,
  4. #                                          Mash Time(in seconds), Kick Back(in tiles),Animation Suffix]
  5. # Leave kickback 0 if you don't want kick back effect.
  6. RANGE_WEAPONS[17] = ["Arrow", 6, 4, 35, 15, 3, 0, "_bow"]
  7. RANGE_WEAPONS[18] = ["Arrow", 6, 4, 35, 15, 4, 0]
  8. RANGE_WEAPONS[33] = ["Ammo", 6, 4, 34, 10, 4, 0]
  9. RANGE_WEAPONS[22] = ["Ammo", 15, 4, 0, 12, 0, 1]
Expand to see the code.
To make a fireball like skill, find:
Fireball like skill Spoiler
  1. #--------------------------------------------------------------------------
  2. #Ranged Skills
  3. RANGE_SKILLS = {}
  4. # RANGE_SKILLS[Skill_ID] = [Range, Move Speed, Character Set Name, Mash Time(in seconds), Kick Back(in tiles)]
  5. RANGE_SKILLS[7] = [10, 5, "Magic Balls", 3, 1]
  6. RANGE_SKILLS[35] = [10, 5, "Magic Balls", 3, 0]
  7. RANGE_SKILLS[15] = [10, 5, "", 3, 1]
  8. RANGE_SKILLS[81] = [15, 6, "Arrow", 3, 0]
Expand to see the code.


Q: I want non-ranged skills and weapons to have similar effects as the ranged skills and weapons!
A: Look for:
Content Hidden Spoiler
  1. #--------------------------------------------------------------------------
  2. # Since Melee weapons aren't listed I made this for customazation of melee weapons.
  3. MELEE_CUSTOM = {}
  4. # if left blank the default mash time will be MASH_TIME(below)
  5. # No need to use the animation suffix if you don't plan to animate the player's character set.
  6. # MELEE_CUSTOM[Weapon_ID] = [Mash Time(in seconds), Kick Back(in tiles), animation suffix, number of animation of the suffix]
  7. MELEE_CUSTOM[1] = [3, 0, "_melee"]
  8. MELEE_CUSTOM[2] = [10, 1, "_melee",2]
  9. MELEE_CUSTOM[49] = [5, 1]
  10. #--------------------------------------------------------------------------
  11. # Since some skills won't be listed(i.e non-ranged) I made this for customazation of melee weapons.
  12. SKILL_CUSTOM = {}
  13. # if left blank the default mash time will be MASH_TIME(below)
  14. # No need to use the animation suffix if you don't plan to animate the player's character set.
  15. # SKILL_CUSTOM[Skill_ID] = [Mash Time(in seconds), Kick Back(in tiles), animation suffix, number of animation of the suffix]
  16. SKILL_CUSTOM[1] = [3, 0]
  17. SKILL_CUSTOM[7] = [3, 0]
  18. SKILL_CUSTOM[8] = [3, 0, "_cast",2]
Expand to see the code.


Q: How can I edit the HUD?
A: There is a HUD tutorial in the tutorials section. You can also request for one in the Script Requests section.

Q: Can you add [feature description] to the ABS?
A: Probably not because there are already so many features but go ahead and ask and try your luck.
[/spoiler]


.:Demo:.

Content Hidden Spoiler
Before you download, do read this!

  • Some instructions are missing in the script! Please check the demo for some features such as PERSONALITY in monsters/events! The feature list has the  numbers for each personality.
  • For a complete feature list, check the settings in the script. You have to check the settings!
  • Make sure to have taken all the graphics you need from the Graphics folder.
  • Error Reporting
    • Name the script you got the error in. There is 2 different ABSs so make sure to name which one you are using.
    • Take a screenshot of the error.
    • Record the line number and the line itself.
    • Tell me what you were last doing.
  • Feature Request
    • Tell me in details what you want.
    • It can't be time consuming.
  • Download



.:Credits and Thanks to:.


* Credit only if you will use their script.

  • Credit and Thanks to Axerax for the HUD pictures and icons and also for testing.*
  • Credit and thanks to Trickster for the Gradient Bars.*
  • Credit and Thanks to Aleworks for Input.
  • Credit and Thanks to Selywn for Minimap.*
  • Credit and Thanks to f0tz!baerchen for Anti-Lag Script.*
  • Thanks to Near Fantastica for the math equations.
Amazing!
WoW!
tested it..
Works fine, no bugs found just yet.

Great work indeed.
found a bug when u hit D about it
Sweet! Love it, I found some weird stuff (might just be me).
I cant switch hotkeys, if i use A (yea a works as a hit key) i cant change it to 1. Also when i press d it crashes. Overall i love it, keep up the great work!
Fixed the error.. It was one line of editing :p

The hotkey is suppose to be like that so that you don't have the same skill for 2 keys. I'll improve it next version, I don't feel like editing all my ABS(3 of them!) yet, this took alot of time.

I'll upload the second mirror tomorrow.
Man thats crazy.... awesome
I was waiting for these a very long time! (now i can release my second video with this on it) A question though, is it the same as your ABS (lag-wise) or the same as ABS-Lite? (or your planning to make a SBABS-Lite?)
Well done, Mr.Mo.
Well done indeed.
None of the Download works
and i dont understand this:
Quote:
Download winrar. Google it.

sorry i am brazilian....
@Eldnar
To open the files you need a program called WinRAR, search it in google.
http://www.google.com/search?q=winrar
I was happy to work with MrMo in testing the SBABS, Maybe eventually if i get around to it, I will continue on the mini-game that was to show everything the SBABS could do, from using mages, clerics, fighters, archers, and many other kinds of tactics. Find ways to have battles take place, show how the pathfinding, stay, follow, attack, switch player FW/BW commands work in a correct manor... so say we need to hit a switch across a pit? no problem, switch to your archer, knock it out and go back to the player you prefer, if a n enemy takes me damage from certain spells, hop onto the mage and fire away with the right spell. The possibilities are endless.

I'm happy to see he worked on it once more and that it works just as good if not better than when I tested it last. I'm not sure if I will make a HUD for the SBABS, it is very time consuming, but we'll see.
~Axerax~
Just finished testing it. It works like a charm, and I didn't notice any lag. I loved the ally interaction idea, but I think a better way is the use of common events that will allow more advanced interaction.
Good work Mr. Mo....
Can you upload it to another server?
MegaUpload doesn't agree with me.;)
Going to sounds really weird, but is there some way to edit this so you can not attack, you just can control you squad?
If a squad member is in a corner and you move to him yoe end up on top of him.

My game was realy laggy
Man you are awesome, thanks for this excellent script:yes: :D
Can you upload the demo in other server? I cant download it in MegaUpload
I know Mr. Mo is busy so I took the trouble of uploading it in lotsa server (I hope he don't mind) so enjoy:

http://www.sharebigfile.com/file/155368/Mr-Mo-SBABS-Lite-rar.html
http://4filehosting.com/file/10012/Mr-Mo-SBABS-Lite-rar.html
http://www.afilehost.com/file/4671/Mr-Mo-SBABS-Lite-rar.html
http://www.filesend.net/download.php?f=e82a02b7b7e952a45af82acd0484ebee
http://www.filecrocodile.com/?d=DA72DA013
http://www.yourfilelink.com/get.php?fid=321779
http://www.hostit.pk/en/file/635/Mr-Mo-SBABS-Lite-rar.html
[QUOTE=cheatking;198311]If a squad member is in a corner and you move to him yoe end up on top of him.

My game was realy laggy[/QUOTE]

That is not an error, it is a safety so you don't get stuck.

As far as lag goes, its due to low ram. How much RAM do you have? Its not TOO laggy for me and I have 384MB Ram. I think 516 MB is the right amount these days.

@Neonyo

$ABS.active = false

@tibuda

Heh, I forgot all about that :p. I need to add it to my first post tomorrow.

@Mimi Chan

Thanks.
Heh, I have 1 gig of ram and I still get lag down to 5FPS when it comes to certain parts of my game, its just RMXP and how much ram is being occupied at a time.
DAMN, you took time to finish this!
Although it is great none the less.

GOOD JOB!
I hope nobody told this before...

I see Mr.Mo , you did what I said before and it's really cool.
(about the hotkeys' order)

But it seems like.. when I give, for example, 1 for a skill,
this skill have to stay in 1 until the end of the game :p

or maybe am I ignoring something..?
[QUOTE=psykedeath;198619]I hope nobody told this before...

I see Mr.Mo , you did what I said before and it's really cool.
(about the hotkeys' order)

But it seems like.. when I give, for example, 1 for a skill,
this skill have to stay in 1 until the end of the game :p

or maybe am I ignoring something..?[/QUOTE]

No, I think you can overwrite it if you assign another skill to that number
Thanks bruno ;)

but..( excuse me for bothering ':| )
seems like items aren't yet assignable

also, I have a little request that shouldn't be too difficult...

In the hud, still about the hotkeys, i'd like to do
so that when i assign 5, the icon is shown in the 5th place..
(I don't script at all.. but I think the use of "count" should be modified)

i'm asking this since my interface needs it :p
better seeing it than reading thousand words, here it is..
Quote:
@Eldnar
To open the files you need a program called WinRAR, search it in google.
http://www.google.com/search?q=winrar

AH.... i have the WinRAR! now i understand.....
Whatever
Anyone have the non lite demo?
Because the link of the Mr.Mo's Squad Based ABS (SBABS) normal[not lite!]
is broken
so anyone have this demo to pass to me?
[QUOTE=Mimi Chan;198431]I know Mr. Mo is busy so I took the trouble of uploading it in lotsa server (I hope he don't mind) so enjoy:

http://www.sharebigfile.com/file/155368/Mr-Mo-SBABS-Lite-rar.html
http://4filehosting.com/file/10012/Mr-Mo-SBABS-Lite-rar.html
http://www.afilehost.com/file/4671/Mr-Mo-SBABS-Lite-rar.html
http://www.filesend.net/download.php?f=e82a02b7b7e952a45af82acd0484ebee
http://www.filecrocodile.com/?d=DA72DA013
http://www.yourfilelink.com/get.php?fid=321779
http://www.hostit.pk/en/file/635/Mr-Mo-SBABS-Lite-rar.html[/QUOTE]

Thanks Mimi Chan:D ;)
Oh! now i see just exist the lite version... ??
I've got a problem. You know the archers on the main map? How come when I C+P them into another map, they no longer shoot arrows?
One question!?
How i make to my character dont hurt my Squad???
and
when i save i detect a error:
Quote:
Undefinided method 'display_sprite'for #

in this line:
2972:
Quote:
sprite = $ABS.display_sprite


and when i load apear this error:
Quote:
End of file reached

in the line:
2947:
Quote:
$ABS = Marshal.load(file)

all this in our demo
What is it?

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