• 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] Create special effect at position no longer works

Status
Not open for further replies.
Level 2
Joined
May 24, 2008
Messages
21
Howdy everyone,

My current attempts to create a special effect at the position of a unit are not working. I have checked everything many times and the triggers are made in a manner that used to work just fine. I just tried a few older triggers that used to work just fine to be sure, creating SFX at positions of items and units etc, these also no longer work.

I can create SFX on units no problem, so I am bit puzzled here. I work in the editor on and off during the year but maybe something changed in my time away from the editor? I have searched the forum and googled for the past hour looking for mentions of this issue but I haven't found anything.

Any ideas my friends?

  • Unit - A unit Is attacked
  • Special Effect - Create a special effect at (Position of (Attacked unit)) using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
 
Level 2
Joined
May 24, 2008
Messages
21
Thank you.

I changed things around so that I am creating the SFX at a variable-based location. Does this look correct? I already tried things with and without the destroy trigger and still am not seeing the effect at all.

  • Set player_locpoint[(Player number of (Owner of (Attacked unit)))] = (Position of (Attacked unit))
  • Special Effect - Create a special effect at player_locpoint[(Player number of (Owner of (Attacked unit)))] using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
  • Special Effect - Destroy (Last created special effect)
I also just made a brand new test map with a single SFX at unit location trigger and it did not work. This is very peculiar because these sorts of things used to work for me and as you say, they should work fine right now they just leak. Thanks again.
 
Level 9
Joined
Oct 17, 2007
Messages
547
Sample

Heres what i meant by get rid of leaks.. open this map in WC3. Its really simple to do.
 

Attachments

  • SFX_Example.w3x
    13.4 KB · Views: 46
Level 2
Joined
May 24, 2008
Messages
21
Thank you for taking the time to make that example map for me. The script point removal will benefit my map, I appreciate it.

Still though, the SFX are not working for me in the triggers you set up, I also tried it with changing "triggering unit" to attacking and casting units and still nothing.

Twilight Zone.
 
Level 9
Joined
Oct 17, 2007
Messages
547
It works... when the unit gets attack the special effect gets play on the unit thats being attacked.. there must be something wrong with the settings you got for wc3
 
Level 2
Joined
May 24, 2008
Messages
21
That is the conclusion I am starting to draw, or perhaps some sort of corruption in the game files themselves who knows. I have a nice machine and am running everything on high etc. I installed from the original CDs, have a clean system etc. The fact that all of these SFX display just fine on units but changing them to position results in not working is totally oO. Thanks again mate.
 
Level 1
Joined
May 25, 2008
Messages
1
In your second example you have the effect being removed immediately after it is created. Is this on purpose, because an effect that is removed right after it is produced is extremely short-lived.
 
Level 4
Joined
May 17, 2008
Messages
75
Yes, it is intended. A destroyed special effect won't disappear immediately but will be removed from the game automatically after 5 seconds (depending on one of the game constants). This is more than sufficient for short-lived spell effects.
 
Level 2
Joined
May 24, 2008
Messages
21
Thanks guys. There are some effects that do not work with immediately destroying but I have found that most of them do work just fine. Unfortunately this is unrelated to the weird issue I am currently experiencing.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
The ones that don't work properly when destroying is because they have a death animation which replaces their current one when they are destroyed, for obvious reasons.

As for your problem, post the exact trigger, please. There are all sorts of problems that could be happening in between the event and that action.
 
Level 2
Joined
May 24, 2008
Messages
21
I suppose I should have used an old technique for countering random problems, restarting the OS. I keep my rig on 24/7 these days and put it into sleep some nights, so I suppose I hadn't restarted in at least a week. I just tried all of these triggers after restarting last night again and they work again.

So the, I likely have a memory leak on some of my triggers, and this seemingly stacked up over a week during various testing until that part of the RAM was clogged and unusable? Time to work on cleaning up some of my unit group things and SFX destruction I believe. Thanks a lot guys.
 
Status
Not open for further replies.
Top