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: 246

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 The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top