| 06-06-2006, 02:15 AM | #1 |
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 |
Look here. |
| 06-06-2006, 07:36 AM | #3 |
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 |
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 |
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? 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 |
JASS:if(GetLocalPlayer()==o) then |
| 06-06-2006, 06:11 PM | #7 |
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 |
Or download WEU, and look under advanced triggers. |
| 06-06-2006, 09:44 PM | #9 | |
Quote:
The custom script section of the advanced triggers has conflicts with the systems that are already in the custom script section. |
