• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Trigger problem... need help

Status
Not open for further replies.
Level 2
Joined
Mar 22, 2008
Messages
20
hi i have a problem again...
i had made an ability, which should copy another ability but i have no idea how to trigger
it should copy an ability beeing cast during the effect time of my ability...
after cooldown of my own ability the copied one should been removed so i can use my own again

i tried it the following way:

My Trigger
Events
- Unit - A unit Begins channeling an ability
Conditions
- ((Unit-type of (Triggering unit)) Equal to MyHero) or ((Unit-type of (Triggering unit)) Equal to MyHero(Demon Form))
- (Ability being cast) Equal to MyAbility
Actions
- ...

but i have found no action to copy a spell casted during my ability
onlything i have found was "Unit - Add ability..." but i think with this one i can't do what i want to do... :confused:

so please help me :)
 
Level 2
Joined
Mar 22, 2008
Messages
20
sry but i dont understand what you mean...

no other unit is under the effect of my spell, only the unit which has the spell

when the ability is activated only my own unit is under its effect
but when another hero casts an ability, this one should be copied by my hero...
show me the trigger you thought i should use, maybe i understand it better
 
Level 9
Joined
Apr 6, 2008
Messages
436
try to do like AJalex says:

TRIGGER 1
-Event: a unit starts the effect of a spell
-Condition: ability being cast = your invented "magnet" spell
-Effect: add the ability "stupid aura which does nothing" to casting unit
-Effect 2: wait 10 game-time seconds
-Effect 3: remove "stupid aura which does nothing" from casting unit


then deselect all the triggers, press Ctrl+B and create a variable of type "Spell" named BUBBA


TRIGGER 2
-Event: a unit starts the effect of a spell
-Condition: target of ability being cast has the ability "stupid aura which does nothing"
-Effect: Set BUBBA = ability being cast
-Effect 2: Add the ability BUBBA to target of ability being cast
 
Level 2
Joined
Mar 22, 2008
Messages
20
my copy spell works well so thanks to you two

but ii have a problem with another spell...
here it is:
Chidori
Events..

- Unit - A unit Starts the effect of an ability

Conditions..

- (Ability being cast) Equal to Chidori
- ((Unit-type of (Triggering unit)) Equal to Uchiha's Rächer) or ((Unit-type of (Triggering unit)) Equal to Uchiha Rächer (Demon Form))

Actions..

- Sound - Play Chidori <gen> at 100.00% volume, attached to ChidoriCaster
- Set ChidoriCaster = (Triggering unit)
- Set ChidoriTarget = (Target unit of ability being cast)
- Set Target = ((Position of ChidoriTarget) offset by 0.00 towards 0.00 degrees)
- Set Caster = ((Position of ChidoriCaster) offset by 1.00 towards 90.00 degrees)
- Set TargetRegion = (Region centered at (Position of ChidoriTarget) with size (25.00, 25.00))
- Unit - Turn collision for ChidoriCaster Off
- Unit - Create 1 Chidori for (Owner of ChidoriCaster) at Caster facing Default building facing degrees
- Set Chidori = (Last created unit)
- Unit - Turn collision for Chidori Off
- Unit - Set Chidori movement speed to (Default movement speed of ChidoriCaster)
- Unit - Pause ChidoriTarget
- Unit - Order ChidoriCaster to Move To Target
- Unit - Order Chidori to Move To Target
- Wait until ((TargetRegion contains Chidori) Equal to True), checking every 0.10 seconds
- If ((Level of Chidori for ChidoriCaster) Equal to 1) then do (Unit - Cause ChidoriCaster to damage ChidoriTarget, dealing 350.00 damage of attack type Spells and damage type Lightning) else do (Wait 0.00 seconds)
- If ((Level of Chidori for ChidoriCaster) Equal to 2) then do (Unit - Cause ChidoriCaster to damage ChidoriTarget, dealing 450.00 damage of attack type Spells and damage type Lightning) else do (Wait 0.00 seconds)
- If ((Level of Chidori for ChidoriCaster) Equal to 3) then do (Unit - Cause ChidoriCaster to damage ChidoriTarget, dealing 550.00 damage of attack type Spells and damage type Lightning) else do (Wait 0.00 seconds)
- Unit - Turn collision for ChidoriCaster On
- Animation - Play Chidori's death animation
- Wait 0.90 seconds
- Unit - Remove Chidori from the game

its finished but the problem is... the actions after
'Wait until ((TargetRegion contains Chidori) Equal to True), checking every 0.10 seconds'
dont work :cry:
(for information: the spell 'Chidori is a dummy spell and have no function)

if someone find out whats the prob with my trigger pls post it
 
Status
Not open for further replies.
Top