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

Special effect on map

Status
Not open for further replies.
Level 3
Joined
Oct 25, 2007
Messages
26
Hi,

I have one question for you my GODLIKE modders.
I want to do rain of infernal meteors as special effect after one special unit is destroyed.
I have prepared EVENT - Specific Unit Dies....and now i want to set special effects "Infernal Meteor" to rain over the map for 10 seconds....
Is this possible?
I can only create one meteor in region (whole map or more smallers region)...but i want to see this meteors falls more than once.

Please someone can help?
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
I think he may be referring to rain of chaos. If so, the inferno special effects needs to strike at random areas in the region, not at a set location. So he would need to set the variable before each special effect is called.
 
Level 10
Joined
Jan 20, 2011
Messages
492
Trigger for you

Here is my triggering for it. It involves 2 triggers, is much more condensed then long code, and uses 2 variables;

- Counter(Integer Variable)
- TrapLoc(Point Variable) Which is to set random effect spawns



This trigger is to activate the other meteor trigger, which is set to INITIALLY OFF
  • Death
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Paladin
    • Actions
      • Trigger - Turn on Meteor <gen>
This is the trigger that creates the effects
  • Meteor
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Counter Less than 10
        • Then - Actions
          • Set Counter = (Counter + 1)
          • Set TrapLoc = (Random point in YourRegion <gen>)
          • Special Effect - Create a special effect at TrapLoc using Units\Demon\Infernal\InfernalBirth.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TrapLoc)
        • Else - Actions
          • Trigger - Turn off (This trigger)
Remember:
In the trigger editor turn the Meteor Trigger Initially Off, so right click it and untick it.
 
Status
Not open for further replies.
Top