Mr.Mo's ABS - EvE and Lite

.:Mr.Mo's Action Battle System:.
Event Vs Event AND Lite


.:Introduction:.

I've made 2 versions of this ABS. One of them is ABS EvE and ABS Lite. The difference is here:
Difference Spoiler
ABS EvE
  • Events can fight other events.
  • Events can help the player.
  • Lags a bit, specially on maps with alot of monsters.

ABS Lite
  • Events can not fight other events.
  • Events can not help the player.
  • The lag in EvE is not included.


I am currently working on a revamp version of both scripts! Please wait for those versions!

.:Update:.
June 16 2007
June 16 2007 Spoiler
  • Reported Errors Are Fixed

May 27 2007 Spoiler
  • Reported Errors Are Fixed

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


.:Features:.
  • Battle with monsters, on the map, that are highly customizable!
  • Improved 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.
  • 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:.


.: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: What are all the [B]default controls for the ABS and the HUD?[/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


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:
[spoiler=ABS EvE]
[PHP]# To add a comment, click on the event command list, in the first tab, you should
# see the [ Comment... ] button. It should look similar to this.
#
# V = value
#
# Comment: ABS                - Required for recognizing enemies.
# Comment: ID V                - Enemy ID from the database.
# Comment: Behavior V          - Refer to Enemy AI.
# Comment: Sight V            - See range the enemy can hear.
# Comment: Sound V            - Sound range the enemy can hear.
# Comment: ClosestEnemy V      - Refer to Enemy explantion
# Comment: HateGroup [V]      - Refer to Enemy explantion
# Comment: Aggressiveness V    - How fast will the enemy attack.
# Comment: Speed V            - How fast will the enemy move when in battle
# Comment: Frequency V        - What rate will the enemy move when in battle
# Comment: Trigger V          - Refer to Triggers.
# Comment: Respawn V          - Respawn Time. If 0, then don't respawn
#
# Example:
#
# Comment: ABS
# Comment: ID 1
# Comment: Behavior 1
# Comment: Sight 5
# Comment: Sound 5
# Comment: ClosestEnemy true
# Comment: HateGroup [0]
# Comment: Aggressiveness 1
# Comment: Speed 4
# Comment: Frequency 4
# Comment: Trigger 0
# Comment: Respawn 0[/PHP]

ABS Lite Spoiler
[PHP]# To add a comment, click on the event command list, in the first tab, you should
# see the [ Comment... ] button. It should look similar to this.
#
# V = value
#
# Comment: ABS                - Required for recognizing enemies.
# Comment: ID V                - Enemy ID from the database.
# Comment: Behavior V          - Refer to Enemy AI.
# Comment: Sight V            - See range the enemy can hear.
# Comment: Sound V            - Sound range the enemy can hear.
# Comment: Aggressiveness V    - How fast will the enemy attack.
# Comment: Speed V            - How fast will the enemy move when in battle
# Comment: Frequency V        - What rate will the enemy move when in battle
# Comment: Trigger V          - Refer to Triggers.
# Comment: Respawn V
#
# Example:
#
# Comment: ABS
# Comment: ID 1
# Comment: Behavior 1
# Comment: Sight 5
# Comment: Sound 5
# Comment: Aggressiveness 1
# Comment: Speed 4
# Comment: Frequency 4
# Comment: Trigger 0
# Comment: Respawn 0[/PHP]


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


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


Q: Can I have my party members fight with me?
A: Not with this script. You'll need my SBABS script. Use the search function.

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.
  • 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, I'm a busy person.
  • Download
    1. ABS EvE
    2. ABS Lite



.: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.
[/list][/list][/list]
on the ABS EvE, I didn't really lag at all.
I did like the allies things just like the SBABS you posted.

on the ABS Lite, works fine for me.
No lag at all, no bugs, etc..

The one thing that I really liked about it was the Enemy AI setup.
Gives it a MMORPG feel to it.

Great work indeed.
Thanks for testing, I'm glad to here there was no lag. It is probably my computer, it has like 126MB ram or something.

As for the AI, it took alot of playing games... Fable was the biggest inspirer.
hmm..did get an error when pressing "D"
http://img264.imageshack.us/img264/1821/dns1gq3.png[/img]

line of code:
    return if $game_player.animating_e
Expand to see the code.
Yes, it seems that I somehow forgot to edit a line of code somewhere else. hehe, I could have sworn I checked this error on these ABSs before :-/

Will update tomorrow.
this one cant be disabled either can it? as i only want an abs for certain areas and not all my battles
Downloading leater i coment.....

Edit :
Woah! Greatily but.... can i make diferents tipes of block?
like:
If i have the Bronze Shield the animations of defend is:
"_defend1"
If i have the Iron Shield the animation of Defend is:
"_defend2"
understand?
Like a diferents animations for each shields
And diferents probabilites for DEFEND_DAMEGE_PERCENT for diferents shields!

One Question this ABS [Mr.Mo ABS EvE] is compatible if:
Additional Enemy Drops by SephirothSpawn
And the scripts of More than 4 frame and pixelmovement
????
and how i create a weapon with range like spear?
Alot of bugs .. i am using NP+ 1.7.0 and when i try to edit my old Mr.Mo ABS v4.5 its give me a lot of errors in all the scripts.. and the SDK script in the demo different from the one in 1.7.0... what to do?
@loler12
It's better to wait for NP+2
you right.. but the Global ABS is like Mr.Mo abs cuse i like the item and gold looting and acualy all his abs..
More problams ! take a look at that :

Error line : sprite = $ABS.display_sprite (line 2736)
Error while saving with autosave here is the full code :

class Scene_Save < Scene_File
#--------------------------------------------------------------------------
alias mrmo_abs_scene_save_write_data write_data
#--------------------------------------------------------------------------
def write_data(file)
mrmo_abs_scene_save_write_data(file)
sprite = $ABS.display_sprite
$ABS.display_sprite = nil
Marshal.dump($ABS, file)
$ABS.display_sprite = sprite
end
end

in Mr.Mo`s ABS

Using Darklord, Blue Elf and Meâ„¢ Sutosave Script
Don't use this with N+.

what is the error? A Nil Error?
First off Mr.Mo great script! :) love this system but i got one strange problem i cant seem to cure..

I just switched over to 5.0 from 4.5, and everything works how ever for some reason the Mob events attack with out rest! :(

Anyone else have this prob? or had? and know how to fix? I just got owned by water spell in 3 seconds flat lol! Any help would great.
You have to set the attack rate your self Lenwe, it also applies for spells and such on them, the higher the number the longer it takes for them to attack.
ahh 1 being real fast TY! lol I see, was so simple O_o...

thx again Len

Edit: K.. upping the speed in the event made it worse :/ is there a line im looking for in the script? I probly missed it XD?
Edit: NVM XD fixed it thx again Axerax, all fixed !
Woh...Great but meelee animation is not
what are you talking about?
I think he meant theres no animations for melee attacks. Like sword swinging etc? But I thought I knew there was animations in the previous versions?
who i retreat the "_hit" aimation and put the "_dead" animation?
_dead animation is for when the enemy die he's make a dead animation?
its possible?
1126 return if $game_player.animating_e

error:( :( :(

undefined method '$game_player.animating_e' for #
Answer to the problem in line 1126:
the answer is delete the line! I tried that and... that work!
(I don't deleted the line, but I write # before..)
May 1, 2007

Fixed errors. Uploaded the fixed scripts(in demo).
there is a bug in all the demos (lite, eve, sbabs). if I change the range of a skill (in the demo too, tried to change the range of skill 81 from 15 to 3), it still has an unlimited range.
Its goes more then 3 tiles?
yeah. It has always an unlimited range. (and this time it's not me, because its also like that in the demo).
and same problem with ranged weapons.

sorry for pushing the thread and for double posting. but its important for my project to find a solution for this problem. I need to know, if I am the only one with this error. I dont think so because its also in the demo, but I could not test it on other computers and since I am the only one who has mentioned it...
Again: The problem's that the weapon or skill range cant be changed (ok it can but it has no effect...). its always unlimited.
I can't seem to get my ranged weapons to work. My ranged skills work just fine, but not my ranged weapons. Pluss I can't seem to get my gold count, lvl, or heros name to show up in the HUD.
yeah! I finally found the problem!
I found it by chance, when I tried again with v4.5. there is the same bug, but a small difference in the demo. in the new demo, the ground the hero is standing on has tag 1, in the old demo, only the water had tag 1 and the normal ground had 0. now the range worked fine in 4.5, but not on the water! so the actual bug lies within the pass tag. it gives the weapon, skill an unlimited range.
Ok I got most everything from my previouse problems above figured out now! However, I still have a couple issues.

1.I don't see why my gold count isn't showing up in the HUD along with my lvl, time, and hero name.

2. When I make an explosion move, I get an error and game crashes.
????? 'Mr.Mo's SBABS Lite 1.0' ? 2556 ??? NoMethodError ????????
undefind method `values' for []:Array

3.I would REALY like to know how to change my enemies hp(for bosses and such).

If you could lend me a hand I would appreciate it.
1.I don't see why my gold count isn't showing up in the HUD along with my lvl, time, and hero name.

Gold is displayed in the hud like this:

bitmap = RPG::Cache.icon("Gold")
self.contents.blt(35, 390, bitmap, Rect.new(0, 0, 24, 24))
self.contents.draw_text(30, 400, 640, 32, $game_party.gold.to_s)

did you change that?

3.I would REALY like to know how to change my enemies hp(for bosses and such).
Find this:

draw_gradient_bar(0,0,@enemy.hp,@enemy.maxhp,HP_BAR,HP_WIDTH,HP_HEIGHT)

you can easily change that and also make branches. for example:

if $game_switches[2] == true

draw_gradient_bar(0,0,@enemy.hp,@enemy.maxhp,HP_BAR,(HP_WIDTH * 3),HP_HEIGHT)

else

draw_gradient_bar(0,0,@enemy.hp,@enemy.maxhp,HP_BAR,HP_WIDTH,HP_HEIGHT)


end

Then just turn the switch on before a boss fight.
Nope, never messed with the gold script. I can see the gold icon but not the gold count. Same with hero and exp and time. However, all my bars work and even the mini-map is fine.

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