System Quick Damage Detection

Azlier

Old World Ghost
Reaction score
461
You should use Event. It's the perfect thing for, well, events. It resists null triggers, destroyed triggers, the universe, and everything.
 

RaiJin

New Member
Reaction score
40
The point is, users can pass null triggers...

And guess what? The last time I checked, that ISN'T good.

Do you follow me?

who in gods name would pass a null trigger, but w/e ill change it

@aizler ok ill check it out
 

Romek

Super Moderator
Reaction score
963
You can use Event Responses normally in the triggers you register this event to.
There's no need for those globals.
 

RaiJin

New Member
Reaction score
40
You can use Event Responses normally in the triggers you register this event to.
There's no need for those globals.

really? becaues last time i tried that i got a null unit but that was without using Event. Ill make a quick update then
 

RaiJin

New Member
Reaction score
40
Ok 1.05 now juts quickly updated it

*Removed the 3 globals
*Can Detect Structures being hit
*Shortened Code
 

Romek

Super Moderator
Reaction score
963

Jesus4Lyf

Good Idea™
Reaction score
397
Lol, sorry to do this but...
JASS:
//$ - JESUS4LYFE for letting me use Event <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile    :)" loading="lazy" data-shortname=":)" />

No "e" on the end, bro... It's just Jesus4Lyf. Heh. :thup:
But thanks. :)
 

RaiJin

New Member
Reaction score
40
Lol, sorry to do this but...
JASS:
//$ - JESUS4LYFE for letting me use Event <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile    :)" loading="lazy" data-shortname=":)" />

No "e" on the end, bro... It's just Jesus4Lyf. Heh. :thup:
But thanks. :)

xD my bad i changed it
 

Gwypaas

hook DoNothing MakeGUIUsersCrash
Reaction score
50
When the 1.23b patch comes it's just to change the H2I calls to GetHandleId() which return the exact same values as H2I, so no damage done to any of thoose systems. Maybe you should look into the 1.23b patch more before you make suchs statements.

So your "scare" for H2I ain't viable anymore :)
 

Jesus4Lyf

Good Idea™
Reaction score
397
Maybe you should look into the 1.23b patch more before you make suchs statements.
That's a bit arrogant, since the only point I was making was they wouldn't be "1.23b AND 1.23 compatible". Of course I've looked into the patch.

So your "scare" for H2I ain't viable anymore :)
So, apparently you mistook my problem with H2I - people using H2I-0x100000. GetHandleId-0x100000 is just as bad.
 

Gwypaas

hook DoNothing MakeGUIUsersCrash
Reaction score
50
So, apparently you mistook my problem with H2I - people using H2I-0x100000. GetHandleId-0x100000 is just as bad.
With the new hashtable handle we don't have that problem.... And the only problem you can ever get with using the 0x100000 method is indexing out of bounds and that can easily be solved if you know what you are doing.

That's a bit arrogant, since the only point I was making was they wouldn't be "1.23b AND 1.23 compatible". Of course I've looked into the patch.
Almost no system up to date will be both 1.23 and 1.23b compatable so why even try to use that as an argument?

and i don't compare my codes to other codes.
The user will do it.
 

Romek

Super Moderator
Reaction score
963
Approved.
This is a simple, small code which does what it's meant to do without any extra features.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top