Am I mental? This just wont work

Baltazhar

Active Member
Reaction score
55
Let me first point out that I have tried like 10 different structures of this spell, having a unit variable to define triggering unit.
In this I pasted, I set the unit to a unit group with only him, and used "random unit in group".

The idea is that he targets a point with his ability (made off Shockwave), and slides to that point, at which he stops and turns normal (collision, invulnerability and unpaused).

Trigger one:
Code:
Shield Charge
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Shield Charge 
    Actions
        Set ShieldChargeGroup = (Units owned by (Owner of (Triggering unit)) of type Veteran Warrior)
        Set ShieldChargeTargetPoint = (Target point of ability being cast)
        Unit - Turn collision for (Triggering unit) Off
        Unit - Make (Triggering unit) Invulnerable
        Unit - Pause (Triggering unit)
        Trigger - Turn on Shield Charge Move <gen>
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)

Second trigger should do the actual moving of the unit, and stop him when he's close enough.

Code:
Shield Charge Move
    Events
        Time - Every 0.02 seconds of game time
    Conditions
    Actions
        Set ShieldChargeCasterPoint = (Position of (Random unit from ShieldChargeGroup))
        Set Temp_Point = (ShieldChargeCasterPoint offset by 20.00 towards (Angle from ShieldChargeCasterPoint to ShieldChargeTargetPoint) degrees)
        Set ShieldChargeCasterPoint = Temp_Point
        Custom script:   call RemoveLocation (udg_Temp_Point)
        Unit Group - Pick every unit in ShieldChargeGroup and do (Actions)
            Loop - Actions
                Unit - Move (Picked unit) instantly to ShieldChargeCasterPoint
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Distance between ShieldChargeCasterPoint and ShieldChargeTargetPoint) Less than 20.00
            Then - Actions
                Unit - Turn collision for (Random unit from ShieldChargeGroup) On
                Unit - Make (Random unit from ShieldChargeGroup) Vulnerable
                Unit - Unpause (Random unit from ShieldChargeGroup)
                Trigger - Turn off (This trigger)
            Else - Actions

The effect varies with different setups I make, but nothing actually moves him. I have already made a couple of slidespells in this map, this just doesn't wanna work :nuts:
The outcome of this spell is that he casts Shockwave towards the center of the map (nomatter where it's targeted), and gets 0 collision, invulnerability and is paused. Then nothing else happens.

I would greatly appreciate any pointers as where to this is failing, it's driving me nuts! >.<

Thanks in advance.

- Balt
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I think that it's trying to move to so many units in just a few seconds, so it faults on itself...
 

Baltazhar

Active Member
Reaction score
55
Another trigger I have, which works perfectly fine, moves a 250 range template of creeps at once, with no problems.
This Unit Group only consists of 1 unit, the caster of the ability. So I don't think moving one unit "at once" is an overkill of any sort.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Re-read trigger so dunno...
 

Baltazhar

Active Member
Reaction score
55
Ah okay. Thanks for looking at it at least.
Hope someone else can figure this nut... I hate triggers sometimes :)
 

Baltazhar

Active Member
Reaction score
55
Now I deleted the triggers and all variables used in them.
Then I found this guide to TimeWalk which is basically what I want it to do:
http://www.thehelper.net/forums/showthread.php?t=78488&highlight=timewalk

I copied over the triggers, made the variables and changed the "Set Variables" to fit my variable names.
This should be absolutely failsafe, seeing as it works perfectly in the Tutorial map.
The ability is based on Channel, as in the tutorial map.

First trigger:
Code:
Shield Charge
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Shield Charge (Channel)
    Actions
        Set ShieldChargeUnit = (Triggering unit)
        Set ShieldChargeCasterPoint = (Position of ShieldChargeUnit)
        Set ShieldChargeTargetPoint = (Target point of ability being cast)
        Set ShieldChargeAngle = (Angle from ShieldChargeCasterPoint to ShieldChargeTargetPoint)
        Set ShieldChargeMaxDistance = (Distance between ShieldChargeCasterPoint and ShieldChargeTargetPoint)
        Set ShieldChargeDistanceTraveled = 0.00
        Unit - Turn collision for ShieldChargeUnit Off
        Unit - Pause ShieldChargeUnit
        Custom script:   call RemoveLocation (udg_ShieldChargeCasterPoint)
        Custom script:   call RemoveLocation (udg_ShieldChargeTargetPoint)
        Wait 0.50 seconds
        Trigger - Turn on Shield Charge Move <gen>

Second trigger:
Code:
Shield Charge Move
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ShieldChargeDistanceTraveled Greater than or equal to ShieldChargeMaxDistance
            Then - Actions
                Set ShieldChargeDistanceTraveled = 0.00
                Set ShieldChargeTargetPoint = (Position of ShieldChargeUnit)
                Unit - Turn collision for ShieldChargeUnit On
                Unit - Unpause ShieldChargeUnit
                Custom script:   call RemoveLocation (udg_ShieldChargeTargetPoint)
                Trigger - Turn off (This trigger)
            Else - Actions
                Set ShieldChargeTargetPoint = (Position of ShieldChargeUnit)
                Set ShieldChargeTargetPoint = (ShieldChargeCasterPoint offset by 15.00 towards ShieldChargeAngle degrees)
                Unit - Move ShieldChargeUnit instantly to ShieldChargeTargetPoint
                Set ShieldChargeDistanceTraveled = (ShieldChargeDistanceTraveled + 15.00)
                Custom script:   call RemoveLocation (udg_ShieldChargeCasterPoint)
                Custom script:   call RemoveLocation (udg_ShieldChargeTargetPoint)

When cast, the unit stand still for the 0.5 seconds, then gets moved instantly to the center of the map. I have absolutely NO clue what the heck is going on! Even a tutorial model wont work.
Is this a map corruption that prevents this ability?

Pretty please, someone give me a hint...
 

Baltazhar

Active Member
Reaction score
55
Okay, apparently I was mental.
Had swapped around 2 variables, which made it defect. My friend looked it over and spotted it, he's quite the hero :)

Case is solved!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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

      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