• 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.

[HELP] Player's Screen Color

Status
Not open for further replies.
Level 9
Joined
Aug 7, 2009
Messages
380
Hi, I want to make a spell that when you activate it, your screen will change to green color, and when you use that spell while you have a green screen, your screen will change to normal. I don't know where should I start or the way to set player's screen color to green. Help? Needing :thumbs_up:
 
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
  • Actions
    • Set RealTransparency = 100
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • GreenScreen[Player number of (Owner of (Triggering unit))] Equal to False //Boolean comparison
      • Then - Actions
        • Custom script: if GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
        • Set RealTransparency = 70
        • Custom script: endif
        • Cinematic - Apply a filter over 2.00 seconds using Normal blending on texture White Mask, starting with color (0.00%, 100.00%, 0.00%) and RealTransparency% transparency and ending with color (0.00%, 100.00%, 0.00%) and RealTransparency% transparency
      • Else - Actions
        • Custom script: if GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
        • Set RealTransparency = 100
        • Custom script: endif
        • Cinematic - Apply a filter over 2.00 seconds using Normal blending on texture White Mask, starting with color (0.00%, 100.00%, 0.00%) and RealTransparency% transparency and ending with color (0.00%, 100.00%, 0.00%) and RealTransparency% transparency
GreenScreen[] is a Boolean variable; RealTransparency is a Real.
 
Level 26
Joined
Aug 18, 2009
Messages
4,099
You can use Fade filters --> Video - Fade Filter. For events and conditions there is Unit - Unit Event --> Unit Starts the effect of an ability and the right ability can be filtered by Ability Comparison --> Ability being cast == <ability>.

You cannot ask for the screen's current color, fade filters are not bound to draw only one color across the screen anyway. So you have to log the state yourself by setting a boolean flag on the side.
 
Level 9
Joined
Aug 7, 2009
Messages
380
You can use Fade filters --> Video - Fade Filter. For events and conditions there is Unit - Unit Event --> Unit Starts the effect of an ability and the right ability can be filtered by Ability Comparison --> Ability being cast == <ability>.

You cannot ask for the screen's current color, fade filters are not bound to draw only one color across the screen anyway. So you have to log the state yourself by setting a boolean flag on the side.

Just color so you still see everything, but fade... green all ^^
 
Status
Not open for further replies.
Top