HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[JASS] xxxxxxxxxSwapped ?

05-23-2006, 08:30 AM#1
Sharingan
Er...just another simple question:
Where is the difference between functions like
GetUnitAbilityLevel
and
GetUnitAbilityLevelSwapped ?
05-23-2006, 08:40 AM#2
blu_da_noob
There isn't really one. The latter is just used by the GUI to put the arguements of the function in an order that is more 'logical' for the GUI 'sentence structure'.
05-23-2006, 02:02 PM#3
emjlr3
swapped is a bj, which jsut calls getunit ability leve, which is a native
05-23-2006, 02:25 PM#4
Vexorian
When I read JASS code and I find usage of GetUnitAbilityLevelSwapped it screams to me : "I don't know what am I doing" or "I converted GUI to Custom Script"
05-23-2006, 02:39 PM#5
Chuckle_Brother
Converted GUI is secksy. I wish I was good enough to know how to use the convert to jass button.

But anyway, yeah, basically an extra useless BJ call.
05-23-2006, 03:12 PM#6
Rising_Dusk
Is that really Blizzard's excuse?
"It makes more sense for the sentence structure of GUI"

That seems awfully retarded.
You'd imagine the people who did this had to make it this crappy on purpose; what was going through their skulls? -_-
05-23-2006, 03:16 PM#7
Chuckle_Brother
It does make more sense for them likely. And dumping on them isn't necessary.
05-23-2006, 03:23 PM#8
Rising_Dusk
Well really though, why didn't they just adjust the native to their sentence structure?
I feel like they made the GUI inefficient almost as a taunt to mapmakers to get out there and use jass (Not necessarily a bad thing). I mean, what good is it to make a subpar system only to hide a clearly more efficient one?
05-23-2006, 06:46 PM#9
blu_da_noob
I think the way the GUI works, is that the arguements are put into the function in the order they appear in the 'sentence'. This was probably much easier to make than a system where you linked a certain variable input to a certain arguement. Some things would look weird in GUI if they didn't swap them with BJ's (eg. Take unit and add ability to it.)
05-23-2006, 07:49 PM#10
Rising_Dusk
That's a good point.
I suppose it makes sense.

Still, sometimes some of the BJ functions just make me wonder. :P
05-23-2006, 10:43 PM#11
Sharingan
BJ means...?...
05-23-2006, 11:35 PM#12
Rising_Dusk
blizzard.j

BJ functions are from that .j