|
 |   |  |  |
JASS Functions Approved JASS functions will be located here.
Remember to submit your own resources to the submission forum. |
 |
|
06-17-2008, 10:00 PM
|
#31 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
Quote:
|
Syntax error because the globals block needs to be at the top.
|
Dang. Thanks :)
Quote:
|
And I tested this without the +es added, and it works fine.
|
Whoa....?? Waaaaaaaks!! What do you have to say for yourself? :P
*Fixed
__________________
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
|
|
|
06-18-2008, 01:52 PM
|
#32 (permalink)
|
RotG v1.34 R.I.P
Join Date: Dec 2006
Posts: 81
|
what do u mean by +es?
ill try it again someday, because im not working on my RotG Reborn map for now, because i created another map
BTW, i used spongebob as the model for the previous tests, does the model affect the jump?
and yeah also, i set the duration as 1 sec and the arc to 0.85 to make it higher
|
|
|
06-18-2008, 03:38 PM
|
#33 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,349
|
Without the changes it supposedly needed.
Quote:
|
and yeah also, i set the duration as 1 sec and the arc to 0.85 to make it higher
|
The arc might cause it, I only tested with 1.8 (The recommended arc). However, I don't see why it would.
|
|
|
06-19-2008, 09:12 PM
|
#34 (permalink)
|
Model Moderator
User
Join Date: Nov 2004
Posts: 760
|
Bah nobody uses Bezier anymore, when they are a lot better than other formulas.
This can be simplified to a basic interpolation formula:
function LinearInterp takes real a, real b, real t returns real return a + (b-a )*t endfunctionfunction BezierInterp takes real a, real b, real c, real t returns real return a + 2* (b-a )*t + (c -2*b + a )*t*t endfunction
In this 3 points bezier curve a, b, c represent points respectively and t represents the step, 0 >= t <= 1.
now lets say we are going to make a perfect parabol.
in a jump, we would try to make a perfect parabol without much problems. The first condition we set for the X & Y axis is that, a is the start point, b is the mid point between c and a; and c is the end point. Thus X & Y axis will be interpolated linearly, and we will eliminate b, since it's the midpoint.
for Z axi (heigth) we'll use the bezier interpolation, if we take into account that heigth is an absolute value, then a = c, no matter in which terrain type the unit starts and ends, in ground of heigth is 0.0. Thus:
function ParabolicInterp takes real a, real b, real t returns real return a + 2* (b-a )*t + 2* (a-b )*t*t //we multiply last by -1 and we change inside symbolsendfunction//thus it simplifies tofunction ParabolicInterp takes real a, real b, real t returns real return a + 2* (b-a )* (1.0-t )*t endfunction
but if we are interpolating over and over then 2*(b-a) would turn into a constant value so it ends up being.
function ParabolicInterp takes real a, real m, real t returns real return a + m* (1.0-t )*t //where m is 2*(b-a)endfunction
|
|
|
07-19-2008, 09:34 PM
|
#35 (permalink)
|
The almighty Lich...
Join Date: Dec 2007
Posts: 1,185
|
Can you help me? I want to make a jump function with GUI, please tell me what to write in custom script functions! I can't READ jass :(
|
|
|
07-30-2008, 05:11 AM
|
#36 (permalink)
|
RotG v1.34 R.I.P
Join Date: Dec 2006
Posts: 81
|
u need to go to "Custom Script" action and type
 call Jump(udg_caster, 1, GetLocationX(udg_point), GetLocationY(udg_point), 1.8, 300, udg_sfx, udg_sfx2)
heres the function, use it for reference
function Jump takes unit whichUnit, real dur, real destX, real destY, real curve, real radius, string sfx1, string sfx2 returns nothing
|
|
|
07-30-2008, 01:02 PM
|
#37 (permalink)
|
The almighty Lich...
Join Date: Dec 2007
Posts: 1,185
|
Thank you, now i'll see fi that works!
|
|
|
07-30-2008, 01:04 PM
|
#38 (permalink)
|
The almighty Lich...
Join Date: Dec 2007
Posts: 1,185
|
It Does Not Works! Like the knockback function!!!
|
|
|
07-30-2008, 03:42 PM
|
#39 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
__________________
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
|
|
|
07-31-2008, 05:20 PM
|
#40 (permalink)
|
User
Join Date: Jan 2007
Posts: 174
|
Add support for running a specified function when jump is complete?
Ex: Tauren jump slam thingy
-Jumps the Tauren to a target area, smashing all the n00bs to make them fly backwards from him when he lands.
Its also nice to have a pause option and options for playing a units animation. Maybe JumpEx?
Ex: Priestess Tiger hop
-Makes the tiger jump 600 distance towards its angle (plays walk animation while jumping and short time)
You could make it run the function on land by adding a taken string to JumpEx, and then ExecuteFunc( takenstring )ing it when the person lands.
EDIT: After testing, I noticed that you forgot to IssueImmediateOrder( .u, "stop" ) after unpausing them in the ondestroy method
And there isn't random sliding at the end/start >.>
Also, make it so you cant jump 0 distance, to "Protect users from themselves" as Dusk would put it
Last edited by Bobo_The_Kodo; 07-31-2008 at 05:48 PM..
|
|
|
07-31-2008, 06:35 PM
|
#41 (permalink)
|
The almighty Lich...
Join Date: Dec 2007
Posts: 1,185
|
The jump has a bug : your unit can be removed from the game by jumping in the black zone, out of the map...
|
|
|
07-31-2008, 10:27 PM
|
#42 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
Quote:
|
The jump has a bug : your unit can be removed from the game by jumping in the black zone, out of the map...
|
Really? I thought I fixed that.... too bad, gonna check it out later.
Quote:
|
After testing, I noticed that you forgot to IssueImmediateOrder( .u, "stop" ) after unpausing them in the ondestroy method
|
Quote:
|
Also, make it so you cant jump 0 distance, to "Protect users from themselves" as Dusk would put it
|
Sure, thanks for advice.
__________________
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-05-2008, 03:58 AM
|
#43 (permalink)
|
User
Join Date: Aug 2008
Posts: 2
|
Hey, Not sure if im the only one getting this problem. However after it does the jump sequence it just keeps sliding and never unpauses. Heres what I have for the code.
Nvm got it working. However I found a bug, if you jump into ground lower then you it has u floating higher.
Last edited by iNuke; 08-05-2008 at 04:26 AM..
|
|
|
08-05-2008, 08:15 PM
|
#44 (permalink)
|
Editor/Reviewer
Join Date: Jun 2008
Posts: 34
|
What's the variable settings? I'm not that good at jass, I've tried looking at it, and I cant seem to find a place, where you state, if I have to create something in my map, besides a Dummy unit.
What do I need to do to make this work in my map?
Also, I tried copy pasting, this into JC, and made a syntax check, got a whole bunch of errors. Can anyone explain?
|
|
|
08-12-2008, 02:55 PM
|
#45 (permalink)
|
Gold User
Join Date: Aug 2008
Posts: 49
|
Thanks Really Good Idea 4/5 
|
|
|
| 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 |
|
[JASS] vJass
|
Ciebron |
Triggers & Scripts |
3 |
04-25-2008 02:52 AM |
|
[JASS] vJass Question
|
Bubba Ex |
Triggers & Scripts |
19 |
03-04-2008 05:36 PM |
|
[JASS] vJass clarifacation
|
GhostWolf |
Triggers & Scripts |
14 |
02-21-2008 01:27 PM |
|
[JASS] vJASS
|
Ozco |
Triggers & Scripts |
4 |
01-06-2008 07:03 PM |
|
[JASS] vJass, the new generation
|
UnMi |
Triggers & Scripts |
44 |
06-05-2007 09:35 AM |
|  |  |  |  |   |  |
|
All times are GMT. The time now is 08:39 AM.
 |