 |   |  |  |
JASS Functions Approved JASS functions will be located here.
Remember to submit your own resources to the submission forum. |
 |
|
08-20-2007, 03:15 AM
|
#31 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,349
|
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 ;)
|
|
|
08-20-2007, 01:34 PM
|
#32 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
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
|
|
|
08-20-2007, 10:03 PM
|
#33 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,349
|
Because you're making half as many globals. (if you only use a single struct)
|
|
|
08-21-2007, 10:59 AM
|
#34 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
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..
|
|
|
08-21-2007, 01:58 PM
|
#35 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,349
|
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()
|
|
|
08-21-2007, 06:06 PM
|
#36 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
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
|
|
|
08-21-2007, 06:11 PM
|
#37 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,349
|
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.
|
|
|
08-22-2007, 04:11 PM
|
#38 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
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
|
|
|
08-22-2007, 07:20 PM
|
#39 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,349
|
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))
|
|
|
08-22-2007, 09:55 PM
|
#40 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
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
|
|
|
08-22-2007, 10:54 PM
|
#41 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,349
|
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.
|
|
|
09-17-2007, 09:15 PM
|
#42 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
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
|
|
|
09-17-2007, 10:00 PM
|
#43 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,349
|
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 -.-
|
|
|
10-06-2007, 06:12 PM
|
#44 (permalink)
|
User
Join Date: May 2007
Posts: 65
|
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.
|
|
|
10-07-2007, 10:38 AM
|
#45 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
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
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
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 |
|  |  |  |  |   |  |
|