(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Resources > JASS Functions

JASS Functions Approved JASS functions will be located here.
Remember to submit your own resources to the submission forum.

Reply
 
LinkBack Thread Tools Display Modes
Old 08-20-2007, 03:15 AM   #31 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Bump: found a bug: call SetUnitPosition(kd.u, GetUnitX(kd.u), GetUnitY(kd.u)) in function UnitKnockbackWithLightning should instead be call SetUnitPosition(kwld.u, GetUnitX(kwld.u), GetUnitY(kwld.u)) so that the script can compile properly.

~updated your post.

Oh, btw, just use the same struct for both, and leave unused vars with the normal knockback. It'd be alot more efficient.

EDIT: Also made it require a library called LocalHandleVars, just in case ;)
PurplePoot is offline   Reply With Quote
Old 08-20-2007, 01:34 PM   #32 (permalink)
 
Silvenon's Avatar

BBoy Silv
 
Join Date: Nov 2006
Posts: 866

Silvenon is on a distinguished road (81)Silvenon is on a distinguished road (81)


Hey, thanks Pooty!

Quote:
Originally Posted by Pooty
Oh, btw, just use the same struct for both, and leave unused vars with the normal knockback. It'd be alot more efficient.
*fixed, is it ok now?

I don't understand, why would it be more efficient?
__________________
PurgeandFire111: Then you can delete the sound and whala... You have the label,filepath, and other parameters.
Silvenon: It's voila, not whala, you... stupidhead :)
PurgeandFire111: Yeah, I was in a rush. =( *cry*
Herman: Voila is an instrument that I quit playing in 6th grade, whala works just fine if not better
PurgeandFire111: No, viola is an instrument. Stupidhead... =D
Silvenon is offline   Reply With Quote
Old 08-20-2007, 10:03 PM   #33 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Because you're making half as many globals. (if you only use a single struct)
PurplePoot is offline   Reply With Quote
Old 08-21-2007, 10:59 AM   #34 (permalink)
 
Silvenon's Avatar

BBoy Silv
 
Join Date: Nov 2006
Posts: 866

Silvenon is on a distinguished road (81)Silvenon is on a distinguished road (81)


Thanks for the help, but there is one more problem..... it returns an error "kd is not a type that allows . sintax" on this line:

local real x = GetUnitX(kd.u) + kd.d1 * kd.cos

Any ideas why that happened?

I would love to rep you but I have to spread first :)

EDIT: Misspelled Knockback
__________________
PurgeandFire111: Then you can delete the sound and whala... You have the label,filepath, and other parameters.
Silvenon: It's voila, not whala, you... stupidhead :)
PurgeandFire111: Yeah, I was in a rush. =( *cry*
Herman: Voila is an instrument that I quit playing in 6th grade, whala works just fine if not better
PurgeandFire111: No, viola is an instrument. Stupidhead... =D

Last edited by Silvenon; 08-21-2007 at 11:22 AM..
Silvenon is offline   Reply With Quote
Old 08-21-2007, 01:58 PM   #35 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

You misspelled knockback wrong in both the library name (Doesn't matter much, but fixed) and the KnockbackData.destroy(kd) (definately does matter :p).

~fixed

Oh, tip to code a bit faster: (StructType).destroy(varName) is equivelant to (varName).destroy()
PurplePoot is offline   Reply With Quote
Old 08-21-2007, 06:06 PM   #36 (permalink)
 
Silvenon's Avatar

BBoy Silv
 
Join Date: Nov 2006
Posts: 866

Silvenon is on a distinguished road (81)Silvenon is on a distinguished road (81)


Thanks, I hate when I misspell.... :)

Quote:
Oh, tip to code a bit faster: (StructType).destroy(varName) is equivelant to (varName).destroy()
Yeah, I know, I found out about that later after I've already coded that function, then I didn't see any reason to change it :P

Another question: why are you helping me so much?? What did I ever do to you?? :D
__________________
PurgeandFire111: Then you can delete the sound and whala... You have the label,filepath, and other parameters.
Silvenon: It's voila, not whala, you... stupidhead :)
PurgeandFire111: Yeah, I was in a rush. =( *cry*
Herman: Voila is an instrument that I quit playing in 6th grade, whala works just fine if not better
PurgeandFire111: No, viola is an instrument. Stupidhead... =D
Silvenon is offline   Reply With Quote
Old 08-21-2007, 06:11 PM   #37 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Quote:
Another question: why are you helping me so much?? What did I ever do to you?? :D
I need something to do =O

Anyhow, I found out about the first bug because one of my friends (dil999) was playing around with this.
PurplePoot is offline   Reply With Quote
Old 08-22-2007, 04:11 PM   #38 (permalink)
 
Silvenon's Avatar

BBoy Silv
 
Join Date: Nov 2006
Posts: 866

Silvenon is on a distinguished road (81)Silvenon is on a distinguished road (81)


You should do something about that 2,999 posts

Yeah, it took me a while to notice that I misspelled Knockback, because New Gen Pack was bumping an error on a wrong line, it seems like Vex isn't so perfect after all.... :)
__________________
PurgeandFire111: Then you can delete the sound and whala... You have the label,filepath, and other parameters.
Silvenon: It's voila, not whala, you... stupidhead :)
PurgeandFire111: Yeah, I was in a rush. =( *cry*
Herman: Voila is an instrument that I quit playing in 6th grade, whala works just fine if not better
PurgeandFire111: No, viola is an instrument. Stupidhead... =D
Silvenon is offline   Reply With Quote
Old 08-22-2007, 07:20 PM   #39 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

I doubt it makes a difference, but actually, FlushHandleLocals (flushes a mission, 1 I2S(H2I)) is most likely slower than SetHandleInt (sets a slot, 1 I2S(H2I)), but faster than SetHandleHandle (sets a slot, 2 I2S(H2I))
PurplePoot is offline   Reply With Quote
Old 08-22-2007, 09:55 PM   #40 (permalink)
 
Silvenon's Avatar

BBoy Silv
 
Join Date: Nov 2006
Posts: 866

Silvenon is on a distinguished road (81)Silvenon is on a distinguished road (81)


Thanks, though I don't understand your point. What did you want to say?

And why don't you come to chat some time? :P
__________________
PurgeandFire111: Then you can delete the sound and whala... You have the label,filepath, and other parameters.
Silvenon: It's voila, not whala, you... stupidhead :)
PurgeandFire111: Yeah, I was in a rush. =( *cry*
Herman: Voila is an instrument that I quit playing in 6th grade, whala works just fine if not better
PurgeandFire111: No, viola is an instrument. Stupidhead... =D
Silvenon is offline   Reply With Quote
Old 08-22-2007, 10:54 PM   #41 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Blarg, I was accidentally reading page 1 and thought it was page 3 when I wrote that :p

(referring to Diablo-DK's post about Flushing being slower than SetHandleInting a single value)

And go to the chat room? I do, sometimes.
PurplePoot is offline   Reply With Quote
Old 09-17-2007, 09:15 PM   #42 (permalink)
 
Silvenon's Avatar

BBoy Silv
 
Join Date: Nov 2006
Posts: 866

Silvenon is on a distinguished road (81)Silvenon is on a distinguished road (81)


Two questions for Pooty:

1.) Do you think I should add a tree-hitting option? (so the knockbacked unit can take down a tree if it hits one)

2.) Maybe I should put the instructions for GUI users? Though 'JASS functions' title probably already scared away all of them.
__________________
PurgeandFire111: Then you can delete the sound and whala... You have the label,filepath, and other parameters.
Silvenon: It's voila, not whala, you... stupidhead :)
PurgeandFire111: Yeah, I was in a rush. =( *cry*
Herman: Voila is an instrument that I quit playing in 6th grade, whala works just fine if not better
PurgeandFire111: No, viola is an instrument. Stupidhead... =D
Silvenon is offline   Reply With Quote
Old 09-17-2007, 10:00 PM   #43 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Quote:
1.) Do you think I should add a tree-hitting option? (so the knockbacked unit can take down a tree if it hits one)
Entirely your choice

Quote:
2.) Maybe I should put the instructions for GUI users? Though 'JASS functions' title probably already scared away all of them.
Nah, there are plenty of other ways for them to find out.. they'll have to sometime -.-
PurplePoot is offline   Reply With Quote
Old 10-06-2007, 06:12 PM   #44 (permalink)

User
 
Join Date: May 2007
Posts: 65

13ack.Stab is an unknown quantity at this point (0)


Hey guys... is there any way I can use this on a Mac? Because from the looks of it, the NewGen pack can't run on one, and so when I just try to CnP the text and try to call it (the way PurplePoot described), it just gave me a thousand errors.

Thanks in advance.
13ack.Stab is offline   Reply With Quote
Old 10-07-2007, 10:38 AM   #45 (permalink)
 
Silvenon's Avatar

BBoy Silv
 
Join Date: Nov 2006
Posts: 866

Silvenon is on a distinguished road (81)Silvenon is on a distinguished road (81)


If you don't have JassNewGenPack, the function is impossible to implement. Sorry I don't know much about Mac-NewGen problems.
__________________
PurgeandFire111: Then you can delete the sound and whala... You have the label,filepath, and other parameters.
Silvenon: It's voila, not whala, you... stupidhead :)
PurgeandFire111: Yeah, I was in a rush. =( *cry*
Herman: Voila is an instrument that I quit playing in 6th grade, whala works just fine if not better
PurgeandFire111: No, viola is an instrument. Stupidhead... =D
Silvenon is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Knockback Help ReGnerA Triggers & Scripts 27 04-05-2008 08:28 PM
[Trigger] Knockback spell funyuns9999 Triggers & Scripts 1 03-02-2008 11:05 AM
[JASS] Knockback! Japut3h Triggers & Scripts 29 02-16-2008 10:53 PM
[JASS] How to do knockback Dracula Triggers & Scripts 8 01-19-2008 12:18 AM
knockback spell help BlazeLancer Triggers & Scripts 3 01-07-2007 10:34 AM

All times are GMT. The time now is 07:53 AM.






Your link here 
Credit Card Consolidation | Mortgages | Car Loan | Debt Consolidation | Looking for Credit Cards?
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle