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

Weathers

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
Hello fellas, I need help from someone.
I can't figure out why weather triggers I made doesn't works....

  • Weather Snow
    • Events
      • Player - Player 1 (Red) types a chat message containing -weather snow as An exact match
      • Player - Player 2 (Blue) types a chat message containing -weather snow as An exact match
      • Player - Player 3 (Teal) types a chat message containing -weather snow as An exact match
      • Player - Player 4 (Purple) types a chat message containing -weather snow as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -weather snow as An exact match
      • Player - Player 6 (Orange) types a chat message containing -weather snow as An exact match
      • Player - Player 7 (Green) types a chat message containing -weather snow as An exact match
      • Player - Player 8 (Pink) types a chat message containing -weather snow as An exact match
    • Conditions
    • Actions
      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
      • Environment - Remove TempWeatherEffect
      • Environment - Create at (Playable map area) the weather effect Northrend Snow (Heavy)
      • Set TempWeatherEffect = (Last created weather effect)
      • Environment - Turn (Last created weather effect) On
      • Custom script: endif
  • Weather Rain
    • Events
      • Player - Player 1 (Red) types a chat message containing -weather rain as An exact match
      • Player - Player 2 (Blue) types a chat message containing -weather rain as An exact match
      • Player - Player 3 (Teal) types a chat message containing -weather rain as An exact match
      • Player - Player 4 (Purple) types a chat message containing -weather rain as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -weather rain as An exact match
      • Player - Player 6 (Orange) types a chat message containing -weather rain as An exact match
      • Player - Player 7 (Green) types a chat message containing -weather rain as An exact match
      • Player - Player 8 (Pink) types a chat message containing -weather rain as An exact match
    • Conditions
    • Actions
      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
      • Environment - Remove TempWeatherEffect
      • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
      • Set TempWeatherEffect = (Last created weather effect)
      • Environment - Turn (Last created weather effect) On
      • Custom script: endif
  • Weather Wind
    • Events
      • Player - Player 1 (Red) types a chat message containing -weather wind as An exact match
      • Player - Player 2 (Blue) types a chat message containing -weather wind as An exact match
      • Player - Player 3 (Teal) types a chat message containing -weather wind as An exact match
      • Player - Player 4 (Purple) types a chat message containing -weather wind as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -weather wind as An exact match
      • Player - Player 6 (Orange) types a chat message containing -weather wind as An exact match
      • Player - Player 7 (Green) types a chat message containing -weather wind as An exact match
      • Player - Player 8 (Pink) types a chat message containing -weather wind as An exact match
    • Conditions
    • Actions
      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
      • Environment - Remove TempWeatherEffect
      • Environment - Create at (Playable map area) the weather effect Wind (Heavy)
      • Set TempWeatherEffect = (Last created weather effect)
      • Environment - Turn (Last created weather effect) On
      • Custom script: endif
  • Weather Moonlight
    • Events
      • Player - Player 1 (Red) types a chat message containing -weather moonlight as An exact match
      • Player - Player 2 (Blue) types a chat message containing -weather moonlight as An exact match
      • Player - Player 3 (Teal) types a chat message containing -weather moonlight as An exact match
      • Player - Player 4 (Purple) types a chat message containing -weather moonlight as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -weather moonlight as An exact match
      • Player - Player 6 (Orange) types a chat message containing -weather moonlight as An exact match
      • Player - Player 7 (Green) types a chat message containing -weather moonlight as An exact match
      • Player - Player 8 (Pink) types a chat message containing -weather moonlight as An exact match
    • Conditions
    • Actions
      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
      • Environment - Remove TempWeatherEffect
      • Environment - Create at (Playable map area) the weather effect Rays Of Moonlight
      • Set TempWeatherEffect = (Last created weather effect)
      • Environment - Turn (Last created weather effect) On
      • Custom script: endif
  • Weather Random
    • Events
      • Player - Player 1 (Red) types a chat message containing -weather random as An exact match
      • Player - Player 2 (Blue) types a chat message containing -weather random as An exact match
      • Player - Player 3 (Teal) types a chat message containing -weather random as An exact match
      • Player - Player 4 (Purple) types a chat message containing -weather random as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -weather random as An exact match
      • Player - Player 6 (Orange) types a chat message containing -weather random as An exact match
      • Player - Player 7 (Green) types a chat message containing -weather random as An exact match
      • Player - Player 8 (Pink) types a chat message containing -weather random as An exact match
    • Conditions
    • Actions
      • Set RandomNumber = (Random integer number between 1 and 4)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RandomNumber Equal to 1
        • Then - Actions
          • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
          • Environment - Remove TempWeatherEffect
          • Environment - Create at (Playable map area) the weather effect Northrend Snow (Heavy)
          • Set TempWeatherEffect = (Last created weather effect)
          • Environment - Turn (Last created weather effect) On
          • Custom script: endif
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RandomNumber Equal to 2
            • Then - Actions
              • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
              • Environment - Remove TempWeatherEffect
              • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
              • Set TempWeatherEffect = (Last created weather effect)
              • Environment - Turn (Last created weather effect) On
              • Custom script: endif
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RandomNumber Equal to 3
                • Then - Actions
                  • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
                  • Environment - Remove TempWeatherEffect
                  • Environment - Create at (Playable map area) the weather effect Rays Of Moonlight
                  • Set TempWeatherEffect = (Last created weather effect)
                  • Environment - Turn (Last created weather effect) On
                  • Custom script: endif
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • RandomNumber Equal to 4
                    • Then - Actions
                      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
                      • Environment - Remove TempWeatherEffect
                      • Environment - Create at (Playable map area) the weather effect Wind (Heavy)
                      • Set TempWeatherEffect = (Last created weather effect)
                      • Environment - Turn (Last created weather effect) On
                      • Custom script: endif
                    • Else - Actions



 
Level 7
Joined
Jan 22, 2013
Messages
293
Shouldn't you have tested the first one before you made so many? I'll give you a way that I know works. I so see a rather good sized problem though, You got some leaks.
  • Weather Snow
    • Events
      • Player - Player 1 (Red) types a chat message containing -Weather Snow as An exact match
      • Player - Player 2 (Blue) types a chat message containing -Weather Snow as An exact match
      • Player - Player 3 (Teal) types a chat message containing -Weather Snow as An exact match
      • Player - Player 4 (Purple) types a chat message containing -Weather Snow as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -Weather Snow as An exact match
      • Player - Player 6 (Orange) types a chat message containing -Weather Snow as An exact match
      • Player - Player 7 (Green) types a chat message containing -Weather Snow as An exact match
      • Player - Player 8 (Pink) types a chat message containing -Weather Snow as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Triggering player) Equal to Player 1 (Red)
              • (Triggering player) Equal to Player 2 (Blue)
              • (Triggering player) Equal to Player 3 (Teal)
              • (Triggering player) Equal to Player 4 (Purple)
              • (Triggering player) Equal to Player 5 (Yellow)
              • (Triggering player) Equal to Player 6 (Orange)
              • (Triggering player) Equal to Player 7 (Green)
              • (Triggering player) Equal to Player 8 (Pink)
        • Then - Actions
          • Environment - Turn TempWeatherEffect Off
          • Environment - Remove TempWeatherEffect
          • Set Weather_Location = (Entire map)
          • Environment - Create at Weather_Location the weather effect Northrend Snow (Heavy)
          • Custom script: call RemoveRect(udg_Weather_Location)
          • Set TempWeatherEffect = (Last created weather effect)
          • Environment - Turn TempWeatherEffect On
        • Else - Actions
Personally I don't use Custom Script unless I have to.
Anyway, check my signature for future leak removals.


Oh YEAH!, if you really wanted to save space you can add all of those Triggers into a single trigger.

My Very Long Example:

  • Weather Snow
    • Events
      • -------- ADD ALL OF YOUR Players types Whatever Events Here --------
      • Player - Player 1 (Red) types a chat message containing -Weather Snow as An exact match
      • Player - Player 2 (Blue) types a chat message containing -Weather Snow as An exact match
      • Player - Player 3 (Teal) types a chat message containing -Weather Snow as An exact match
      • Player - Player 4 (Purple) types a chat message containing -Weather Snow as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -Weather Snow as An exact match
      • Player - Player 6 (Orange) types a chat message containing -Weather Snow as An exact match
      • Player - Player 7 (Green) types a chat message containing -Weather Snow as An exact match
      • Player - Player 8 (Pink) types a chat message containing -Weather Snow as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Triggering player) Equal to Player 1 (Red)
              • (Triggering player) Equal to Player 2 (Blue)
              • (Triggering player) Equal to Player 3 (Teal)
              • (Triggering player) Equal to Player 4 (Purple)
              • (Triggering player) Equal to Player 5 (Yellow)
              • (Triggering player) Equal to Player 6 (Orange)
              • (Triggering player) Equal to Player 7 (Green)
              • (Triggering player) Equal to Player 8 (Pink)
        • Then - Actions
          • Environment - Turn TempWeatherEffect Off
          • Environment - Remove TempWeatherEffect
          • Set Weather_Location = (Entire map)
          • -------- ====== SNOW ===== --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Entered chat string) Equal to -Weather Snow
            • Then - Actions
              • Environment - Create at Weather_Location the weather effect Northrend Snow (Heavy)
            • Else - Actions
          • -------- ====== RAIN ===== --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Entered chat string) Equal to -Weather Rain
            • Then - Actions
              • Environment - Create at Weather_Location the weather effect Ashenvale Rain (Heavy)
            • Else - Actions
          • -------- ====== WIND ===== --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Entered chat string) Equal to -Weather Wind
            • Then - Actions
              • Environment - Create at Weather_Location the weather effect Wind (Heavy)
            • Else - Actions
          • Custom script: call RemoveRect(udg_Weather_Location)
          • Set TempWeatherEffect = (Last created weather effect)
          • Environment - Turn TempWeatherEffect On
        • Else - Actions
 
Last edited:
Level 7
Joined
Jan 22, 2013
Messages
293
right...
But, I wanna know why the weathers doesn't works on other laptop...
On mine, it works, but on brothers, it doesn't works lol.. ???

I know I can all of them in 1 trigg, but why? when I already made it this way :D

Bump* Because it saves you Nearly 6 Triggers worth of work lol In a 3 step trigger bro lol.

EDIT: What type of computer does your brother have?
 
Level 7
Joined
Jan 22, 2013
Messages
293
I have 6 triggers (5 types and 1 random) =)
It's not a problem to me because it seems easier to find what I search for instead of bulky trigger xD

:goblin_jawdrop: But it saves you SPACE!!! Ok, well I can't explain why it will work on one computer and not the other. However I can tell you this. Make sure your using the same Editor.
 
Status
Not open for further replies.
Top