wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 01-02-2009, 08:43 PM   #16
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

There are no other standard invulnerability abilities. I could write a one-line, adjustable function that can do all of what this library does. This library does far, far more work than necessary for such a simple cause.
__________________
Rising_Dusk is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 01-02-2009, 09:09 PM   #17
Troll-Brain
User
 
Join Date: Oct 2006
Posts: 1,490

Submissions (1)

Troll-Brain has a spectacular aura about (134)

Default

Quote:
Originally Posted by Rising_Dusk
There are no other standard invulnerability abilities. I could write a one-line, adjustable function that can do all of what this library does. This library does far, far more work than necessary for such a simple cause.
I can too, but in fact i've learned something today i always thought that the trick GetUnitAbilityLevel(u,'Avul')>0 was enough.

EDIT : And it seems i'm not the only one.
__________________
Cool != Useful

Last edited by Troll-Brain : 01-02-2009 at 09:19 PM.
Troll-Brain is offline   Reply With Quote
Old 01-02-2009, 09:46 PM   #18
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Divine Shield is not a revelation, dude, nor does it merit the existence of this library...
__________________

Last edited by Rising_Dusk : 01-02-2009 at 09:46 PM.
Rising_Dusk is offline   Reply With Quote
Old 01-02-2009, 10:03 PM   #19
Troll-Brain
User
 
Join Date: Oct 2006
Posts: 1,490

Submissions (1)

Troll-Brain has a spectacular aura about (134)

Default

Quote:
Originally Posted by Rising_Dusk
Divine Shield is not a revelation, dude, nor does it merit the existence of this library...
I had never needed to check the invulnerability of an unit, for some reason i believed that the buffs of all invulnerable abilities are always the same, hardcoded.
Yes i was a noob, and yes i will stop posting here
__________________
Cool != Useful
Troll-Brain is offline   Reply With Quote
Old 01-03-2009, 12:23 AM   #20
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Okay, well, the admins chatted over it a bit (I know, aren't you special!), and we came to the conclusion that it can be approvable if you do the following:
  • A custom Finger of death ability is not necessary. You can use the in-game finger of death on an in-game unit in order to make this system. You only need to make the in-game unit invis and 'Aloc'd and it will work fine.
If you can do that, then this script will eliminate the objectmerger use and be approvable.
__________________
Rising_Dusk is offline   Reply With Quote
Old 01-03-2009, 04:41 AM   #21
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

Quote:
There are no other standard invulnerability abilities. I could write a one-line, adjustable function that can do all of what this library does. This library does far, far more work than necessary for such a simple cause.
There are a few cases that makes a unit/units invulnerable. I'll upload a demo map very soon.

Quote:
Originally Posted by Rising_Dusk
Okay, well, the admins chatted over it a bit (I know, aren't you special!), and we came to the conclusion that it can be approvable if you do the following:
  • A custom Finger of death ability is not necessary. You can use the in-game finger of death on an in-game unit in order to make this system. You only need to make the in-game unit invis and 'Aloc'd and it will work fine.
If you can do that, then this script will eliminate the objectmerger use and be approvable.

I thought about that and concluded that custom dummy could be unnecessary. However, in-game FOD may pose a problem. I wrote this library in a way that is bulletproof (that will work in any condition, event, settings, occasion, or maps). Using in-game FOD lets a chance to malfunction, as the user of this library has absolutely no obligation not to modify an ability I intended to use.
While I need a custom FOD to eliminate any potential bugs, what about ObjectMerger use below?

Quote:
Originally Posted by PurplePoot
Collapse RemovalDetection:
// This line creates a new ability based off of defend - make sure it doesn't conflict.
    //! external ObjectMerger w3a Adef rdd& anam "Removal Detection Defend"
ToukoAozaki is offline   Reply With Quote
Old 01-03-2009, 05:14 AM   #22
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Wait, why would you need a defend based ability? I don't follow the logic of that suggestion with regards to this submission.

Also, the in-game FoD is fairly bullet-proof as well. All you need to do is issue the order and immediately pause the unit. All you need from the order is the boolean it returns, and no in-game unit can cast a spell instantly. That means you're safe.
__________________
Rising_Dusk is offline   Reply With Quote
Old 01-03-2009, 05:36 AM   #23
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

Quote:
Originally Posted by Rising_Dusk
Wait, why would you need a defend based ability? I don't follow the logic of that suggestion with regards to this submission.
I quoted that code because it doesn't seem any more necessary than custom FoD.
I thought again and it was definitely needed to hide the ability. Don't mind that quote.

Quote:
Also, the in-game FoD is fairly bullet-proof as well. All you need to do is issue the order and immediately pause the unit. All you need from the order is the boolean it returns, and no in-game unit can cast a spell instantly. That means you're safe.

Actually pausing trick solved that point. However, it's not the case I'm talking about. Once the user edited that spell (especially manacost or target), the script will break. Also, while I was fixing the code, I found out that I needed to set specific targets. In-game FoD (without modification) will not work with wards.

Last edited by ToukoAozaki : 01-03-2009 at 05:40 AM.
ToukoAozaki is offline   Reply With Quote
Old 01-03-2009, 05:38 AM   #24
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Wards are immune to the custom invulnerability sources anyways, so GetUnitAbilityLevel(Ward, 'Avul') > 0 will suffice in that case.
__________________
Rising_Dusk is offline   Reply With Quote
Old 01-03-2009, 05:52 AM   #25
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

Quote:
Originally Posted by Rising_Dusk
Wards are immune to the custom invulnerability sources anyways, so GetUnitAbilityLevel(Ward, 'Avul') > 0 will suffice in that case.

They normally do, but that's not hardcoded; you can't say 100%.
ToukoAozaki is offline   Reply With Quote
Old 01-03-2009, 08:08 AM   #26
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Maybe I am just an idealist that believes in people making their maps with some common sense as opposed to doing stupid things just to break scripts. You're probably right, though.
__________________
Rising_Dusk is offline   Reply With Quote
Old 01-03-2009, 12:29 PM   #27
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

store HP
deal *pure* damage 0.001
get HP

changed?

no? == invulnerable !!!
DioD is offline   Reply With Quote
Old 01-03-2009, 12:56 PM   #28
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

We were discussing that, but I was under the impression that there was no damage/attack type combination that worked reliably for both ethereal units and spell immune units.
__________________
Rising_Dusk is offline   Reply With Quote
Old 01-03-2009, 01:16 PM   #29
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

You do not need to pause unit.
You can remove ability after order is given, this will stor unit without any problems.
Also this will fail if target invisible, cos ability cannot be cast in this case.

Check my thread for more about dummy handle for this cases.
DioD is offline   Reply With Quote
Old 01-03-2009, 02:06 PM   #30
ToukoAozaki
extends net.wc3c.Jasser
 
Join Date: Jun 2008
Posts: 336

Submissions (5)

ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)ToukoAozaki will become famous soon enough (60)

Send a message via MSN to ToukoAozaki
Default

Quote:
Originally Posted by DioD
You do not need to pause unit.
You can remove ability after order is given, this will stor unit without any problems.

Well, that would work too. I don't feel the actual difference though. Pausing unit is also for extra safety.

Quote:
Originally Posted by DioD
Also this will fail if target invisible, cos ability cannot be cast in this case.
If the unit is not visible to neutral passive (owner of dummy unit), it temporarily shares its vision to neutral passive. When I didn't share vision of the unit, the function failed like you said. Wind walk and phase shift yielded result that the unit is invulnerable. However, once I wrote some more code to share its vision, everything worked.

Last edited by ToukoAozaki : 01-03-2009 at 02:07 PM.
ToukoAozaki is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 03:54 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services