• 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] Target Unit / Caster won't stop Casting

Status
Not open for further replies.
Level 2
Joined
Nov 17, 2012
Messages
13
I got 2 issues, I'm just starting to learn using the triggers and how to fix
but anyway my first issue is a trigger for a summoning skill
the ability works perfectly fine the only issue is that the trigger was made
so it works on a unit already placed on the map instead on a unit that owns the skill

Special Effect - Create A Special Effect Attached to the origin of Seto Kaiba 0044 <gen> using Abilities\Spells\NightElf\Tranquility\Tranquility.mdl

Unit - Create 1 Obelisk The Tormentor for Player 1 (Red) at (Position of Seto Kaiba 0044 <gen>) facing (Fancing of Seto Kaiba 0044 <gen>) degress

I dunno how to change it so instead of the skill only working on Player (red) Seto Kaiba Unit, to the owner of the skill Obelisk The Tormentor

My second issue is probably a simpler to fix
The spell once again works perfectly fine except for 1 thing
Once the unit cast the spell, it will Loop the animation of the unit casting and makes him unable to move or do any other command.
this one is a bit longer of codes, it has 3 triggers to make the skill function.
each trigger will activate correctly and the dummy units will be removed after they complete their actions, but as I said before the caster wont stop his animation for casting the skill.
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
You should post all your code on your issue so people aren't scrambling to figure out what you've done already.

For your 1st issue:

Your trigger should look something like this: (This is pseudo as I don't have WE on this comp)

  • Events
  • Unit starts the effect of an ability
  • Conditions
  • Ability being cast == Summon Obelisk The Tormentor
  • Actions
  • set TempPlayer = Triggering Player
  • set TempUnit = triggering unit
  • set TempPoint = position of TempUnit
  • Unit - Create 1 Obelisk The Tormentor for TempPlayer at TempPoint facing (Facing of TempUnit) degress
  • Special Effect - Create A Special Effect Attached to the origin of TempUnit using Abilities\Spells\NightElf\Tranquility\Tranquility.mdl
  • Special Effect - (Destroy Last Created SPX)
  • Custom Script: call RemoveLocation(udg_TempPoint)
The variable names are all the type they are i.e. TempPlayer is a Player variable.


The 2nd problem either is a problem of the 3 triggers you don't have posted. Or its based on Channel and you negelected to Set Disable Abilities == False and Follow Thru Time == (Reasonable number). (I think it defaults to like 180)
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
Try and look up how to easily post triggers as no one wants to follow links. I don't see anything wrong per se with your triggers, is more than 1 person casting this at a time? What base ability do you use?
You should look up deathismyfriend's tutorial, things a gui user should know, it will help you greatly.
 
Status
Not open for further replies.
Top