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

Weather Effects

Status
Not open for further replies.
Level 19
Joined
Oct 29, 2007
Messages
1,184
Can I have players all players have their own special effect? Like-a-sum-boo-dy* enters a building and then it stops raining in that particular building? Using regions and do everything manually in the world editor will take alot of time.

*Couldn't help saying it.. youtube: chinese prank call

EDIT: SOLVED.
 
Last edited:
Level 9
Joined
Apr 25, 2009
Messages
468
  • Unit-Based weather effect
    • Events
      • Unit - A unit comes within <Range> of <Your Unit>
    • Conditions
    • Actions
      • Environment - Create at (Region centered at (Position of (Triggering unit)) with size (<Wight>, <Height>)) the weather effect <Your effect>
That should do it :thumbs_up:
 
Level 19
Joined
Oct 29, 2007
Messages
1,184
Search for info about GetLocalPlayer.

Edit:

  • CREATE UNIT
    • Events
      • Player - Player 1 (Red) types a chat message containing 1 as An exact match
      • Player - Player 2 (Blue) types a chat message containing 1 as An exact match
      • Player - Player 3 (Teal) types a chat message containing 1 as An exact match
      • Player - Player 4 (Purple) types a chat message containing 1 as An exact match
    • Conditions
    • Actions
      • For each (Integer tmp_integer) from 1 to 4, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to (Player(tmp_integer))
            • Then - Actions
              • Custom script: if ( GetLocalPlayer() == Player(udg_tmp_integer) ) then
              • Environment - Create at (Region centered at (Position of Player[tmp_integer]) with size (5000.00, 5000.00)) the weather effect Ashenvale Rain (Heavy)
              • Environment - Turn (Last created weather effect) On
              • Custom script: endif
            • Else - Actions
Didn't work, neither did:

  • DELETE UNIT
    • Events
      • Player - Player 3 (Teal) types a chat message containing 2 as An exact match
      • Player - Player 1 (Red) types a chat message containing 2 as An exact match
      • Player - Player 2 (Blue) types a chat message containing 2 as An exact match
      • Player - Player 4 (Purple) types a chat message containing 2 as An exact match
    • Conditions
    • Actions
      • For each (Integer tmp_integer) from 1 to 4, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to (Player(tmp_integer))
            • Then - Actions
              • Custom script: if ( GetLocalPlayer() == Player(udg_tmp_integer) ) then
              • Environment - Turn (Last created weather effect) Off
              • Custom script: endif
            • Else - Actions
 
Last edited:
Status
Not open for further replies.
Top