Spell Consuming Purity - GUI MUI

lindenkron

You can change this now in User CP
Reaction score
102
Consuming Purity
v1.0​

Don't know if anything like this has been made before? :p Well, another GUI MUI spell. Any feedback that is constructive will be appreciated :)

Pros
  • GUI MUI
  • Leakless (I think? Leakchecker says so anyway. But you can't trust it :eek:. Let me know if you find any! :rolleyes:)
  • Easy to import (Simple 10 step guide).
  • Easy to modify (If you ask me :D)

Cons
  • Tell me. (Don't go emo on me and write "It's not vJASS!" *cry me a river* please)

The 10 step guide.
  1. Open the attached map in your World Editor.
  2. Open your own map in your World Editor.
  3. Go to your map. And 'Check' "Automatically create unknown variables while pasting trigger data" This can be found at: File -> Preferences -> General Tap (First one)
  4. Open the attached map.
  5. Go to F6 and Copy (Ctrl + C) Paste (Ctrl + V) all the custom Buffs into your map.
  6. Repeat 4 and 5, just with the custom Abilities & Units (In that order) (F6)
  7. Open the attached map.
  8. Select the triggers called: 'ConsumingPurity' & 'ConsumingPurityGO' copy them.
  9. Open your map, paste the Triggers in.
  10. Test your map.

Description
2z8nvvs.jpg

Code
Trigger:
  • ConsumingPurity
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Consuming Purity
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • CPCustomValue Less than 1000
        • Then - Actions
          • Set CPCustomValue = (CPCustomValue + 1)
        • Else - Actions
          • Set CPCustomValue = 0
      • -------- Setting variables --------
      • -------- DON'T CHANGE --------
      • Set CPCaster[CPCustomValue] = (Triggering unit)
      • Set CPTarget[CPCustomValue] = (Target point of ability being cast)
      • Set CPWait[CPCustomValue] = 0.00
      • Set CPSeconds[CPCustomValue] = 0
      • -------- Change the 5 to what ever amount of seconds times ability level --------
      • Set CPAbilitySeconds[CPCustomValue] = (5 x (Level of Consuming Purity for (Triggering unit)))
      • -------- The range of the AoE spell. At the moment it fits the animation size --------
      • Set CPArea[CPCustomValue] = 400.00
      • -------- Create Dummyunit to start spell --------
      • Set CPTempLocation1 = (Position of (Triggering unit))
      • Unit - Create 1 DummyUnit for (Owner of (Triggering unit)) at CPTempLocation1 facing Default building facing degrees
      • Unit Group - Add (Last created unit) to CPDummyGroup
      • Unit - Set the custom value of (Last created unit) to CPCustomValue
      • Custom script: call RemoveLocation (udg_CPTempLocation1)

Trigger:
  • ConsumingPurityGO
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
      • (Number of units in CPDummyGroup) Greater than 0
    • Actions
      • Unit Group - Pick every unit in CPDummyGroup and do (Actions)
        • Loop - Actions
          • Set CPCValue = (Custom value of (Picked unit))
          • Set CPWait[CPCValue] = (CPWait[CPCValue] + 0.05)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • CPSeconds[CPCValue] Equal to 0
              • CPWait[CPCValue] Equal to 0.05
            • Then - Actions
              • Set CPTempGroup1 = (Units within CPArea[CPCValue] of CPTarget[CPCValue] matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of CPCaster[CPCValue])) Equal to True)))
              • Unit Group - Pick every unit in CPTempGroup1 and do (Actions)
                • Loop - Actions
                  • Set CPTempLocation1 = (Position of (Picked unit))
                  • Unit - Cause CPCaster[CPCValue] to damage (Picked unit), dealing 1.00 damage of attack type Normal and damage type Normal
                  • Unit - Create 1 DummyUnit for (Owner of CPCaster[CPCValue]) at CPTempLocation1 facing CPTempLocation1
                  • Unit - Add Dummy Ability - Purify to (Last created unit)
                  • Unit - Set level of Dummy Ability - Purify for (Last created unit) to (Level of Consuming Purity for CPCaster[CPCValue])
                  • Unit - Order (Last created unit) to Orc Shaman - Purge (Picked unit)
                  • Unit - Add a 2.00 second Water Elemental expiration timer to (Last created unit)
                  • Custom script: call RemoveLocation (udg_CPTempLocation1)
              • Custom script: call DestroyGroup (udg_CPTempGroup1)
              • Set CPTempLocation1 = CPTarget[CPCValue]
              • Unit - Create 1 DummyUnit (Animation) for (Owner of CPCaster[CPCValue]) at CPTempLocation1 facing Default building facing degrees
              • Set CPAnimationUnit[CPCValue] = (Last created unit)
              • Unit - Add a (Real(CPAbilitySeconds[CPCValue])) second Water Elemental expiration timer to (Last created unit)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • CPWait[CPCValue] Equal to 0.50
              • CPSeconds[CPCValue] Equal to 0
            • Then - Actions
              • Animation - Change CPAnimationUnit[CPCValue]'s animation speed to 0.00% of its original speed
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • CPWait[CPCValue] Equal to 1.00
              • CPSeconds[CPCValue] Less than or equal to CPAbilitySeconds[CPCValue]
            • Then - Actions
              • Set CPTempGroup1 = (Units within CPArea[CPCValue] of CPTarget[CPCValue] matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of CPCaster[CPCValue])) Equal to True)))
              • Unit Group - Pick every unit in CPTempGroup1 and do (Actions)
                • Loop - Actions
                  • Set CPTempLocation1 = (Position of (Picked unit))
                  • Unit - Create 1 DummyUnit for (Owner of CPCaster[CPCValue]) at CPTempLocation1 facing CPTempLocation1
                  • Unit - Add Dummy Ability - Purify to (Last created unit)
                  • Unit - Set level of Dummy Ability - Purify for (Last created unit) to (Level of Consuming Purity for CPCaster[CPCValue])
                  • Unit - Order (Last created unit) to Orc Shaman - Purge (Picked unit)
                  • Unit - Add a 2.00 second Water Elemental expiration timer to (Last created unit)
                  • Custom script: call RemoveLocation (udg_CPTempLocation1)
              • Custom script: call DestroyGroup (udg_CPTempGroup1)
              • Set CPSeconds[CPCValue] = (CPSeconds[CPCValue] + 1)
              • Set CPWait[CPCValue] = 0.00
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • CPSeconds[CPCValue] Equal to CPAbilitySeconds[CPCValue]
            • Then - Actions
              • Set CPCaster[CPCValue] = No unit
              • Set CPSeconds[CPCValue] = 0
              • Unit Group - Remove (Picked unit) from CPDummyGroup
              • Unit - Remove (Picked unit) from the game
              • Custom script: call RemoveLocation (udg_CPTarget[udg_CPCValue])
              • Custom script: call RemoveLocation (udg_CPTempLocation1)
            • Else - Actions

Screenshot
2r7buwk.jpg


Hope anyone can use. Anyway, had fun making it :rolleyes:
-Lindenkron
 

Attachments

  • consumingpurity.w3x
    40.3 KB · Views: 213

Cloak_Master

Active Member
Reaction score
41
This is a pretty cool ability. I could see it being rather useful in an actual game setting as well. The only thing I'd reccomend is making the dome itself a little more transparent. Another option, if you'd like to go this route, is to severely limit the speed of the units in the dome instead of freezing them periodically - that'd add a pretty nice micromangement factor. I don't know how it's alphas work on this particular model so I don't know if it's possible to make more transparent, but it seems a bit too yellow somehow.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
I don't see this being used in an actual map.
It's way too hard to modify.
I stopped looking at the code after the first trigger :eek: .
 

lindenkron

You can change this now in User CP
Reaction score
102
This is a pretty cool ability. I could see it being rather useful in an actual game setting as well. The only thing I'd reccomend is making the dome itself a little more transparent. Another option, if you'd like to go this route, is to severely limit the speed of the units in the dome instead of freezing them periodically - that'd add a pretty nice micromangement factor. I don't know how it's alphas work on this particular model so I don't know if it's possible to make more transparent, but it seems a bit too yellow somehow.

Tried setting unit transparenty on the model (which is a unit) didn't change it. So wouldn't know how to do it otherwise :)

And I didn't mean to slow the unit's, I ment for them to stop up, just in the moment they are being hit by Purity :). And luckely, there was starts in purge for such an arrangement.

I don't see this being used in an actual map.
It's way too hard to modify.
I stopped looking at the code after the first trigger :eek: .

How can it be hard to modify? Unless you suck rofl. Most is in the models mate, thats like "I don't know triggers but I can still modify it" easy.

-Lindenkron
 

lindenkron

You can change this now in User CP
Reaction score
102
spell is very good, would +rep but i just did:p:thup:

Thanks :)

Anyone feel free to state any improvements / changes you feel nessesary as long as it's constructive criticism and not "lols its GUI" :')
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • 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 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