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 > vJass Spells
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 05-06-2009, 03:36 AM   #46
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,279

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

Spell updated to 2.0 and fixed a rare double free bug.
moyack is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 06-03-2009, 01:04 PM   #47
busterkomo
User
 
Join Date: Aug 2007
Posts: 68

Submissions (1)

busterkomo is on a distinguished road (10)

Default

Is there any reason for doing something like this:

Collapse JASS:
private constant function Damage takes integer l returns real 
    return 100. + 50. * (l - 1)
endfunction

Instead of:

Collapse JASS:
private constant function Damage takes integer l returns real 
    return 50. +  50. *  l
endfunction

Last edited by busterkomo : 06-03-2009 at 01:04 PM.
busterkomo is offline   Reply With Quote
Old 06-03-2009, 01:42 PM   #48
snowtiger
User
 
snowtiger's Avatar
 
Join Date: Oct 2007
Posts: 63

snowtiger has little to show at this moment (1)

Default

Same thing here
Collapse JASS:
private constant function Chance takes integer l returns real 
    return 0.3 + 0.3 * (l - 1)
endfunction

Instead of:

Collapse JASS:
private constant function Chance takes integer l returns real 
    return 0.3 * l
endfunction

But I guess it is for configurationability.
snowtiger is offline   Reply With Quote
Old 06-03-2009, 03:15 PM   #49
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,279

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

Quote:
Originally Posted by busterkomo
Is there any reason for doing something like this:

Collapse JASS:
private constant function Damage takes integer l returns real 
    return 100. + 50. * (l - 1)
endfunction

Instead of:

Collapse JASS:
private constant function Damage takes integer l returns real 
    return 50. +  50. *  l
endfunction
I've done it in this way because you can set an initial base value (100) plus the increment (50) multiplied to the level of the spell.

You're free to change all the formula if you need it, but I left as is because I believe it's easy in this way to see the base amount + increment.

Last edited by moyack : 06-03-2009 at 04:00 PM.
moyack is offline   Reply With Quote
Old 12-18-2009, 07:08 AM   #50
titan23
User
 
Join Date: Dec 2009
Posts: 12

titan23 has little to show at this moment (1)

Default

solved the issue, ignore this post

Last edited by titan23 : 12-23-2009 at 07:08 PM.
titan23 is offline   Reply With Quote
Old 05-24-2010, 06:29 AM   #51
yatyfornetreg
User
 
yatyfornetreg's Avatar
 
Join Date: May 2010
Posts: 22

yatyfornetreg has little to show at this moment (0)

Send a message via MSN to yatyfornetreg
Default

Thank Alexander244 for "onDestroy should be private"

and, one question. what will happen if i insanely press S near an enemy?...
yatyfornetreg is offline   Reply With Quote
Old 08-16-2010, 02:22 PM   #52
Prince.Zero
User
 
Join Date: Jul 2010
Posts: 3

Prince.Zero has little to show at this moment (0)

Default

nice blood splatter ^_^ +rep
Prince.Zero 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 08:52 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