[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > Triggers & Scripts


Triggers & Scripts In this forum you may ask for help on fixing a trigger or script. But if you need help getting started with a trigger, this is not the right place — use the World Editor Help Zone.

Closed Thread
 
Thread Tools
Old 07-26-2012, 05:15 PM   #1 (permalink)
Registered User biHmapmaker
I want it all !
 
biHmapmaker's Avatar
 
Join Date: Oct 2009
Posts: 92
biHmapmaker has little to show at this moment (8)
Spell won't work as intended

Triggers
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shadow Souls
Actions
Set SS_caster_target[0] = (Casting unit)
Set SS_caster_target[1] = (Targeted unit)
Set SS_damage_leech[0] = (120 + (Intelligence of SS_caster_target[0] (Include bonuses)))
Set SS_damage_leech[1] = (20 + (Intelligence of SS_caster_target[0] (Exclude bonuses)))
Set SS_points[0] = (Position of SS_caster_target[0])
Set SS_points[1] = (Position of SS_caster_target[1])
Sound - Play HeroLichYesAttack1 <gen> at 100.00% volume, attached to SS_caster_target[0]
Special Effect - Create a special effect attached to the chest of SS_caster_target[0] using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at SS_points[1] using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Cause SS_caster_target[0] to damage SS_caster_target[1], dealing (Real(SS_damage_leech[0])) damage of attack type Spells and damage type Shadow Strike
Unit - Set life of SS_caster_target[0] to ((Life of SS_caster_target[0]) + (Real(SS_damage_leech[1])))
Special Effect - Create a special effect attached to the overhead of SS_caster_target[0] using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_SS_points[0])
Custom script: call RemoveLocation(udg_SS_points[1])


Spell does heal as intended and every special effect works, but it doesn't deal damage. It is based on "Chain of Lighting" spell and the number of targets is 3. I know that it has something to to with targets variables but can't click what. Thanks in advance.
__________________
[BOX=Escape from Hell]
Escape from Hell - Currently working on. Please leave any comment and suggestion - it'd be of great help.
biHmapmaker is offline  
Old 07-26-2012, 05:28 PM   #2 (permalink)
Registered User claptomanic
User
 
Join Date: Jul 2011
Posts: 562
claptomanic is on a distinguished road (86)claptomanic is on a distinguished road (86)
dont use targeted unit use target of ability being cast^^ then itll work xD
claptomanic is offline  
Old 07-26-2012, 05:31 PM   #3 (permalink)
Registered User biHmapmaker
I want it all !
 
biHmapmaker's Avatar
 
Join Date: Oct 2009
Posts: 92
biHmapmaker has little to show at this moment (8)
Quote:
Originally Posted by claptomanic View Post
dont use targeted unit use target of ability being cast^^ then itll work xD
Tnx :=)
__________________
[BOX=Escape from Hell]
Escape from Hell - Currently working on. Please leave any comment and suggestion - it'd be of great help.
biHmapmaker is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 05:35 AM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle