• 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] What ability??

Status
Not open for further replies.
Level 7
Joined
May 23, 2011
Messages
179
  • Teleport
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Teleportation (Unknown)
    • Actions
      • Set CasterLocation = (Position of (Triggering unit))
      • Set TargetPlace = (Target point of ability being cast)
      • Special Effect - Create a special effect at CasterLocation using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
      • Wait 3.50 seconds
      • Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Unit - Move (Triggering unit) instantly to TargetPlace
      • Custom script: call RemoveLocation(udg_CasterLocation)
      • Custom script: call RemoveLocation(udg_TargetPlace)
Guys what ability fits for my newly created skill??? Please help...
 
Level 7
Joined
May 13, 2011
Messages
310
I think that the problem lies in the Event. You should probably use "unit begins casting/chanelling ability" rather than "unit starts the effect of an ability".

  • Teleport
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Teleportation (Unknown)
    • Actions
      • Set CasterLocation = (Position of (Triggering unit))
      • Set TargetPlace = (Target point of ability being cast)
      • Special Effect - Create a special effect at CasterLocation using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
      • Wait 3.50 seconds
      • Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Unit - Move (Triggering unit) instantly to TargetPlace
      • Custom script: call RemoveLocation(udg_CasterLocation)
      • Custom script: call RemoveLocation(udg_TargetPlace)
See if that works.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • Unit - A unit Starts the effect of an ability
This is the most common usage of Event-spell trigger, however, it seems that you used "Wait" which means the spell is delayed or even perhaps, channeling
Therefore, use the Event - Unit - Finishes casting an ability

  • Set CasterLocation = (Position of (Triggering unit))
This is a waste of time because you doesn't even use this in your current trigger, therefore, delete this line and also the RemoveLocation(udg_CasterLocation) which you saved a useless data.

Are you talking about the Special Effect help ?
To choose what Special Effect will be suitable for this spell ?
Well, creativity cannot be taught, it's a gift.
 
Level 7
Joined
May 13, 2011
Messages
310
Have you tried defskull's suggestions? That is, using a different event.

Here's what he said:

  • Teleport
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Teleportation (Unknown)
    • Actions
      • Set CasterLocation = (Position of (Triggering unit))
      • Set TargetPlace = (Target point of ability being cast)
      • Special Effect - Create a special effect at CasterLocation using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
      • Wait 3.50 seconds
      • Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Unit - Move (Triggering unit) instantly to TargetPlace
      • Custom script: call RemoveLocation(udg_CasterLocation)
      • Custom script: call RemoveLocation(udg_TargetPlace)
Just thought to simplify it into a trigger in case you needed some help.

  • Set CasterLocation = (Position of (Triggering unit))
This is a waste of time because you doesn't even use this in your current trigger, therefore, delete this line and also the RemoveLocation(udg_CasterLocation) which you saved a useless data.

Actually, he does use it, in this line:

  • Special Effect - Create a special effect at CasterLocation using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
 
Level 9
Joined
Dec 12, 2007
Messages
489
i think he is not talking about the trigger...

for your ability, set the
  • (Ability being cast) Equal to Teleportation (Unknown)
into an ability that target point, e.g Carrion Swarm, Shockwave, or Summon Ward etc.
or if you have already created a custom ability.
like:
  • (Ability being cast) Equal to Shockwave
and then, don't forget to add the ability to your Hero.
make sure the ability in the trigger match with the one you add to the Hero.
after that try it ingame.

and to those people above,
the event "Starts the effect of an ability" is already perfect for what he attempt to achieve (for now).
other event like "Finishes casting an ability" will fire when the unit has "Starts the effect of an ability" + finishes it cast animation.
"Begin casting an ability" will fire when the ability is going to be casted, before cooldown and manacost is applied, and it can be abused if used improperly.
so "Starts the effect of an ability" is the best option for what he attempt now.

and:
@defskull: a delayed effect =/= channeling spell.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Delayed Effect Spell
You cast a spell (the spell starts of right after you cast a spell) and the cooldown, mana cost, will reduced upon casting but the spell effect doesn't seem to takes place yet (in this period, you can either move, attack, or do other stuffs while retain the spell effect after the 3.50 seconds has ended). Therefore, after a 3.50 seconds delay, the spell effect takes place (the spell effect will also takes place even if you move, or issue another command/order for that unit now this is what we call as Delayed Spell

Channeling Spell
You cast a spell, that needs a 3.50 exact seconds to perform this spell, best use is Finishes casting an ability, meaning, once you start the spell, you can't move the unit, order it to attack, etc, because that will not achieve of that unit casting the ability for 3.50 seconds, therefore the spell is canceled if you order another action within the channeling time

As you can see, 2 different scenarios being shown above, thread starter failed to explain which method did he want
Obviously, Delay and Channeling is 2 different things
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
You don't seem to get what i said, defskull.
It's obviously a delayed effect or a channeled spell, however, in either case using the event 'A unit finishes casting an ability' wouldn't be good. If you use that event for:
-a channeling spell: the unit would channel for some time, then once it finishes (fires the event), it would wait 3.5 seconds for the effect to start (2 delays)
-instant cast, delayed effect spell: since it's an instant cast, the unit starts the effect and finishes casting the spell at same time, so it's same as using the event 'A unit starts the effect of a spell'.
 
Level 5
Joined
Jul 16, 2009
Messages
80
Why don't you just use the default Blink ability with 3.5 seconds casting time?

If you want it to teleport 3.5 seconds after spending mana (and the skill is in cooldown), then create a dummy point-targeting spell and use trigger to move your hero/unit.

Nevertheless, you should have provided forum users with more details about how the spell works. All the conditions and effects that it should have. What is your spell supposed to do? And what are the requirements for it to be successful?

The rule of THW says: Help us help you. I would love to help, please don't hesitate or feel shamed to ask.
 
Status
Not open for further replies.
Top