Spellpack Thor

HellCraft

Member
Reaction score
19
GUI/Jass: GUI
MUI: Not sure
Leakless: Not sure
Lagless: Not sure(well atleast im sure that its GUI and not JASS :D)

Thunder Clap:
Thor slams the ground, dealing 100/200/300 damage to and slowing the movement speed and attack rate of nearby enemy land units by 50%. Upon the impact of the clap, nearby kinetic energies get converted into electrical energies and get stimulated, dealing 100/200/300 damage and stunning enemies for 1 second in an 500 AOE.

Trigger:
  • Thunder Clap
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Thunder Clap
    • Actions
      • Set ThunderClap_CasterLoc = (Position of (Casting unit))
      • Set ThunderClap_Group = (Units within 500.00 of ThunderClap_CasterLoc matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Mechanical) Equal to False) and (((Matc
      • For each (Integer A) from 1 to (Number of units in ThunderClap_Group), do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at ThunderClap_CasterLoc facing Default building facing degrees
          • Unit - Add Thunder Clap Dummy to (Last created unit)
          • Unit - Set level of Thunder Clap Dummy for (Last created unit) to (Level of Thunder Clap for (Casting unit))
          • Unit Group - Pick every unit in ThunderClap_Group and do (Actions)
            • Loop - Actions
              • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
      • Custom script: call RemoveLocation(udg_ThunderClap_CasterLoc)
      • Custom script: call DestroyGroup(udg_ThunderClap_Group)


Overload:
Every 5 attacks Thor does, he releases a charged up attack dealing 50/100/150 damage to all foes nearby the attacked unit and slowing them. Also deals 50/100/150 bonus damage to the attacked unit and slows it.

Trigger:
  • Overload
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has buff Overload ) Equal to True
    • Actions
      • Set Overload_Charges = (Overload_Charges + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Overload_Charges Equal to 5
        • Then - Actions
          • Set Overload_Loc = (Position of (Attacked unit))
          • Unit - Create 1 Dummy Unit for (Owner of (Attacking unit)) at Overload_Loc facing Default building facing degrees
          • Unit - Add Overload Dummy to (Last created unit)
          • Unit - Set level of Overload Dummy for (Last created unit) to (Level of Overload for (Attacking unit))
          • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Set Overload_Charges = 0
          • Unit - Remove overload sfx from (Attacking unit)
          • Custom script: call RemoveLocation(udg_Overload_Loc)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Overload_Charges Equal to 4
        • Then - Actions
          • Unit - Add overload sfx to (Attacking unit)
        • Else - Actions



Electric Pulse:
Every time Thor casts this spell, he creates 1 pulse. Pulses get released by hitting a nearby enemy unit dealing 100/150/200 damage and stunning it for 1 second. Can have a maximum of 10 pulses.

Trigger:
  • Electric Pulse
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Electric Pulse
    • Actions
      • Set ElectricPulse_Caster = (Casting unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ElectricPulse_Pulses Greater than 9
        • Then - Actions
          • Set ElectricPulse_Pulses = 10
          • Game - Display to (All players) the text: You have reached yo...
        • Else - Actions
          • Set ElectricPulse_Pulses = (ElectricPulse_Pulses + 1)


Trigger:
  • Electric Pulse Damage
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set ElectricPulse_Loc = (Position of ElectricPulse_Caster)
      • Set ElectricPulse_Group = (Units within 512.00 of ElectricPulse_Loc matching ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is Mechanical) Equal to False) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (O
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (ElectricPulse_Pulses Not equal to 0) and ((Number of units in ElectricPulse_Group) Not equal to 0)
        • Then - Actions
          • Unit - Create 1 Dummy Unit for (Owner of ElectricPulse_Caster) at ElectricPulse_Loc facing Default building facing degrees
          • Unit - Add ElectricPulse Dummy to (Last created unit)
          • Unit - Set level of ElectricPulse Dummy for (Last created unit) to (Level of Electric Pulse for ElectricPulse_Caster)
          • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Random unit from ElectricPulse_Group)
          • Set ElectricPulse_Pulses = (ElectricPulse_Pulses - 1)
          • Custom script: call RemoveLocation(udg_ElectricPulse_Loc)
          • Custom script: call DestroyGroup(udg_ElectricPulse_Group)
        • Else - Actions


Don't forget the rate the spell using the stars and give a +rep if you liked it.
 

Attachments

  • Spellpack - Thor.w3x
    50.1 KB · Views: 449
They are MUI except for the bottom one.

Overload isn't MUI either.
Trigger:
  • Set Overload_Charges = (Overload_Charges + 1)

This doesn't separate the charges by unit, so all units with the buff will increase the charges. For it to be MUI, it would have to be an array with separate charges for each unit with the buff.
 
How is it not MUI, there are no waits?

Situation
Unit A receives buff
Unit A attacks a unit, Overhead_Charges is now 1
Unit A attack another unit, Overhead_Charges is now 2
Unit B receives buff, Unit A also still has buff
Unit A attacks a third unit, Overhead_Charges is 3
Unit B attacks a unit, Overhead_Charges is 4
Unit B attacks another unit, Overhead_Charges is now 5... Unit B releases the charged attack, even though it has only attacked two units. Overhead_Charges resets, Unit A never gets a charged attack since Unit B used it.
 
Trigger:
  • Unit Group - Pick every unit in ThunderClap_Group and do (Actions)
    • Loop - Actions
      • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)


Unless you have the storm bolt spell set to 0 casting time, and the casting point/backswing animation stuff set to 0, your dummy isn't going to send out more than one storm bolt at a time.

So how do i make separate charges for every unit?

You would either need to attach it, such as through the Unit's Custom Value, Hashtables, or a JASS Unit attachment system (such as AIDS or PUI).

If you want this to be approved, please add a screenshot, so it can be added to the Spell Archive.

I'm going to graveyard this until the appropriate changes are made. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      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