Author Topic: [XP] Damage Images  (Read 11705 times)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
[XP] Damage Images
« on: January 16, 2011, 11:52:42 PM »
Damage Images
Authors: game_guy
Version: 1.4
Type: Damage Display
Key Term: Battle Add-on

Introduction

Want to spice up the way your damage looks? Tired of plain old text? Well now you can use images as a replacement for the text! Have different images for healing, dealing damage, miss and critical!

Features

  • Image for Normal Damage
  • Image for Healing Damage
  • Image for Miss
  • Image for Critical
  • Image for Defend (Blizz-ABS Only)
  • Image for Level Up (Blizz-ABS Only)
  • Basically Plug & Play

Screenshots

(click to show/hide)

Demo

Self Extracting Archive (1.4)
Zip Archive (1.4)

Script

There are images you can use from the demo.
(click to show/hide)

Instructions

In the script.

Compatibility

Not tested with SDK.
Most likely will not work with any other battle damage display mods.
Works with Blizz-ABS. Place below Blizz-ABS

Credits and Thanks

  • game_guy ~ For creating it.
  • Blizzard ~ For having a fancy visual damage display in LoL. (which inspired me)
  • winkio ~ Help with more efficient method for Blizz-ABS add-on

Author's Notes

Enjoy!
« Last Edit: January 19, 2011, 09:59:31 PM by game_guy »

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 815
  • LV: 510
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Damage Images
« Reply #1 on: January 17, 2011, 02:19:23 AM »
is this can be used with blizz abs?

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Damage Images
« Reply #2 on: January 17, 2011, 09:04:13 AM »
Possibly. Not tested. Could you test it out for me? I'm not sure if Blizz-ABS uses the same method name for drawing sprite damage. If you do test it out, place the script below Blizz-ABS.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 815
  • LV: 510
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Damage Images
« Reply #3 on: January 17, 2011, 03:30:27 PM »
I tested it with blizz abs 2.8.0 and didn't have any effect

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Damage Images
« Reply #4 on: January 17, 2011, 09:35:25 PM »
Alright. I'll try and make a plug-in for it then.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19903
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Damage Images
« Reply #5 on: January 17, 2011, 10:38:00 PM »
This should be easy enough. You have the SpriteDamage class (or a similar name) that you just need to adjust so it works fine.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Damage Images
« Reply #6 on: January 18, 2011, 12:30:12 AM »
Updated to work with Blizz-ABS. Tested myself.

Offline Storm

  • Awakened Visionist
  • **
  • Posts: 62
  • LV: 0
  • THE ORION ROCKS!
    • View Profile
    • The Orion Forum
Re: [XP] Damage Images
« Reply #7 on: January 18, 2011, 01:24:44 AM »
Whoa, worked with RPG and ABS (Blizz's one). Awesome game_guy. :D
I was working on the game called The Orion.
It would be nice if you can join our small community by sharing a little by little scripts/ideas at The Orion Forum

I am: RPG Maker XP Scripter
Project Working On: The Orion MMORPG Game, visit The Orion Forum for more information!
Visit my: Deviantart

LEVEL ME UP OR ELSE LEVEL ME DOWN, IT'S EASY! XD


Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 815
  • LV: 510
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Damage Images
« Reply #8 on: January 18, 2011, 03:07:13 AM »
when I heal my character it shows damage sprite (dmg_normal.png) instead of healing sprite (dmg_heal.png)

(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Damage Images
« Reply #9 on: January 18, 2011, 04:32:20 AM »
Updated to 1.2beta

Its possible that it could be unstable. I rewrote a method in the Utility class in order for heal damage to work correctly. Now I won't know if I need to redo something or go about it a different way until someone runs into a bug or if winkio or blizzard takes a look at it.

All I did was remove all the times .abs were called from it. But it still may cause errors or bugs later on down the road.

Offline Storm

  • Awakened Visionist
  • **
  • Posts: 62
  • LV: 0
  • THE ORION ROCKS!
    • View Profile
    • The Orion Forum
Re: [XP] Damage Images
« Reply #10 on: January 18, 2011, 04:49:46 AM »
Updated to 1.2beta

Its possible that it could be unstable. I rewrote a method in the Utility class in order for heal damage to work correctly. Now I won't know if I need to redo something or go about it a different way until someone runs into a bug or if winkio or blizzard takes a look at it.

All I did was remove all the times .abs were called from it. But it still may cause errors or bugs later on down the road.

How did you manage to read all the code in Blizz-ABS?? :wacko:
You are awesome!!! :haha:
I will use this if I make ABS games....
I was working on the game called The Orion.
It would be nice if you can join our small community by sharing a little by little scripts/ideas at The Orion Forum

I am: RPG Maker XP Scripter
Project Working On: The Orion MMORPG Game, visit The Orion Forum for more information!
Visit my: Deviantart

LEVEL ME UP OR ELSE LEVEL ME DOWN, IT'S EASY! XD


Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5128
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Damage Images
« Reply #11 on: January 18, 2011, 05:42:18 AM »
Updated to 1.2beta

Its possible that it could be unstable. I rewrote a method in the Utility class in order for heal damage to work correctly. Now I won't know if I need to redo something or go about it a different way until someone runs into a bug or if winkio or blizzard takes a look at it.

All I did was remove all the times .abs were called from it. But it still may cause errors or bugs later on down the road.

How did you manage to read all the code in Blizz-ABS?? :wacko:
You are awesome!!! :haha:
I will use this if I make ABS games....

simple answer, you don't. the few times I've extended Babs I only looked at the methods I needed to and I only retained the information long enough to write the script. I only know enough about the way Babs works to know where to look if I need to modify or extend something.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Storm

  • Awakened Visionist
  • **
  • Posts: 62
  • LV: 0
  • THE ORION ROCKS!
    • View Profile
    • The Orion Forum
Re: [XP] Damage Images
« Reply #12 on: January 18, 2011, 05:45:11 AM »
Updated to 1.2beta

Its possible that it could be unstable. I rewrote a method in the Utility class in order for heal damage to work correctly. Now I won't know if I need to redo something or go about it a different way until someone runs into a bug or if winkio or blizzard takes a look at it.

All I did was remove all the times .abs were called from it. But it still may cause errors or bugs later on down the road.

How did you manage to read all the code in Blizz-ABS?? :wacko:
You are awesome!!! :haha:
I will use this if I make ABS games....

simple answer, you don't. the few times I've extended Babs I only looked at the methods I needed to and I only retained the information long enough to write the script. I only know enough about the way Babs works to know where to look if I need to modify or extend something.

Are you saying I'm walking on the difficult road while you are walking on the easy road? :???:
I will learn this script and Blizz-ABS then. Thanks for suggestions.
I was working on the game called The Orion.
It would be nice if you can join our small community by sharing a little by little scripts/ideas at The Orion Forum

I am: RPG Maker XP Scripter
Project Working On: The Orion MMORPG Game, visit The Orion Forum for more information!
Visit my: Deviantart

LEVEL ME UP OR ELSE LEVEL ME DOWN, IT'S EASY! XD


Offline winkio

  • Epiq
  • Administrator
  • Guardian of Chaos
  • *****
  • Posts: 4506
  • LV: 199
  • Gender: Male
  • I am lying.
    • View Profile
Re: [XP] Damage Images
« Reply #13 on: January 18, 2011, 06:59:57 AM »
Updated to 1.2beta

Its possible that it could be unstable. I rewrote a method in the Utility class in order for heal damage to work correctly. Now I won't know if I need to redo something or go about it a different way until someone runs into a bug or if winkio or blizzard takes a look at it.

All I did was remove all the times .abs were called from it. But it still may cause errors or bugs later on down the road.

Wait, why would removing abs fix it?  Anyways, for a solution, I'd just alias it, and only do your processing if certain conditions are met (like healing, or whatever).

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Damage Images
« Reply #14 on: January 18, 2011, 07:05:18 AM »
Because the .abs made the negative damage (the healing damage) into a positive damage. My script checks to see if the value is less then 0 that way it knows if its healing or not.  I wasn't sure if removing those would cause anything but when I did remove it I was pretty positive it wouldn't conflict with anything. But I wouldn't know. Blizz-ABS is very very complex to me. :S

Anyways I'm going to alias the method and do a few things to try and make it non conflicting.

Offline winkio

  • Epiq
  • Administrator
  • Guardian of Chaos
  • *****
  • Posts: 4506
  • LV: 199
  • Gender: Male
  • I am lying.
    • View Profile
Re: [XP] Damage Images
« Reply #15 on: January 18, 2011, 07:15:00 AM »
oh, that's easy, you don't even need to do anything with the Blizz-ABS methods.  Just in your Damage_Sprite modifications, branch based on request.color

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Damage Images
« Reply #16 on: January 19, 2011, 02:55:57 AM »
Updated to 1.3.

Added images for Defend and Level Up for the Blizz-ABS add-on. Removed method overwrite. Works like a charm now ;)

Offline ShadowSaber

  • Trained Member
  • *
  • Posts: 35
  • LV: 7
    • View Profile
Re: [XP] Damage Images
« Reply #17 on: January 19, 2011, 04:47:40 AM »
I get an error with this script, what should i do?




---edit : sorry I realized I placed the script wrong
« Last Edit: January 19, 2011, 04:49:01 AM by ShadowSaber »

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 509
  • LV: 16
    • View Profile
Re: [XP] Damage Images
« Reply #18 on: January 19, 2011, 04:48:59 AM »
Post the error message so someone can help.

Offline ShadowSaber

  • Trained Member
  • *
  • Posts: 35
  • LV: 7
    • View Profile
Re: [XP] Damage Images
« Reply #19 on: January 19, 2011, 05:08:59 AM »
Post the error message so someone can help.

nevermind, I placed the script above BABS that's why i got an error  :shy: