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.
  • Varine Varine:
    I ordered like five blocks for 15 dollars. They're just little aluminum blocks with holes drilled into them
  • Varine Varine:
    They are pretty much disposable. I have shitty nozzles though, and I don't think these were designed for how hot I've run them
  • Varine Varine:
    I tried to extract it but the thing is pretty stuck. Idk what else I can use this for
  • Varine Varine:
    I'll throw it into my scrap stuff box, I'm sure can be used for something
  • Varine Varine:
    I have spare parts for like, everything BUT that block lol. Oh well, I'll print this shit next week I guess. Hopefully it fits
  • Varine Varine:
    I see that, despite your insistence to the contrary, we are becoming a recipe website
  • Varine Varine:
    Which is unique I guess.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air

      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