Spell Earthquake

TheWarcraft

New Member
Reaction score
4
[Spellpack]Earthspells

Earthspells
Four spells. GUI spells. MUI.

Earthquake
No picture for this one, effect is hardly noticeable on screenie. If you ever played AoM(age of mythology not the warcraft 3 map), this Earthquake looks pretty much like the godpower.
Trigger:
  • Earthquakecast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Earthquake (Hero)
    • Actions
      • If (earthcustom Less than 1000) then do (Set earthcustom = (earthcustom + 1)) else do (Set earthcustom = 1)
      • Set earthcaster[earthcustom] = (Triggering unit)
      • Set earthcastpoint[earthcustom] = (Position of (Triggering unit))
      • Set earthduration[earthcustom] = (earthextradur + (earthdurperlvl x (Real((Level of Earthquake (Hero) for (Triggering unit))))))
      • Unit - Create 1 earthdummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
      • Unit - Set the custom value of (Last created unit) to earthcustom
      • Unit Group - Add (Last created unit) to earthdummygr

Trigger:
  • Earthquakeper
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
      • (Number of units in earthdummygr) Greater than 0
    • Actions
      • Unit Group - Pick every unit in earthdummygr and do (Actions)
        • Loop - Actions
          • Set earthtempint = (Custom value of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • earthcurrentduration[earthtempint] Greater than or equal to earthduration[earthtempint]
            • Then - Actions
              • Unit - Remove (Picked unit) from the game
              • Set earthcurrentduration[earthtempint] = 0.00
            • Else - Actions
              • Unit - Create 1 earthdummy for (Owner of (Picked unit)) at (earthcastpoint[earthtempint] offset by ((Random real number between -500.00 and 500.00), (Random real number between -500.00 and 500.00))) facing Default building facing degrees
              • Unit - Set level of dummyclapearth for (Last created unit) to ((Level of Epicenter for earthcaster[earthtempint]) + 1)
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
              • Set earthcurrentduration[earthtempint] = (earthcurrentduration[earthtempint] + 0.05)

Energy Charge
energycharge.png

Trigger:
  • Energy Charge
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Energy Charge
    • Actions
      • Set epiloops[(Player number of (Owner of (Triggering unit)))] = (epiextra + ((Level of Energy Charge for (Triggering unit)) x epiloopsperlvl))
      • For each (Integer B) from 1 to epiloops[(Player number of (Owner of (Triggering unit)))], do (Actions)
        • Loop - Actions
          • Wait epispeed game-time seconds
          • Unit - Create 1 shakerdummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
          • Unit - Set level of dummyclap for (Last created unit) to (1 + (Level of Epicenter for (Triggering unit)))
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
          • Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
          • Special Effect - Destroy (Last created special effect)
          • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit)) matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True))) and do (Actions)
            • Loop - Actions
              • Lightning - Create a Chain Lightning - Secondary lightning effect from source (Position of (Triggering unit)) to target (Position of (Picked unit))
              • Set tempeffect = (Last created lightning effect)
              • Trigger - Run Destroy Lightning <gen> (ignoring conditions)

Painshock
painshock.png

Trigger:
  • Painshock
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of Painshock for (Triggering unit)) Greater than or equal to 1
      • (Random integer number between 1 and 100) Less than ((5 x (Level of Painshock for (Triggering unit))) + 5)
    • Actions
      • Unit - Create 1 shakerdummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
      • Unit - Set level of dummyclap for (Last created unit) to (1 + (Level of Epicenter for (Triggering unit)))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
      • Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
      • Special Effect - Destroy (Last created special effect)

Epicenter
This is just a passive ability that makes all the other spells more powerful(look at triggers).

Currently adding information on spells + import info.

Please report any suggestions, bugs, leaks or whatever you think I might want to know.

+rep if this spell is useful to me or if you want to rep for any other reason

Can a moderator please change the name of this thread to Earthspells with prefix [Spellpack]? Thx.

Update June 12 2009: Added 3 spells, made Earthquake MUI.
 

Attachments

  • Earthspellsmui.w3x
    51.8 KB · Views: 247

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
player 1 can't cast twice else will bug
Hehe... No... Not quite.. My map definitely looked interesting. But you can simplify that bottom statement into MUI: No :p. The spell is nice but nothing new really. Haven't taken a look at the trigger yet, and you should check out the MUI GUI tutorial... So players can cast it at the same time and it will still work :p.
 

TheWarcraft

New Member
Reaction score
4
Hehe... No... Not quite.. My map definitely looked interesting. But you can simplify that bottom statement into MUI: No :p. The spell is nice but nothing new really. Haven't taken a look at the trigger yet, and you should check out the MUI GUI tutorial... So players can cast it at the same time and it will still work :p.
I posted this here so people could look at my triggers and find any problems and tell me if the spell is nice, or any improvements, so please look at the triggers if you have time. And about the tutorial, I would check it out if you could leave a link.
 

Exide

I am amazingly focused right now!
Reaction score
448
I posted this here so people could look at my triggers and find any problems and tell me if the spell is nice, or any improvements, so please look at the triggers if you have time. And about the tutorial, I would check it out if you could leave a link.

Quick trigger review:

Apparently this leaks:
Code:
Wait ** game-time seconds
You should use 'Wait ** seconds'.

Code:
Special Effect - Create a special effect at earthquake1[(Player number of (Owner of (Triggering unit)))] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-leaks.

Code:
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at earthquake1[(Player number of (Owner of (Triggering unit)))] facing Default building facing degrees 
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap 
Unit - Remove (Last created unit) from the game
You should give the unit an expiration timer, instead.

Code:
Unit - A unit Begins channeling an ability
Should probably be:
Code:
Unit - A unit Starts the effects of an ability
 

TheWarcraft

New Member
Reaction score
4
Quick trigger review:

Apparently this leaks:
Code:
Wait ** game-time seconds
You should use 'Wait ** seconds'.

Code:
Special Effect - Create a special effect at earthquake1[(Player number of (Owner of (Triggering unit)))] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-leaks.
I dont understand about the wait game-time seconds, isn't using game-time seconds better than seconds? So that if someone is lagging it will wait? And for the special effect, what do I need to do? Add a trigger that destroys it? And Thanks for helping me.
Also, How do I +rep someone?
 

Exide

I am amazingly focused right now!
Reaction score
448
I dont understand about the wait game-time seconds, isn't using game-time seconds better than seconds? So that if someone is lagging it will wait? And for the special effect, what do I need to do? Add a trigger that destroys it? And Thanks for helping me.
Also, How do I +rep someone?

I honestly don't know about game-time seconds, either.
I was told it waits even if someone is lagging, like you said. But some people also claims it's leaking, somehow. I don't know how or why. :p

Code:
custom script  call DestroyEffect(udg_Variable)
is one way of doing it.

You add/remove rep from someone by clicking the rep button, which is located at the top of every post, it looks like this:
reputation.gif
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
The problem with using Game-Time seconds is that the function's code creates a timer which is never removed properly. Blizzard's fault, just use Wait xx seconds instead.
 

TheWarcraft

New Member
Reaction score
4
The problem with using Game-Time seconds is that the function's code creates a timer which is never removed properly. Blizzard's fault, just use Wait xx seconds instead.
Is there a way to use a timer that will wait if a player is lagging?
 

TheWarcraft

New Member
Reaction score
4
I will be updating soon with 3 extra related abilites and leaks fixed, I am just waiting for some help with something.(destroying multiple lightning effects after a period of time)
 

wraithseeker

Tired.
Reaction score
122
Don't triple post and terrain deformations are real bad, they bug and such.

Tried the test map & spammed Earthquake 5 times and my fps dropped to 4 and it lagged real hard.
 

TheWarcraft

New Member
Reaction score
4
You can make it lagless easily by reducing the amount of "shocks" and making them more powerful, and using terrain deformations.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top