(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 07-21-2008, 10:40 AM   #121 (permalink)
 
vercas's Avatar

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

vercas has little to show at this moment (56)


Great! I realy like to use my messenger to talk!
__________________
My dragons!

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

(\__/)
(='.'=)
Spread the Emoticat!
WWWWWWWWWWWWWWWWWWWW
vercas is offline   Reply With Quote
Old 07-28-2008, 09:19 AM   #122 (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)


        set dat.u = u
        set dat.u = u


Fix that..
Bobo_The_Kodo is offline   Reply With Quote
Old 07-28-2008, 10:23 AM   #123 (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)


Done, thanks.
__________________
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-30-2008, 01:06 PM   #124 (permalink)
 
vercas's Avatar

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

vercas has little to show at this moment (56)


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

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

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


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
Bobo_The_Kodo is offline   Reply With Quote
Old 07-31-2008, 10:19 PM   #126 (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)


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
Silvenon is offline   Reply With Quote
Old 08-31-2008, 11:39 AM   #127 (permalink)

User
 
Join Date: Jun 2008
Posts: 10

lightphoenix2 is an unknown quantity at this point (0)


How do i import JASS file as i keeping getting errors saying that there is missing value.
lightphoenix2 is offline   Reply With Quote
Old 09-03-2008, 02:28 AM   #128 (permalink)
 
NoobinJass's Avatar

-Corvette-
 
Join Date: Aug 2008
Posts: 136

NoobinJass has little to show at this moment (15)NoobinJass has little to show at this moment (15)


Quote:
Originally Posted by lightphoenix2 View Post
How do i import JASS file as i keeping getting errors saying that there is missing value.
May be because it need some variables
NoobinJass is offline   Reply With Quote
Old 09-03-2008, 03:24 AM   #129 (permalink)

User
 
Join Date: Jun 2008
Posts: 10

lightphoenix2 is an unknown quantity at this point (0)


yar , but i dont know how to do it.
lightphoenix2 is offline   Reply With Quote
Old 09-06-2008, 09:48 AM   #130 (permalink)
 
NoobinJass's Avatar

-Corvette-
 
Join Date: Aug 2008
Posts: 136

NoobinJass has little to show at this moment (15)NoobinJass has little to show at this moment (15)


Quote:
Originally Posted by lightphoenix2 View Post
yar , but i dont know how to do it.
what do you mean don't know? you don't know how to create variables?
NoobinJass is offline   Reply With Quote
Old 09-06-2008, 09:53 AM   #131 (permalink)
 
vercas's Avatar

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

vercas has little to show at this moment (56)


Lol :))))))
__________________
My dragons!

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

(\__/)
(='.'=)
Spread the Emoticat!
WWWWWWWWWWWWWWWWWWWW
vercas is offline   Reply With Quote
Old 09-19-2008, 02:20 AM   #132 (permalink)
Registered User DPL
 
DPL's Avatar

Respect Aeroblyctos
 
Join Date: Apr 2008
Posts: 37

DPL has little to show at this moment (4)


You all are talking nosense :D !
This sistem is great :) . Easy to understand
DPL is offline   Reply With Quote
Old 10-02-2008, 11:14 PM   #133 (permalink)
 
Saishy's Avatar

Half-Dragon
 
Join Date: Mar 2008
Posts: 678

Saishy has little to show at this moment (27)Saishy has little to show at this moment (27)Saishy has little to show at this moment (27)


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..
Saishy is offline   Reply With Quote
Old 10-30-2008, 07:01 AM   #134 (permalink)
 
Adiktuz's Avatar

MapMaker:GUI:TryingJass
 
Join Date: Oct 2008
Posts: 18

Adiktuz is an unknown quantity at this point (0)


jass

how to use the jass library??? will I put it in the trigger or somewhere else?? help please, I'm noob in jass....
Adiktuz is offline   Reply With Quote
Old 10-30-2008, 08:08 AM   #135 (permalink)
 
vercas's Avatar

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

vercas has little to show at this moment (56)


Check the Tutorials section before asking this questions.
__________________
My dragons!

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

(\__/)
(='.'=)
Spread the Emoticat!
WWWWWWWWWWWWWWWWWWWW
vercas 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:47 AM.