|
 |   |  |  |
JASS Functions Approved JASS functions will be located here.
Remember to submit your own resources to the submission forum. |
 |
|
07-21-2008, 10:40 AM
|
#121 (permalink)
|
The almighty Lich...
Join Date: Dec 2007
Posts: 1,185
|
Great! I realy like to use my messenger to talk!
|
|
|
07-28-2008, 09:19 AM
|
#122 (permalink)
|
User
Join Date: Jan 2007
Posts: 174
|
set dat.u = u set dat.u = u
Fix that..
|
|
|
07-28-2008, 10:23 AM
|
#123 (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-30-2008, 01:06 PM
|
#124 (permalink)
|
The almighty Lich...
Join Date: Dec 2007
Posts: 1,185
|
NOW, Silvenon, when will you use the messenger to talk to me? I realy did waht you sayd, even with JASS and it does not works, i copyed it exactly! i modified what i needed... Still does not works... I've stupidly deleted the knockback trigger...
|
|
|
07-31-2008, 04:41 AM
|
#125 (permalink)
|
User
Join Date: Jan 2007
Posts: 174
|
Quote:
|
Originally Posted by Silvenon
if (x < MAX_X and y < MAX_Y and x > MIN_X and y > MIN_Y) and not BoolAr[1] then call SetUnitX(dat.u, x) call SetUnitY(dat.u, y) endif
set dat.d1 = dat.d1 - dat.d2
if dat.d1 <= 0 or (x > MAX_X or y > MAX_Y or x < MIN_X or y < MIN_Y) or BoolAr[1] then set Ar[i] = Ar[Total - 1] set Total = Total - 1
call dat.destroy() endif
|
->
if dat.d1 <= 0 or (x > MAX_X or y > MAX_Y or x < MIN_X or y < MIN_Y) or BoolAr[1] then set Ar[i] = Ar[Total - 1] set Total = Total - 1
call dat.destroy() else call SetUnitX(dat.u, x) call SetUnitY(dat.u, y) endif
More efficient (tho very slightly), and doesn't slide partially into the wall on the last interval, also, won't this go through cliffs?
You could do
if dat.d1 <= 0 or (x > MAX_X or y > MAX_Y or x < MIN_X or y < MIN_Y) or BoolAr[1] or IsTerrainPathable( x, y, PATHING_TYPE_WALKABILITY ) == false then (IsTerrainPathable is bugged and returns the opposite of what it should, thats why I put == false)
Soo, overall, change what i Quoted from yours to:
if dat.d1 <= 0 or (x > MAX_X or y > MAX_Y or x < MIN_X or y < MIN_Y) or BoolAr[1] or IsTerrainPathable( x, y, PATHING_TYPE_WALKABILITY ) == false then set Ar[i] = Ar[Total - 1] set Total = Total - 1
call dat.destroy() else call SetUnitX(dat.u, x) call SetUnitY(dat.u, y) endif
|
|
|
07-31-2008, 10:19 PM
|
#126 (permalink)
|
BBoy Silv
Join Date: Nov 2006
Posts: 866
|
I think it's not the same, since there is an and.
About that pathable terrain thing, I did that in a different way.
__________________
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-31-2008, 11:39 AM
|
#127 (permalink)
|
User
Join Date: Jun 2008
Posts: 10
|
How do i import JASS file as i keeping getting errors saying that there is missing value.
|
|
|
09-03-2008, 02:28 AM
|
#128 (permalink)
|
-Corvette-
Join Date: Aug 2008
Posts: 136
|
Quote:
Originally Posted by lightphoenix2
How do i import JASS file as i keeping getting errors saying that there is missing value.
|
May be because it need some variables
|
|
|
09-03-2008, 03:24 AM
|
#129 (permalink)
|
User
Join Date: Jun 2008
Posts: 10
|
yar , but i dont know how to do it.
|
|
|
09-06-2008, 09:48 AM
|
#130 (permalink)
|
-Corvette-
Join Date: Aug 2008
Posts: 136
|
Quote:
Originally Posted by lightphoenix2
yar , but i dont know how to do it.
|
what do you mean don't know? you don't know how to create variables?
|
|
|
09-06-2008, 09:53 AM
|
#131 (permalink)
|
The almighty Lich...
Join Date: Dec 2007
Posts: 1,185
|
|
|
|
09-19-2008, 02:20 AM
|
#132 (permalink)
|
Respect Aeroblyctos
Join Date: Apr 2008
Posts: 37
|
You all are talking nosense :D !
This sistem is great :) . Easy to understand
|
|
|
10-02-2008, 11:14 PM
|
#133 (permalink)
|
Half-Dragon
Join Date: Mar 2008
Posts: 678
|
Quote:
* unit u = the unit being knockbacked
* real d = the distance the unit is knockbacked to
* real a = the angle (direction of the knockback) in RADIANS
* real w = the duration of the knockback
* real r = the radius of tree destroying, but there's a new trick: if you put a negative number as the radius, the unit will stop knockbacking when it gets in that range of a tree and if you put a positive value, the unit will destroy trees when it gets in that range of a tree (if you don't want any of those, just put 0)
* integer t = type 0 means no effect (both s and p should be ""), type 1 means periodic effect (meaning you should put "" as the attachment point, parameter p), type 2 means a special effect attached on the unit and destroyed when the knockback is finished (this is where you use parameter p)
* string s = the path to the special effect you want to use (periodic), that effect will be destroyed immediatelly (you can put "" if you don't want a special effect)
* string p = used for type 2, it's the attachment point of the effect, "chest" is default (so if you put "", it will be "chest")
|
I can only use (u, d, a, w) if I try to use the others input it says: "Too many arguments"
How can I fix it? Also, how can I make two attached effects instead of one?
Thanks
Edit1: Lolz I found it xD But how can I make it spawns two effects instead of one?
Edit2: Some tips to make it looks like the unit is pushing the floor?
Edit3: The unit still pass trough trees and walls even if I put -1 to -250 in real r.
__________________
Map: Anime Brawl
Terrain: IIIIIIIIII
Triggers: IIIIIIIIII
Heroes: IIIIIIIIII
Spells/Items: IIIIIIIIII
Until Beta: IIIIIIIIII
Last edited by Saishy; 10-02-2008 at 11:36 PM..
|
|
|
10-30-2008, 07:01 AM
|
#134 (permalink)
|
MapMaker:GUI:TryingJass
Join Date: Oct 2008
Posts: 18
|
jass
how to use the jass library??? will I put it in the trigger or somewhere else?? help please, I'm noob in jass....
|
|
|
10-30-2008, 08:08 AM
|
#135 (permalink)
|
The almighty Lich...
Join Date: Dec 2007
Posts: 1,185
|
Check the Tutorials section before asking this questions.
|
|
|
| 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 |
|  |  |  |  |   |  |
|
All times are GMT. The time now is 07:47 AM.
|