HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How How and How

05-14-2005, 07:35 AM#1
Guest
I want to make an Fade Filter action on death heros.When heros dies it will be red filter using texture dream.But I have a problem.The Filter is for all players and when one of players death the other players see the red filter too.I want only death heros to see the red filter but the Trigger editor doesn't have this function.I thing there is a script for these,but I'm not sure.Could you help me PLS???
05-14-2005, 11:30 AM#2
ghenjis
I don't know if I get what you're saying but try this out for size, you need World Editor Unlimited, which can be found in the download/tools section, once you get that go to advanced and its under there

Events
Unit - Archmage 0000 <gen> Dies


Conditions
(Owner of Archmage 0000 <gen>) Equal to Player 1 (Red)


Actions
Advanced - Apply a filter for Player 1 (Red) over 2.00 seconds using Normal blending on texture Dream, starting with color (100.00%, 100.00%, 100.00%) and 100.00% transparency and ending with color (0.00%, 0.00%, 0.00%) and 0.00% transparency


Good luck to ya!


EDIT: I realized you'll habve to make this trigger for every color and player, so if it's a game that the player only has one unit, this would save you ALOT more time

Events
Unit - A unit owned by Player 1 (Red) Dies


Actions
Advanced - Apply a filter for Player 1 (Red) over 2.00 seconds using Normal blending on texture Dream, starting with color (100.00%, 100.00%, 100.00%) and 100.00% transparency and ending with color (0.00%, 0.00%, 0.00%) and 0.00% transparency
05-14-2005, 11:48 AM#3
Anitarf
You don't neccesarily need an advanced editor, you can do this with the basic WE.
Code:
Custom script:   if GetLocalPlayer() == Player( GetOwningPlayer( GetDyingUnit() ) ) then
Cinematic - Apply a filter over 0.01 seconds using Normal blending on texture Scope, starting with color (0.00%, 0.00%, 0.00%) and 100.00% transparency and ending with color (0.00%, 0.00%, 0.00%) and 0.00% transparency
Custom Script:   endif
Note that I used the action "advanced fade filter", as basic fade filters would desync the game if used this way, according to what I read in a thread here. The way I wrote this, it is intended to be used in a trigger that runs on the "unit dies" event, from your description I assumed that's where you want to use it.
05-15-2005, 06:01 AM#4
Guest
The script has error "if GetLocalPlayer() == Player( GetOwningPlayer( GetDyingUnit() ) ) then" this is the error that the editor show me when I try to test the map.Can you reconize your script, Anitarf."Line 3319 Invalid argument type (player)" For the unlimited Editor, ghenjis is great but I think my editor can take in.The version of Frozen throne is 1.07 and world editor is 6031.It's not original and any update i try has no effect :(
05-15-2005, 10:32 AM#5
Guest
ARGH...i download this WE Unlimited but when I activate this option for Cinematic filter for Player 1(I just do it for ((Owner of trigerring unit))) I can't save or test my map.This option can't get in of my warcraft...is this is of my current version of editor and game I type in previous message???