Removing Lightning Effects with MUI?!?!

NindoOne

TH.net Regular
Reaction score
17
Greetings!

I havent done anything in the editor for about 3 months but today I started with a new spell idea. It's based on the engineers' ultimate in HoN, for you that havent played HoN, it's a machine that the hero places on the ground, creating a lightning field formed as a circle where enemies inside the circle get slowed and silenced.

Anyway. My problem is that I have no idea of how I can remove the lightning circle after 10 seconds and still be MUI...
Also I wana know if you can raise the lightning from the ground, right now the lightning is laying thight on the ground, and it looks ugly...

Here's my trigger:
Trigger:
  • Circle
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Thunder Clap
    • Actions
      • Set Point[1] = (Position of (Triggering unit))
      • Unit - Create 1 Dummy Unit (Circle Middle) for (Owner of (Triggering unit)) at Point[1] facing Default building facing degrees
      • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set Point[2] = (Point[1] offset by 650.00 towards ((360.00 / 12.00) x (Real((Integer A)))) degrees)
          • Set Point[3] = (Point[1] offset by 650.00 towards ((360.00 / 12.00) x (1.00 + (Real((Integer A))))) degrees)
          • Lightning - Create a Chain Lightning - Primary lightning effect from source Point[3] to target Point[2]
          • Unit - Create 1 Dummy Unit (Circle Pole) for (Owner of (Triggering unit)) at Point[3] facing Default building facing degrees
          • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
          • Custom script: call RemoveLocation ( udg_Point[2])
          • Custom script: call RemoveLocation ( udg_Point[3])
      • Custom script: call RemoveLocation ( udg_Point[1])


I guess that local lightning variables could be a solution in here, but I haven't yet started to use JASS cuz i'm too lazy to search up a good tutorial and then read it:p

Good answers and correct answers = +rep!:thup:
 

Laiev

Hey Listen!!
Reaction score
188
simple xP use custom scrippt local variables

local lightning then remove, will still mui

also to people <like me> which don't understand your explanation, here is the screen:
energyfield.jpg


(yes, i play hon lol)
 

NindoOne

TH.net Regular
Reaction score
17
simple xP use custom scrippt local variables

local lightning then remove, will still mui

also to people <like me> which don't understand your explanation, here is the screen:
energyfield.jpg


(yes, i play hon lol)

can you have arrays in local variables, if so... How?:nuts:
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Is that a warcraft map? It looks a bit nicer that warcraft graphics.
Or do you buy it...
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Heroes of Newearth?
Where can i download this?
Sorry for hi-jacking the thread =(
 

Laiev

Hey Listen!!
Reaction score
188
sorry for don't explain how do that but now i'll :p
use this in the top of all actions, after "actions"

Trigger:
  • .
    • Custom script: local lightning array l



use this instead your "Create lightning...
Trigger:
  • .
    • Custom script: set l[bj_forLoopAIndex] = AddLightningEx(CLPB, true, GetLocationX(udg_Point[3]), GetLocationY(udg_Point[3]), GetLocationZ(udg_Point[3]), GetLocationX(udg_Point[2]), GetLocationY(udg_Point[2]), GetLocationZ(udg_Point[2]))



use this to destroy the lightning
Trigger:
  • Custom script: call DestroyLightning (l[bj_forLoopAIndex])


PS: bj_forLoopAIndex = IntegerA

off topic: hex heroesofnewerth.com but you'll a invite from some people which play :p

edit: forget the array in local lol
edit2: remember to use loop integer A again to destroy the lightnings
 

NindoOne

TH.net Regular
Reaction score
17
8? WOW..... i just got 3 :(

BTW, the "set l[bj_forLoopAIndex] = AddLightningEx(CLPB, true, GetLocationX(udg_Point[3]), GetLocationY(udg_Point[3]), GetLocationZ(udg_Point[3]), GetLocationX(udg_Point[2]), GetLocationY(udg_Point[2]), GetLocationZ(udg_Point[2]))" line have an error "Line 38: Exepted a name":(
 

Laiev

Hey Listen!!
Reaction score
188
AddLightningEx(CLPB

AddLightningEx("CLPB"


see the difference :p is the problem, i update my post because i forget it too in the first post rofl

xD
 

NindoOne

TH.net Regular
Reaction score
17
AddLightningEx(CLPB

AddLightningEx("CLPB"


see the difference :p is the problem, i update my post because i forget it too in the first post rofl

xD

Awesome! Works fine now. +rep! :D
Also, is there a way to make the lightning effect airborne? Right now it looks like its "lying" on the ground:nuts:
 

Laiev

Hey Listen!!
Reaction score
188
i don't know if will work... but you can test this:

Custom script: set l[bj_forLoopAIndex] = AddLightningEx("CLPB", true, GetLocationX(udg_Point[3]), GetLocationY(udg_Point[3]), GetLocationZ(udg_Point[3]) + 50. , GetLocationX(udg_Point[2]), GetLocationY(udg_Point[2]), GetLocationZ(udg_Point[2]) + 50. )

if is too high, you can reduce it :p


at least i don't get any syntax error
 

NindoOne

TH.net Regular
Reaction score
17
i don't know if will work... but you can test this:

Custom script: set l[bj_forLoopAIndex] = AddLightningEx("CLPB", true, GetLocationX(udg_Point[3]), GetLocationY(udg_Point[3]), GetLocationZ(udg_Point[3]) + 50. , GetLocationX(udg_Point[2]), GetLocationY(udg_Point[2]), GetLocationZ(udg_Point[2]) + 50. )

if is too high, you can reduce it :p


at least i don't get any syntax error

As i guessed, and it works :D
 

Laiev

Hey Listen!!
Reaction score
188
can you post some template with just that spell?

i REALLY want see it in warcraft and if the effect is good, i'll use it <if i get your permission of course>

OT: and if you want to play hon, find me and/or add me Laiev
 

NindoOne

TH.net Regular
Reaction score
17
can you post some template with just that spell?

i REALLY want see it in warcraft and if the effect is good, i'll use it <if i get your permission of course>

OT: and if you want to play hon, find me and/or add me Laiev

I can post the map, I don't have the silence part done yet, I will do that if I'm bored some day:p

Will do the turret maybe later this eavning or tomorrow:)

I wont play HoN today but sure, I can add you next time and then we can play if were both online:)
View attachment 35845
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    Sticking with the desserts for now the latest recipe is Fried Apple Pies - https://www.thehelper.net/threads/recipe-fried-apple-pies.194297/
  • The Helper The Helper:
    Finally finding about some of the bots that are flooding the users online - bytespider apparently is a huge offender here - ignores robots.txt and comes in from a ton of different IPs

      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