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 > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 08-25-2009, 05:56 AM   #1
TheWye
User
 
TheWye's Avatar
 
Join Date: May 2009
Posts: 140

TheWye is on a distinguished road (11)

Default UNIT_TYPE_STUNNED not working??

I tried detecting if my unit is stunned with IsUnitType(myUnit, UNIT_TYPE_STUNNED) but it turns out that it doesn't show true if it is stunned. I tried using 'ANbh' (neutral hostile bash) as the stunning ability. So is this function bugged or I'm using it wrong?
__________________
I Wanna :

SetTextTagTextSetTextTagTextSetTextTagText
TheWye is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 08-25-2009, 05:58 AM   #2
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

Detect the buff with GetUnitAbilityLevel(), God only knows what Blizz was thinking with UNIT_TYPE_STUNNED.
__________________
Rising_Dusk is offline   Reply With Quote
Old 08-25-2009, 06:11 AM   #3
TheWye
User
 
TheWye's Avatar
 
Join Date: May 2009
Posts: 140

TheWye is on a distinguished road (11)

Default

So that means I need to detect the buff for each stunning ability? Aww man... its kinda weird since UNIT_TYPE_SNARED actually works fine though. Thanks for the answer anyway :)
__________________
I Wanna :

SetTextTagTextSetTextTagTextSetTextTagText

Last edited by TheWye : 08-25-2009 at 06:11 AM.
TheWye is offline   Reply With Quote
Old 08-25-2009, 06:11 AM   #4
Anachron
User
 
Anachron's Avatar
 
Join Date: Mar 2009
Posts: 1,079

Anachron will become famous soon enough (51)Anachron will become famous soon enough (51)

Default

Nope, you need to check for buffs.
__________________
CustomInventory [Discussion - Download] - Got Directors Cut!
CustomMissle [Discussion - [Download (not yet)] - In development!
Other systems [Spawn System] [Move System] [CustomBar] [SpellBar]
Anachron is offline   Reply With Quote
Old 08-25-2009, 08:08 AM   #5
darkwulfv
Alpha Male of Wc3c
 
darkwulfv's Avatar


Official Map Reviewer
 
Join Date: Mar 2006
Posts: 3,646

Submissions (6)

darkwulfv is just really nice (270)darkwulfv is just really nice (270)

Send a message via AIM to darkwulfv
Default

And if you use a single, general stun buff for your stun spells, this shouldn't be too big of a problem.
__________________
The Spell Request Thread
Quote:
Originally Posted by Joe-Black-5
a dota like map but with unique stuff
(There was no map attached, and that was all the thread said.)
Spells I've Made

Darkwulfv's Lightning Grapple || Tritanis' Lazy Bolt

darkwulfv is offline   Reply With Quote
Old 08-25-2009, 10:10 AM   #6
TheWye
User
 
TheWye's Avatar
 
Join Date: May 2009
Posts: 140

TheWye is on a distinguished road (11)

Default

Hmm.. I see. But what I'm not sure is the stun buffs for impale, volcano and Cluster rockets. Are they supposed to have their own stun buffs or I can actually use the general stun buff?

EDIT: oh and just to share what I have found, the UNIT_TYPE_SNARED and UNIT_TYPE_SLEEPING actually works as how they should be. And "SNARED" includes entangling roots, ensnare and web spells.
__________________
I Wanna :

SetTextTagTextSetTextTagTextSetTextTagText

Last edited by TheWye : 08-25-2009 at 10:12 AM.
TheWye is offline   Reply With Quote
Old 08-25-2009, 03:41 PM   #7
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Mar 2008
Posts: 708

Submissions (2)

Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)Zerzax is a jewel in the rough (192)

2008 Spell olympics - Fire - SilverSpell Making Session 13 WinnerSpell Making Session 12 Winner

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

I think 99% of the stuns are "BSTN". the rest are "BPSE". Check both.
__________________
Some Quotes of Worthy Wisdom:

1. Die - D2 Barbarian
2. Time to Die - D2 Barbarian
3. Too Much Baggage! - D1 Warrior
4. I Gotta Pawn Some of This Stuff! - D1 Warrior
Zerzax is offline   Reply With Quote
Old 08-25-2009, 05:17 PM   #8
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

Or just have all stuns in your map use the same buff like most sane mapmakers.
__________________
Rising_Dusk 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 02:40 AM.


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