Corpse Explosion Request

Solu9

You can change this now in User CP.
Reaction score
216
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.
Reaction score
60
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
Reaction score
223
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.
Reaction score
60
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

  • ExplodeME.w3x
    23.6 KB · Views: 239

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
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.
Reaction score
216
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 :)
 

Solu9

You can change this now in User CP.
Reaction score
216
Solu9 why you don't get the map I made with the spell you need??

Click Me !

Oh didn't see your post. Well it is in vJass, and from what I know it will charge everything into vJass thus I won't be able to keep on working in GUI?
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
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.
Reaction score
613
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.
Reaction score
60
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.
Reaction score
613
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.
Reaction score
60
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.
Reaction score
216
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.
Reaction score
130
you can add an action that runs another trigger creating the desired effect
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
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
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top