HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Fade Filter for one player?

06-06-2006, 02:15 AM#1
Ares_WarBlade
Is there a way to apply a fade filter to specific players besides using the advanced triggers from WEU? WEU advanced triggers always give a bamillion compiler errors so those are out of the question. Is there a way around it?
06-06-2006, 05:40 AM#2
Anitarf
Look here.
06-06-2006, 07:36 AM#3
Ares_WarBlade
Thanks.

*Edit*

Shoot, I don't know anything about JASS, so I have no idea how to use that. Could someone explain please?

If it helps to specifically explain how I want to use this. I want a fade filter to activate if a player enters a region, thus creating the effect of a terrain fog, but only for a single player.
06-06-2006, 02:30 PM#4
iNfraNe
just make the trigger in gui, then turn it to jass and copy paste the if and endif
06-06-2006, 05:16 PM#5
Ares_WarBlade
Oh okay, that makes sense, thanks.

*Edit*

Kay, I'm getting two compiler errors and I've re-arranged the if and endif a lot with no results. Can someone tell me what I'm doing wrong?

Collapse JASS:
//===========================================================================
// Trigger: Fog1
//===========================================================================
function Trig_Fog1_Actions takes nothing returns nothing
if(GetLocalPlayer()==o) then // <- Compiler Error: Expected a name
    call CinematicFilterGenericBJ( 0.00, BLEND_MODE_BLEND, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100, 100, 100, 100, 10.00, 25.00, 0, 60.00 ) //<- Compiler Error: Expected a code statement
endif
endfunction

//===========================================================================
function InitTrig_Fog1 takes nothing returns nothing
    set gg_trg_Fog1 = CreateTrigger(  )
    call TriggerRegisterEnterRectSimple( gg_trg_Fog1, gg_rct_NewCharZone )
    call TriggerAddAction( gg_trg_Fog1, function Trig_Fog1_Actions )
endfunction
06-06-2006, 05:47 PM#6
Zoxc
Collapse JASS:
if(GetLocalPlayer()==o) then
what is 'o'? Maybe replace with GetTriggerPlayer()
06-06-2006, 06:11 PM#7
Ares_WarBlade
Haha, yup, that did the trick. I was wondering why no where in the code could I see where it determines who gets the fog from a logical standpoint.
06-06-2006, 07:44 PM#8
Freakazoid
Or download WEU, and look under advanced triggers.
06-06-2006, 09:44 PM#9
Ares_WarBlade
Quote:
Originally Posted by Freakazoid
Or download WEU, and look under advanced triggers.
Yeah, I mentioned earlier that the advanced triggers give me errors up the wazoo.

The custom script section of the advanced triggers has conflicts with the systems that are already in the custom script section.