System Status

Weep

Godspeed to the sound of the pounding
Reaction score
400
>HAX!!

>That's incredible!

I'm just standing on the shoulders of giants, in this case... :cool:
 

Jesus4Lyf

Good Idea™
Reaction score
397
Yay. ;)

By the way, slight modification because I forgot to remove debugging messages, please redownload code. I've also changed version number to 1.1.0.
Why don't you just pause the unit, using pause safety, timer.... ..... ..... UNPause?
Because pausing sucks - if you try issuing orders to a paused unit, it doesn't register at all. If you try issuing orders to a stunned unit, it actually changes the order the unit will return to after stun. So if you're playing a game where you have one second delay, and you're running into a battle and get stunned and realise you need to get the hell out, you're screwed if the author was lazy and used Pause. ;)

So this is the ultimate way to stun a unit. Any ideas for making it work on invulnerable? I tried adding it to targets.
 

Jesus4Lyf

Good Idea™
Reaction score
397
And setting the unit's animation speed to 0%?!
LET'S SAY RANDOM IRRELEVANT THINGS IN OTHER PEOPLE'S THREADS! Yay!! :(

I was thinking I could check if the order succeeded. If it failed, remove invuln, try again. If it succeeded, don't worry.

But that may break if the stun function is called from a condition - or group enumeration, right? There's no way with natives to directly assess if a unit is invulnerable, I believe.
 

uberfoop

~=Admiral Stukov=~
Reaction score
177
I could have sworn there was an IsUnitType, maybe not.

edit:
Crap, nvm, and that wouldn't make sense anyway.

Yeah, I believe that no native way is correct.
 

Azlier

Old World Ghost
Reaction score
461
>There's no way with natives to directly assess if a unit is invulnerable, I believe.

Well, I would try issuing an order to attack the target. From two dummy units: one with a magic attack (to work on ethereal), one with a normal ranged attack (for spell immune).

If both of the issued orders return false, the target SHOULD be invulnerable. Untested, however.
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Any ideas for making it work on invulnerable?
Aerial Shackles works, with the obvious downside of requiring one dummy per target. Could be used only if the target is invulnerable.

There's no way with natives to directly assess if a unit is invulnerable, I believe.
Store its health, set its life +1, ping it for 1 damage, see if the health dropped, reset health?
[edit] OK, and add a +1 HP life modifier ability, then remove it. :p
 

Azlier

Old World Ghost
Reaction score
461
>Store its health, set its life +1, ping it for 1 damage, see if the health dropped, reset health?

That would kill a unit with 1 health point (lol), and would that actually work on ethereal?
 

Jesus4Lyf

Good Idea™
Reaction score
397
I got a better idea.

Since you can't detect if a unit is invulnerable, maybe this shouldn't stun invulnerable. Otherwise making AoE stuns becomes awfully hard. And in most circumstances, this is illogical anyway - I think this would be a con if the system hit invulnerable units, as AoE stuns is a downside and I can't imagine an upside.

Signed, sealed, delivered, it's yours. I'm happy with the system as it stands.

Any further improvements? TriggerHappy suggested naming the functions UnitAddStun/UnitRemoveStun instead of just AddStun and RemoveStun. Yes, it fits WC3 conventions better. But it's more to type. Minor issue. Opinions? As mappers, which would you prefer? What's more intuitive?
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
I think it should be UnitAddStun/UnitRemoveStun, wc3-ish of course.

I also like ice cream with chocolate chips and strawberries.
 

Azlier

Old World Ghost
Reaction score
461
UnitAddStun is nicer, because AddStun and my TrackableAddStun function are getting confused.

In case you didn't get it, what would you stun besides units?
 

Jesus4Lyf

Good Idea™
Reaction score
397
UnitAddStun is nicer, because AddStun and my TrackableAddStun function are getting confused.

In case you didn't get it, what would you stun besides units?
My thoughts exactly.

>it should be UnitAddStun/UnitRemoveStun, wc3-ish of course.
I'm not too concerned with what it should be, more concerned with what people would prefer it to be - ease of typing and intuitiveness.

My vote would be remain the same, by the way.
 

Viikuna

No Marlo no game.
Reaction score
265
StunUnit is teh best.

and RemoveStun maybe?

I stil think you should do that struct thingy, and allow other types of buffing spells than firebolt.

JASS:
set Stun=Buff.create( STUN_ABILITY_ID,STUN_ORDER_ID)
   set Roots=Buff.create( ROOTS_ABILITY_ID,ROOTS_ORDER_ID)  
   
   //...

   call Stun.add( unit )
   // ...
   call Stun.remove( unit )
 

Kenny

Back for now.
Reaction score
202
I like AddStun() and RemoveStun(), they are intuitive and easily understandable.

One thing:

JASS:
private constant integer OID_FIREBOLT=852231


You don't use this from what I can see. :p Still using the order string in the function.

Anyways, this is mad. Exactly what is needed in stun system. I say +1 approved vote, after the above is fixed though. :)
 

Jesus4Lyf

Good Idea™
Reaction score
397
You don't use this from what I can see. :p
Epic fail. :banghead:
Thanks. :)
Anyways, this is mad. Exactly what is needed in stun system. I say +1 approved vote
:D Glad you appreciate the simple interface. Originally I tried some timed stun thing, but then I had a revelation that there was something that much better answered the requirement... :thup:

I intend not to self approve, so if another moderator would kindly check this out...
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Where's the demo map? I was going to check whether the stun ability is instant-hit (speed 0) or not.
 
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