(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 06-17-2008, 10:00 PM   #31 (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)


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
Silvenon is offline   Reply With Quote
Old 06-18-2008, 01:52 PM   #32 (permalink)
 
waaaks!'s Avatar

RotG v1.34 R.I.P
 
Join Date: Dec 2006
Posts: 81

waaaks! has little to show at this moment (1)


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
__________________
waaaks! is offline   Reply With Quote
Old 06-18-2008, 03:38 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 

Quote:
what do u mean by +es?
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.
PurplePoot is offline   Reply With Quote
Old 06-19-2008, 09:12 PM   #34 (permalink)
Model Moderator
 
BlinkBoy's Avatar

User
 
Join Date: Nov 2004
Posts: 760

BlinkBoy is a jewel in the rough (199)BlinkBoy is a jewel in the rough (199)


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
endfunction
function 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 symbols
endfunction
//thus it simplifies to
function 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
BlinkBoy is offline   Reply With Quote
Old 07-19-2008, 09:34 PM   #35 (permalink)
 
vercas's Avatar

The almighty Lich...
 
Join Date: Dec 2007
Posts: 1,185

vercas has little to show at this moment (56)


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 :(
__________________
My dragons!

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

(\__/)
(='.'=)
Spread the Emoticat!
WWWWWWWWWWWWWWWWWWWW
vercas is offline   Reply With Quote
Old 07-30-2008, 05:11 AM   #36 (permalink)
 
waaaks!'s Avatar

RotG v1.34 R.I.P
 
Join Date: Dec 2006
Posts: 81

waaaks! has little to show at this moment (1)


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
__________________
waaaks! is offline   Reply With Quote
Old 07-30-2008, 01:02 PM   #37 (permalink)
 
vercas's Avatar

The almighty Lich...
 
Join Date: Dec 2007
Posts: 1,185

vercas has little to show at this moment (56)


Thank you, now i'll see fi that works!
__________________
My dragons!

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

(\__/)
(='.'=)
Spread the Emoticat!
WWWWWWWWWWWWWWWWWWWW
vercas is offline   Reply With Quote
Old 07-30-2008, 01:04 PM   #38 (permalink)
 
vercas's Avatar

The almighty Lich...
 
Join Date: Dec 2007
Posts: 1,185

vercas has little to show at this moment (56)


It Does Not Works! Like the knockback function!!!
__________________
My dragons!

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

(\__/)
(='.'=)
Spread the Emoticat!
WWWWWWWWWWWWWWWWWWWW
vercas is offline   Reply With Quote
Old 07-30-2008, 03:42 PM   #39 (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)


__________________
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 07-31-2008, 05:20 PM   #40 (permalink)
 
Bobo_The_Kodo's Avatar

User
 
Join Date: Jan 2007
Posts: 174

Bobo_The_Kodo has little to show at this moment (44)Bobo_The_Kodo has little to show at this moment (44)Bobo_The_Kodo has little to show at this moment (44)Bobo_The_Kodo has little to show at this moment (44)Bobo_The_Kodo has little to show at this moment (44)


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..
Bobo_The_Kodo is offline   Reply With Quote
Old 07-31-2008, 06:35 PM   #41 (permalink)
 
vercas's Avatar

The almighty Lich...
 
Join Date: Dec 2007
Posts: 1,185

vercas has little to show at this moment (56)


The jump has a bug : your unit can be removed from the game by jumping in the black zone, out of the map...
__________________
My dragons!

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

(\__/)
(='.'=)
Spread the Emoticat!
WWWWWWWWWWWWWWWWWWWW
vercas is offline   Reply With Quote
Old 07-31-2008, 10:27 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)


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
Silvenon is offline   Reply With Quote
Old 08-05-2008, 03:58 AM   #43 (permalink)

User
 
Join Date: Aug 2008
Posts: 2

iNuke is an unknown quantity at this point (0)


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..
iNuke is offline   Reply With Quote
Old 08-05-2008, 08:15 PM   #44 (permalink)
 
Foopad's Avatar

Editor/Reviewer
 
Join Date: Jun 2008
Posts: 34

Foopad has little to show at this moment (1)


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?
Foopad is offline   Reply With Quote
Old 08-12-2008, 02:55 PM   #45 (permalink)
 
XzobieX's Avatar

Gold User
 
Join Date: Aug 2008
Posts: 49

XzobieX is an unknown quantity at this point (0)


Thanks Really Good Idea 4/5
XzobieX 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
[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.