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

I need a little help with Weather

Status
Not open for further replies.
Level 7
Joined
Jan 22, 2013
Messages
293
make a custom model or impossible

Nothing is impossible.

Do you really want this system, Drunkpanda, I helped something with this request yesterday.

how to make a custom weather?
And how when someone enters a region to turn that weather just for him?

Question 1: Custom Weather can be made with models or by using existing weathers in the game. To get Custom Weather models I have a good few of them myself. But you should stick to the basic's.
Question 2: Yes, you can make weather turn on so only that person may see it when he enters a location, it honestly saves FPS. To do this you must use the
  • Custom script: GetLocalPlayer(udg_PlayerVariable)
This allows you base everything towards one person. So only he may see it (or so I'm told) Anyway I've given the same system to a very bold folk in another thread which I will give a link here for you Below in a few seconds.

http://www.hiveworkshop.com/forums/triggers-scripts-269/weather-effects-desync-233055/

I got a little pissy in this thread but the guy was rude to me by ignored the advice I gave him, he came back and double posted a new thread with the same exact problem so I completely fixed his trigger and I was rather mad about it lol.

To Learn about GetLocalPlayer() Go here: http://www.hiveworkshop.com/forums/world-editor-help-zone-98/getlocalplayer-faq-224876/
 
Level 7
Joined
Jan 22, 2013
Messages
293
Doesen't Works!
  • Second City
    • Events
      • Unit - A unit enters Region 097 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Environment - Create at Region 089 <gen> the weather effect Rays Of Light

lol ok buddy, I can't tell if your being serious but I'll make your system I will have it for you in a few. Please give me all the regions you want done. With what weather. I will code it for you to copy it into your map.
 
Level 8
Joined
Jul 18, 2012
Messages
136
lol ok buddy, I can't tell if your being serious but I'll make your system I will have it for you in a few. Please give me all the regions you want done. With what weather. I will code it for you to copy it into your map.

I will make a custom weather to around 3 city (maybe 4 i want make one more) around 30 creep place and 9 duengons. You don't need to help me bro. just tell me how to fix that im expert in photoshop i will make somehow custom weather myself. i can't just simply trust anybody. i'v worked so much time on my map i dont want anybody steal it
 
Level 30
Joined
Nov 29, 2012
Messages
6,637
I will make a custom weather to around 3 city (maybe 4 i want make one more) around 30 creep place and 9 duengons. You don't need to help me bro. just tell me how to fix that im expert in photoshop i will make somehow custom weather myself. i can't just simply trust anybody. i'v worked so much time on my map i dont want anybody steal it

You should turn on the trigger. After the create Weather, you do this trigger,

  • Environment - Turn (Last created weather effect) On
 
Level 7
Joined
Jan 22, 2013
Messages
293
I will make a custom weather to around 3 city (maybe 4 i want make one more) around 30 creep place and 9 duengons. You don't need to help me bro. just tell me how to fix that im expert in photoshop i will make somehow custom weather myself. i can't just simply trust anybody. i'v worked so much time on my map i dont want anybody steal it

Expert you say? Wana do some skins for me then lmao

You should turn on the trigger. After the create Weather, you do this trigger,

  • Environment - Turn (Last created weather effect) On

No, You can't do that, because for one, if he enters the location it has to turn on, if another hero walks in it has to turn on, the point of the matter is that it needs to be on only so long as an hero is in it. You forget entering a region triggers have MANY MANY FLAWS.

Anyway I will fix your trigger my friend.

  • Second City
    • Events
      • Unit - A unit enters Region 000 <gen>
      • Unit - A unit leaves Region 000 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • -------- Variable 1: RemoveRectLeak = Region --------
      • -------- Variable 2: Weather = WeatherEffect + Array So you can use it for multiple locations --------
      • -------- Variable 3: Count_Heroes = Keeps track of heroes in the Region and when they leave to properly turn on/off the weather. --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering unit) Equal to (Entering unit)
        • Then - Actions
          • Environment - Turn Weather[1] Off
          • Environment - Remove Weather[1]
          • Set RemoveRectLeak = Region 000 <gen>
          • Environment - Create at RemoveRectLeak the weather effect Rays Of Light
          • Set Weather[1] = (Last created weather effect)
          • Environment - Turn Weather[1] On
          • Set Count_Heroes = (Count_Heroes + 1)
          • Custom script: call RemoveRect(udg_RemoveRectLeak)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering unit) Equal to (Leaving unit)
          • Count_Heroes Equal to 1
        • Then - Actions
          • Set Count_Heroes = (Count_Heroes - 1)
          • Set IsHeroInArea = False
          • Environment - Turn Weather[1] Off
          • Environment - Remove Weather[1]
        • Else - Actions
          • If (Count_Heroes Greater than or equal to 2) then do (Set Count_Heroes = (Count_Heroes - 1)) else do (Do nothing)
Possible Bug Prone Conflicts:
>Hero dies inside Region
>Person leaves the game and you remove his hero while he is in the region
>So long as you forget to give -1 to the counter you will end up with it still on.

Info: Personally I hate using direct Enter/Leaving Unit, but tonight im tired and don't feel like its worth making two separated triggers.


Your enter Region weather doesn't need to be directed towards one player, I'm feeling alittle lazy if you truly one effects only one person can see at a time I will do that for you.
 
Last edited:
Level 8
Joined
Jul 18, 2012
Messages
136
Expert you say? Wana do some skins for me then lmao



No, You can't do that, because for one, if he enters the location it has to turn on, if another hero walks in it has to turn on, the point of the matter is that it needs to be on only so long as an hero is in it. You forget entering a region triggers have MANY MANY FLAWS.

Anyway I will fix your trigger my friend.

  • Second City
    • Events
      • Unit - A unit enters Region 000 <gen>
      • Unit - A unit leaves Region 000 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • -------- Variable 1: RemoveRectLeak = Region --------
      • -------- Variable 2: Weather = WeatherEffect + Array So you can use it for multiple locations --------
      • -------- Variable 3: Count_Heroes = Keeps track of heroes in the Region and when they leave to properly turn on/off the weather. --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering unit) Equal to (Entering unit)
        • Then - Actions
          • Environment - Turn Weather[1] Off
          • Environment - Remove Weather[1]
          • Set RemoveRectLeak = Region 000 <gen>
          • Environment - Create at RemoveRectLeak the weather effect Rays Of Light
          • Set Weather[1] = (Last created weather effect)
          • Environment - Turn Weather[1] On
          • Set Count_Heroes = (Count_Heroes + 1)
          • Custom script: call RemoveRect(udg_RemoveRectLeak)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering unit) Equal to (Leaving unit)
          • Count_Heroes Equal to 1
        • Then - Actions
          • Set Count_Heroes = (Count_Heroes - 1)
          • Set IsHeroInArea = False
          • Environment - Turn Weather[1] Off
          • Environment - Remove Weather[1]
        • Else - Actions
          • If (Count_Heroes Greater than or equal to 2) then do (Set Count_Heroes = (Count_Heroes - 1)) else do (Do nothing)
Possible Bug Prone Conflicts:
>Hero dies inside Region
>Person leaves the game and you remove his hero while he is in the region
>So long as you forget to give -1 to the counter you will end up with it still on.

Info: Personally I hate using direct Enter/Leaving Unit, but tonight im tired and don't feel like its worth making two separated triggers.


Your enter Region weather doesn't need to be directed towards one player, I'm feeling alittle lazy if you truly one effects only one person can see at a time I will do that for you.

Hey bro can you give me the map with this trigger i cant make it! Please?
 
Status
Not open for further replies.
Top