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 03-23-2010, 03:42 PM   #31
gamma_T
User
 
gamma_T's Avatar
 
Join Date: Mar 2010
Posts: 5

gamma_T has little to show at this moment (0)

Default

First of all, thx you for implementing this kind of Random method. It will likely simulate the native orb chance. Anyway I still have a question.

If I use
Collapse JASS:
EVENT_PLAYER_UNIT_ATTACKED
event to register for a particular unit
Collapse JASS:
EVENT_UNIT_DAMAGED
so I can call custom spell function
Collapse JASS:
if GetHandleProc(CriticalHit, GetEventDamageSource(), CritChance) then
        call MyCustomSpell()
endif

then how does your system deals with rapid A hotkey klicks which will fire the trigger 10 times per sec. Will it be still the 15% chance?
I am asking this because using Bliz random function will eventually give me almost 100% chance for crit.
gamma_T is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 03-24-2010, 06:41 PM   #32
grim001
requires vJass
 
grim001's Avatar


Code Moderator
 
Join Date: Nov 2006
Posts: 1,540

Submissions (10)

grim001 is just really nice (277)grim001 is just really nice (277)

Send a message via AIM to grim001
Default

First answer is that you shouldn't do that at all. Do not dynamically create damage detection triggers. Just use a damage detection system.

Now, if you were basing this on a damage detection system, the random proc will only be triggered when damage actually occurs. Therefore there's no issue.
grim001 is offline   Reply With Quote
Old 03-24-2010, 10:43 PM   #33
gamma_T
User
 
gamma_T's Avatar
 
Join Date: Mar 2010
Posts: 5

gamma_T has little to show at this moment (0)

Default

Well, I am sure you right. But the reason I use such "bad" way is due to no good system here for Damage Detection.

This is an example of heavy lag which is unacceptable in multilayer maps like AOS or TD.
gamma_T is offline   Reply With Quote
Old 03-25-2010, 12:06 AM   #34
Fledermaus
default string
 
Fledermaus's Avatar
 
Join Date: May 2006
Posts: 705

Submissions (1)

Fledermaus is a jewel in the rough (194)Fledermaus is a jewel in the rough (194)Fledermaus is a jewel in the rough (194)

Send a message via MSN to Fledermaus
Default

Try this
Fledermaus 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 06:46 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