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

[Trigger] Rain Spell

Status
Not open for further replies.
Level 4
Joined
Aug 9, 2005
Messages
76
im trying to do a spell similiar to blizzard but instead of ice shards falling from the sky i wanted to be rain. i was thinking of using the rain that appears on Global Weather but i dont know how so could someone teach me?
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Basically it's
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) equal to *your ability*
  • Actions
    • Set temppoint = (Position of (Triggering Unit))
    • Set temprect = Region centered at temppoint with size x, y
    • Environment - Apply *Your weather effect* over temprect
    • Custom script: call RemoveLocation(udg_temppoint)
    • Custom script: call DestroyGroup(udg_temprect)
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
ah - then do it the following:
Make a point-variable and call it whatever you like.
Make a rect-variable and call it whatever you like.
Then assign the temppoint-variable either to (Position of (Target Unit of ability being cast)) or (Target point of ability being cast) - depends the way you've set up the ability.
And last, apply the trigger.
If you want to have rain for only a certain amount of time, Assign a variable to your weather effect and remove it later on.
Last but not least, I think, you have to add
  • Environment - Enable *Your weather*
to make it rain D:
 
Level 4
Joined
Aug 9, 2005
Messages
76
i think i did everything you told me to do but the effect still doesnt appear.

the trigger code is attached
 

Attachments

  • spell.JPG
    spell.JPG
    17.7 KB · Views: 114
Status
Not open for further replies.
Top