(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-20-2007, 08:28 AM   #1 (permalink)
 
CursedKnight's Avatar

User
 
Join Date: Aug 2006
Posts: 19

CursedKnight is an unknown quantity at this point (0)


Exclamation Special Effect Problem

I made a trigger that:
1) creates a special effect of a barrel of explosive everytime a unit die
2) at the same location after 5 seconds damage is dealt to the area
3) Remove Special Efeect

...the problem is i dunno how to set the removal of the speial effect because if i set it to remove "last created sp" then it might not remove the rite one due to the 5 seconds wait and other units might die during the 5 seconds.
CursedKnight is offline  
Old 04-20-2007, 09:56 AM   #2 (permalink)
Overall Site Manager
 
Wolverabid's Avatar

 
Join Date: Oct 2006
Posts: 8,408

Wolverabid has much of which to be proud (1218)Wolverabid has much of which to be proud (1218)

Respected User: This user has been given the respected user award. User of the Year: 2007 

You should be able to remove the special effect by using a variable.

Simply assign a variable to the special effect after you create it and then remove THAT instead of "last created." Remember to clean up any location leaks too.
__________________
SuperSecretSearchSystem .......Netiquette....... Posting And You..........Read Me.......Vote

Antivirus Chat Dictionary Games Hoaxes Links Music News Quotations Reference Software

[timquote]blah[/timquote]
Wolverabid is offline  
Old 04-20-2007, 10:41 AM   #3 (permalink)
 
CursedKnight's Avatar

User
 
Join Date: Aug 2006
Posts: 19

CursedKnight is an unknown quantity at this point (0)


well i a not very good with variables, so how do i set it up? set the SP i created as a SPvariable using arrays?
CursedKnight is offline  
Old 04-20-2007, 12:07 PM   #4 (permalink)
 
paskovich's Avatar

I am ghost
 
Join Date: Jul 2005
Posts: 846

paskovich has a spectacular aura about (128)paskovich has a spectacular aura about (128)paskovich has a spectacular aura about (128)paskovich has a spectacular aura about (128)


Special effect - Create special effect at <somewhere>
Set SFXvariable = Last created special effect
Wait 5 seconds
Special effect - Destroy SFXvariable
SFXvariable is a special effect variable (big surprise :P)...
__________________
Jimmy Eat World - Let It Happen
"I'm the evil one who said.
Gonna let everything just happen
like my chest, my ears are proud
The collision is such an ugly sound."
Vote for the Hive without mercy!
paskovich is offline  
Old 04-20-2007, 01:42 PM   #5 (permalink)
 
C4pt4in's Avatar

User
 
Join Date: Feb 2007
Posts: 29

C4pt4in is an unknown quantity at this point (0)


But in those 5 seconds, the trigger might set another SFX and then the trigger will destroy the wrong SFX. Or am I going crazy here?
C4pt4in is offline  
Old 04-20-2007, 01:45 PM   #6 (permalink)
 
DragoonZombie's Avatar

Back to business.
 
Join Date: Mar 2005
Posts: 286

DragoonZombie is a jewel in the rough (194)DragoonZombie is a jewel in the rough (194)


you can use a array for that. Or copy the "DestroyFX" trigger from 2004/5 Extreme Candy War. It helped me alot.
DragoonZombie is offline  
Old 04-20-2007, 03:41 PM   #7 (permalink)
 
paskovich's Avatar

I am ghost
 
Join Date: Jul 2005
Posts: 846

paskovich has a spectacular aura about (128)paskovich has a spectacular aura about (128)paskovich has a spectacular aura about (128)paskovich has a spectacular aura about (128)


Quote:
Originally Posted by C4pt4in View Post
But in those 5 seconds, the trigger might set another SFX and then the trigger will destroy the wrong SFX. Or am I going crazy here?
Yes, this is not MUI. But you can implement a little custom script:
Custom script - local effect sfx = null
Special effect - Create SE .. blahblah
Custom script - set sfx = bj_lastCreatedEffect
//Do actions here
Wait 5 seconds
Custom script - call DestroyEffect(sfx)
This is fully MUI.
One thing is important: The first line you see above MUST be the first of your trigger too! Start your trigger with
Custom script - local effect sfx = null
__________________
Jimmy Eat World - Let It Happen
"I'm the evil one who said.
Gonna let everything just happen
like my chest, my ears are proud
The collision is such an ugly sound."
Vote for the Hive without mercy!
paskovich is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Effect Competition #1! Chriz. Contest Archive 267 01-31-2008 06:40 PM
Special Effect L_believer World Editor Help Zone 7 04-30-2007 02:04 AM
Why doesn't my special effect go away? TorontoRock Map Development 2 12-24-2004 07:10 PM
Damage --> Special Effect orcfan32 Triggers & Scripts 7 12-24-2004 06:25 AM
help with special effect †-DivineAngelOfSorrow-† Map Development 6 08-19-2004 07:40 PM

All times are GMT. The time now is 08:16 AM.






Your link here 
Loans | Cheat Codes | Credit Counseling | Debt Consolidation | Loans
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle