Trigger Problem

Ph[o]bia

New Member
Reaction score
7
I got a problem and a question

1-My problem is Ignis Strike Death 2 don't want to work and I don't know why. can you guys help me to make it work

Trigger:
  • Ignis Strike Init
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ignis Strike
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ISIndex[1] Less than 100
        • Then - Actions
          • Set ISIndex[1] = (ISIndex[1] + 1)
        • Else - Actions
          • Set ISIndex[1] = 1
      • Set ISCaster[ISIndex[1]] = (Triggering unit)
      • Set ISAoe[ISIndex[1]] = 300.00
      • Set ISTargetPoint[ISIndex[1]] = (Target point of ability being cast)
      • Set ISFlying2[ISIndex[1]] = 2000.00
      • Set ISOwner[ISIndex[1]] = (Owner of ISCaster[ISIndex[1]])
      • Set ISCasterPoint[ISIndex[1]] = (Position of ISCaster[ISIndex[1]])
      • Set ISAngle[ISIndex[1]] = 0.00
      • Set ISFacingAngle[ISIndex[1]] = 0.00
      • If ((Level of Ignis Strike for ISCaster[ISIndex[1]]) Equal to 1) then do (Set ISDamage[ISIndex[1]] = (Power((Real((Level of Ignis Strike for ISCaster[ISIndex[1]]))), 4.00))) else do (Do nothing)
      • If ((Level of Ignis Strike for ISCaster[ISIndex[1]]) Equal to 2) then do (Set ISDamage[ISIndex[1]] = (Power((Real((Level of Ignis Strike for ISCaster[ISIndex[1]]))), 5.00))) else do (Do nothing)
      • If ((Level of Ignis Strike for ISCaster[ISIndex[1]]) Equal to 3) then do (Set ISDamage[ISIndex[1]] = (Power((Real((Level of Ignis Strike for ISCaster[ISIndex[1]]))), 6.00))) else do (Do nothing)
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set ISDummyPoint1[ISIndex[1]] = (ISCasterPoint[ISIndex[1]] offset by ISAoe[ISIndex[1]] towards ISAngle[ISIndex[1]] degrees)
          • Unit - Create 1 Ignis Strike[Flame] for ISOwner[ISIndex[1]] at ISDummyPoint1[ISIndex[1]] facing ISCasterPoint[ISIndex[1]]
          • Set ISDummy1[ISIndex[1]] = (Last created unit)
          • Unit Group - Add ISDummy1[ISIndex[1]] to ISDummyGroup2[ISIndex[1]]
          • Unit - Set the custom value of ISDummy1[ISIndex[1]] to (Integer(ISAngle[ISIndex[1]]))
          • Set ISAngle[ISIndex[1]] = (ISAngle[ISIndex[1]] + 36.00)
      • Unit - Create 1 Ignis Strike[Invisible] for ISOwner[ISIndex[1]] at ISCasterPoint[ISIndex[1]] facing ISCasterPoint[ISIndex[1]]
      • Set ISDummy4 = (Last created unit)
      • Unit - Set the custom value of ISDummy4 to ISIndex[1]
      • Unit Group - Add ISDummy4 to ISDummyGroup
      • Custom script: call RemoveLocation(udg_ISCasterPoint[udg_ISIndex[1]])


Trigger:
  • Ignis Strike Periodic
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
      • (ISDummyGroup is empty) Equal to False
    • Actions
      • Unit Group - Pick every unit in ISDummyGroup and do (Actions)
        • Loop - Actions
          • Set ISDummy4 = (Picked unit)
          • Set ISIndex[2] = (Custom value of ISDummy4)
          • Set ISAngle2[ISIndex[2]] = (ISAngle2[ISIndex[2]] + 5.00)
          • Set ISFlying[ISIndex[2]] = (ISFlying[ISIndex[2]] + 20.00)
          • Unit Group - Pick every unit in ISDummyGroup2[ISIndex[2]] and do (Actions)
            • Loop - Actions
              • Set ISDummy1[ISIndex[2]] = (Picked unit)
              • Set ISCasterPoint[ISIndex[2]] = (Position of ISCaster[ISIndex[2]])
              • Set ISDummyPoint1[ISIndex[2]] = (ISCasterPoint[ISIndex[2]] offset by ISAoe[ISIndex[2]] towards ((Real((Custom value of ISDummy1[ISIndex[2]]))) + ISAngle2[ISIndex[2]]) degrees)
              • Unit - Move ISDummy1[ISIndex[2]] instantly to ISDummyPoint1[ISIndex[2]]
              • Animation - Change ISDummy1[ISIndex[2]] flying height to ISFlying[ISIndex[2]] at 0.00
              • Custom script: call RemoveLocation(udg_ISCasterPoint[udg_ISIndex[2]])
              • Custom script: call RemoveLocation(udg_ISDummyPoint1[udg_ISIndex[2]])
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current flying height of ISDummy1[ISIndex[2]]) Greater than or equal to 1500.00
                • Then - Actions
                  • Unit - Kill ISDummy1[ISIndex[2]]
                  • Unit - Kill ISDummy4
                • Else - Actions
                  • Do nothing

Trigger:
  • Ignis Strike Death
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of ISDummy4) Equal to Ignis Strike[Invisible]
    • Actions
      • Unit - Create 1 Ignis Strike[Meteor] for ISOwner[ISIndex[2]] at ISTargetPoint[ISIndex[2]] facing ISCasterPoint[2]
      • Set ISDummy2[ISIndex[2]] = (Last created unit)
      • Set ISDummyPoint2[ISIndex[2]] = (Position of ISDummy2[ISIndex[2]])
      • Unit Group - Add ISDummy2[ISIndex[2]] to ISFlyingGroup2[ISIndex[2]]
      • Unit - Create 1 Ignis Strike[Invisible] for ISOwner[ISIndex[2]] at ISDummyPoint2[ISIndex[2]] facing ISDummyPoint2[ISIndex[2]]
      • Set ISDummy5 = (Last created unit)
      • Unit - Set the custom value of ISDummy5 to ISIndex[2]
      • Unit Group - Add ISDummy5 to ISFlyingGroup
      • Custom script: call RemoveLocation(udg_ISTargetPoint[udg_ISIndex[2]])


Trigger:
  • Ignis Strike Periodic 2
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
      • (ISFlyingGroup is empty) Equal to False
    • Actions
      • Unit Group - Pick every unit in ISFlyingGroup and do (Actions)
        • Loop - Actions
          • Set ISDummy5 = (Picked unit)
          • Set ISIndex[3] = (Custom value of ISDummy5)
          • Set ISFlying2[ISIndex[3]] = (ISFlying2[ISIndex[3]] - 30.00)
          • Set ISFacingAngle[ISIndex[3]] = ((Facing of ISDummy2[ISIndex[3]]) + 30.00)
          • Unit Group - Pick every unit in ISFlyingGroup2[ISIndex[3]] and do (Actions)
            • Loop - Actions
              • Set ISDummy2[ISIndex[3]] = (Picked unit)
              • Animation - Change ISDummy2[ISIndex[3]] flying height to ISFlying2[ISIndex[3]] at 0.00
              • Unit - Make ISDummy2[ISIndex[3]] face ISFacingAngle[ISIndex[3]] over 0.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current flying height of ISDummy2[ISIndex[3]]) Less than or equal to 10.00
                • Then - Actions
                  • Unit - Kill ISDummy2[ISIndex[3]]
                  • Unit - Kill ISDummy5
                • Else - Actions
                  • Do nothing


Trigger:
  • Ignis Strike Death 2
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of ISDummy5) Equal to Ignis Strike[Invisible]
    • Actions
      • Unit - Create 1 Ignis Strike[Explosion] for ISOwner[ISIndex[3]] at ISDummyPoint2[ISIndex[3]] facing ISDummyPoint2[ISIndex[3]]
      • Set ISDummy3[ISIndex[3]] = (Last created unit)
      • Set ISDummyPoint3[ISIndex[3]] = (Position of ISDummy3[ISIndex[3]])
      • Unit - Add a 2.00 second Generic expiration timer to ISDummy3[ISIndex[3]]
      • Set ISDamageGroup[ISIndex[3]] = (Units within ISAoe[ISIndex[3]] of ISDummyPoint3[ISIndex[3]] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and (((Matching unit) belongs to an enemy of ISOwner[ISIndex[3]]) Equal to True)))
      • Unit Group - Pick every unit in ISDamageGroup[ISIndex[3]] and do (Actions)
        • Loop - Actions
          • Set ISTarget[ISIndex[3]] = (Picked unit)
          • Unit - Cause ISCaster[ISIndex[3]] to damage ISTarget[ISIndex[3]], dealing ISDamage[ISIndex[3]] damage of attack type Spells and damage type Normal
          • Special Effect - Create a special effect attached to the chest of ISTarget[ISIndex[3]] using Abilities\Weapons\PhoenixMissile\Phoenix_Missile.mdl
          • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_ISDummyPoint3[udg_ISIndex[3]])
      • Custom script: call RemoveLocation(udg_ISDummyPoint2[udg_ISIndex[3]])


2- my question is: did my unit group leaks?
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
1). i do not know what exactly your spell is supposed to do neither what it doesnt do right...

2). groups do not leak though you have a point leak in the first trigger, setting:
Trigger:
  • Set ISDummyPoint1[ISIndex[1]] = (ISCasterPoint[ISIndex[1]] offset by ISAoe[ISIndex[1]] towards ISAngle[ISIndex[1]] degrees)

without removing it.
 

jomik

New Member
Reaction score
17
1). i do not know what exactly your spell is supposed to do neither what it doesnt do right...

2). groups do not leak though you have a point leak in the first trigger, setting:
Trigger:
  • Set ISDummyPoint1[ISIndex[1]] = (ISCasterPoint[ISIndex[1]] offset by ISAoe[ISIndex[1]] towards ISAngle[ISIndex[1]] degrees)

without removing it.

Dude, Unit-Groups do leak? :O
 

LearningCode

New Member
Reaction score
24
(Unit-type of ISDummy5) Equal to Ignis Strike[Invisible]

Unit type of triggering unit Equal to Ignis Strike[Invisible]

Try it, lol
 

Laiev

Hey Listen!!
Reaction score
188
you can make all that periodic trigger in one.. so why make in 3-4? :nuts:

just use if's

and remove that 'do nothing', leave empty
 

Laiev

Hey Listen!!
Reaction score
188
True..

but is better just run 1 trigger, instead of 2 in every 0,03 seconds.. 1 trigger each 0,03 seconds will run 33 times in 1 second... 2 triggers will run 66 times :banghead:

i think it's don't matter... well :rolleyes:


about your second question...

unit group just leak if you leave then alive, or if you set again without destroy it
 

Ph[o]bia

New Member
Reaction score
7
I heard sometime unit group don't leak so, i was wondering when they aren't and if mine does leak or not
 

Laiev

Hey Listen!!
Reaction score
188
your group don't leak because you don't set it again... well.. you don't set it lol

you just use it to add units inside, so you can use it without destroy and spell still MUI/MPI

what leak?
SE (special effect)
point (location)
group (unit group)
force (player group)
text (floating text)


all what you create temporary you NEED to destroy, or will stole all your memory lol
 

Ph[o]bia

New Member
Reaction score
7
So , exept for my damage group , all group dont leak?

now i need to make the last trigger working -.-
 

Laiev

Hey Listen!!
Reaction score
188
So , exept for my damage group , all group dont leak?

now i need to make the last trigger working -.-

no... all group unit leaks if set and set again before destroy it..

your group don't leak because you don't set it, you just use to store units..


also your trigger don't work because it need to the first trigger 'dies' work...

because this i say to you make all in one trigger... to prevent it..

the second 'unit dies' trigger which you got, needs the first 'unit dies' trigger action before...

"ISDummy5" is set in first 'unit dies'
 
General chit-chat
Help Users
  • 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 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

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top