Corpse Explosion Request

Solu9

You can change this now in User CP.
If you have played Diablo II you know what I am talking about.

I need a spell which is used on a corpse. The corpse then explodes damaging nearby enemies for 60%-100% of the corpse's health when it was alive.

Ex. A Footman has 100 health points. He is killed. Then Corpse Explosion is used on his corpse which then explodes and damages enemies in a 300 radius from the corpse for 60-100 points of damage.

This is way too complicated for me to complete, so I hope you can help me out.
 

NoobImbaPro

You can change this now in User CP.
First you have to store unit's max life when it dies and then detect the dead unit's life, I prefer you use vJass to accomplish this, AIDS or PUI will help you, as they store units into arrays and then you can detect their max life to make anything you need.
 

Dinowc

don't expect anything, prepare for everything
Make it a point target spell with a small AoE and then pick a corpse within it through triggers. Pretty sure you can detect a dead unit's max hp, so no need for storing it in variables.

@NIP ninja-edited :D
 

NoobImbaPro

You can change this now in User CP.
Or cannibalize, I prepare you a map with what you want, w8 a while.

EDIT: Feel free to ask me anything

It's written in vJass so you have to use latest jassnewgenpack with latest JassHelper installed.
 

Attachments

GFreak45

I didnt slap you, i high 5'd your face.
heres how i would do it...
i would use the ghoul feeding frenzy ability that auto targets corpses as the base ability

Trigger:
  • Corpse Explosion Damage
    • Events
      • A unit finishes casting an ability
    • Conditions
      • Ability being cast is equal to (ability name) is true
    • Actions
      • Set Corpse_Explosion_Damage (real variable) = (Max life of (Target unit of ability being cast))
      • Pick all units within (damage range) of target of ability cast and do actions
        • If, then, else do actions
          • If (Conditions)
            • Owner of picked unit is an enemy of owner of triggering unit
          • Then (actions)
            • Unit - Cause triggering unit to deal damage to picked unit equal to (math for damage based on Corpse_Explosion_Damage)
          • Else (actions)


you would also have to change the duration of the frenzy ability to 0 and the heal to 0 and the range to w/e u want it, and u can also lower the cast backswing on the unit with the ability so the unit doesnt keep sitting there casting on nothing after it finishes, or you could add an action telling the unit to stop after it deals the damage
 

Solu9

You can change this now in User CP.
Sorry I havn't checked it yet since Im currently very busy testing a map with a friend. I'll get back to you once I have the time.

Thanks in advance :)
 

NoobImbaPro

You can change this now in User CP.
NONONO its only for this trigger, just copy the triggers inside your map and the ability CE and the unit DUMMY because I use dummy caster system.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Why not base the spell off Animate Dead? Then have a periodic check for units with the Animate Dead buff, kill them and deal damage to all units within range for (60-100) /100 * the unit's maximum life. Since Animate Dead basically makes a copy of the dead unit, you don't need to store anything.
 

NoobImbaPro

You can change this now in User CP.
I think he wants to target one corpse man. That's why I made it like this. And I don't store anything, it was totally wrong what I said at the second post.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
How do you target a corpse? AFAIK corpses can't be targeted. Even so, you could always modify Channel and make a dummy cast Animate Dead at the corpse's location, with a minuscule AoE.
 

NoobImbaPro

You can change this now in User CP.
Of course not, I just get the units in 85 range of target point, check witch is closest corpse, remove it and add a blowing or something effect.
 

Solu9

You can change this now in User CP.
I have tested NoobImbaPro's map and the Corpse Explosion works very well.

A further request though. Could you make the "exploding corpses" have a more crazy explosion effect? The Human Mortar Team Attack Ground explosion?
 

GFreak45

I didnt slap you, i high 5'd your face.
you can add an action that runs another trigger creating the desired effect
 

NoobImbaPro

You can change this now in User CP.
In the trigger I gave you solu9 you at top a field called GLOBALS-ENDGLOBALS
Inside that field there are some variables, so you can modify them. When you choose a special effect and press ok you go to the window with the effect list. Now click the effect you choose and edit it. Now at the very bottom of the window you see it's path.
Copy and paste it inside the string:
Now this is the effect I have chosen:
JASS:
private constant string SpecialEffect = "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl"

As you see is inside these "" witch defines the path as a string variable. Also you see the double "\" witch defines that is that symbol, because there are others like \n (line chance), \b (backspace), etc....

And now put there the one you want to change the effect of your ability. In trigger I added comments to help you understand what I am doing. Comments are the green characters
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I am not complaining though Hurricanes are not fun I have been through alot of them
  • Blackveiled Blackveiled:
    I evacuated for it just incase since I live in La Porte pretty much right on the water (in Houston area). Didn't see anything. It's a good thing for me anyways.
  • Ghan Ghan:
    It's too bad that Blizzard messed up so terribly with Reforged.
  • Ghan Ghan:
    Still has a 0.6 user metacritic score.
  • Ghan Ghan:
    (Out of 10)
  • Varine Varine:
    I haven't even tried it yet because everyone said it sucked. How do you get .6 out of ten?
  • The Helper The Helper:
    I am waiting for Dwarf Fortress to come out on Steam then I am on it.
  • Accname Accname:
    I play Dwarf Fortress from time to time.
  • Accname Accname:
    Its Okay.
  • Accname Accname:
    But the performance is sub-par. Does not seem to be well optimized.
  • Varine Varine:
    Is the Steam version coming with a graphical overlay or is it using the ASCII graphics still?
  • tom_mai78101 tom_mai78101:
    Steam version has the graphical overlay.
  • The Helper The Helper:
    Steam Version has graphics, a new interface and will be integrated in the steam mod stuff
  • Blackveiled Blackveiled:
    I didn't think WC3 Reforged was that bad. It pretty much did what it stated (to me at least), but then again I can care less about reforged campaigns and all that. I just care about gameplay.
  • Varine Varine:
    I think people were hoping for a resurgence in mod support. I have little interest in the actual game tbh
  • Varine Varine:
    Plus I know they added that Dota precedent clause where Blizzard can steal your shit which isn't cool.
  • Ghan Ghan:
    They sold Reforged to the community as primarily a huge graphical uplift with high res textures and redone cinematics.
  • Ghan Ghan:
    They even showed one of the redone cinematics at Blizzcon and that very cinematic wasn't even in the released game.
  • Ghan Ghan:
    So I think folks were angry about that.
  • Varine Varine:
    Didn't the backwards compatability have issues too?
  • Accname Accname:
    I never had any hopes for that. Blizzard is not the same company it was 10 years ago.
  • The Helper The Helper:
    It happens in corporations. They just absorb the companies they buy and it is not about the love of making awesome games it is how much money can we make with the least amount of cost.
  • The Helper The Helper:
    Blizzard is watered down now hopefully they can pull it together
  • The Helper The Helper:
    they got a server engineer job opening :)

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top