HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Finger of Death Based Ability Not Working

10-31-2008, 05:54 PM#1
SeruK
Why is it not working?

Trigger:
Megaslam
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Megaslam (Gaia, Automaton)
Collapse Actions
Set abi_TempPointAutomaton = (Position of (Target unit of ability being cast))
Wait 0.30 seconds
Set x_TempGroup = (Units within 200.00 of abi_TempPointAutomaton)
Collapse Unit Group - Pick every unit in x_TempGroup and do (Actions)
Collapse Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (250.00 - (Distance between (Position of (Picked unit)) and x_TempPoint)))
Custom script: call DestroyGroup(udg_x_TempGroup)
Special Effect - Create a special effect at abi_TempPointAutomaton using war3mapImported\Explosion.mdx
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at abi_TempPointAutomaton using war3mapImported\ground.mdx
Special Effect - Destroy (Last created special effect)
Sound - Play SlamImpact <gen> at 100.00% volume, located at abi_TempPointAutomaton with Z offset 0.00
Custom script: call RemoveLocation(udg_abi_TempPointAutomaton)

Based on the finger of death ability. Just trying to give it a splash damage trough triggers. It's just the whole actual damage code.
10-31-2008, 07:17 PM#2
Av3n
umm... x_TempPoint, doesn't get assigned a value in the spell? (In the damage part)

-Av3n
11-03-2008, 10:10 PM#3
petv
I'm not good at explaining these things so i just took a couple minutes and made this test map. It's the same concept except i used "Unit - Damage Area"


Trigger:
testtrigger
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
(Ability being cast) Equal to Finger of Blah (Neutral Hostile)
Collapse Actions
Set temppoint = (Position of (Target unit of ability being cast))
Wait 0.30 seconds
Set tempgroup = (Units within 200.00 of temppoint)
Collapse Unit Group - Pick every unit in tempgroup and do (Actions)
Collapse Loop - Actions
Unit - Cause (Casting unit) to damage circular area after 0.30 seconds of radius 200.00 at temppoint, dealing ((250.00 - (Distance between (Position of (Target unit of ability being cast)) and (Position of (Picked unit)))) damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_tempgroup)
Custom script: call RemoveLocation(udg_temppoint)

Test map uploaded if you want to quickly test it first. I hope i didn't mess up in there.

EDIT: i actually did mess up lol. i'll take another look at it later.
Attached Files
File type: w3xtestmap.w3x (10.7 KB)
11-03-2008, 10:16 PM#4
Rising_Dusk
I took the liberty to rename your thread to actually mean something. :)

You should be using "starts the effects of" for the event, you should use the 'Unit - Damage Target' actions for dealing the damage, and what av3n said about the x_TempPoint never being assigned.
11-17-2008, 11:34 PM#5
SeruK
Oh fuckits! I haven't opened WE in quite some while and I forgot about this. Sorry kind people. :( I'll see if I can get it to work.
Quote:
Originally Posted by Av3n
umm... x_TempPoint, doesn't get assigned a value in the spell? (In the damage part)

-Av3n
heh :3

--

Aight great, this is working properly:

Trigger:
Megaslam
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Megaslam (Gaia, Automaton)
Collapse Actions
Set x_TempPoint = (Position of (Target unit of ability being cast))
Set x_TempGroup = (Units within 200.00 of x_TempPoint)
Collapse Unit Group - Pick every unit in x_TempGroup and do (Actions)
Collapse Loop - Actions
Unit - Cause (Casting unit) to damage (Picked unit), dealing (250.00 - (Distance between (Position of (Picked unit)) and x_TempPoint)) damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_x_TempGroup)
Special Effect - Create a special effect at x_TempPoint using war3mapImported\Explosion.mdx
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at x_TempPoint using war3mapImported\ground.mdx
Special Effect - Destroy (Last created special effect)
Sound - Play SlamImpact <gen> at 100.00% volume, located at x_TempPoint with Z offset 0.00
Custom script: call RemoveLocation(udg_x_TempPoint)

Thanks a bunch. :)

Now all I have to figure out is why the bastard has lost his attack...