None taken, but alot of them seem quite obviousI just wanted to clear up the code a bit, actually help. No harm meant.
//* Furthermore, I would like to thank Flare for his
//* eternal pester about me improving the code :p
//* Without him [B][COLOR="Red"]this script would leak badly[/COLOR][/B]
You should use an array struct, but you can do it also with 2D array, for fun
But you forgot the string "leak" by using I2S(H2I), and it requires Table for nothing, because you can do it simply with a struct, instead of using cache.Dude, I'm not gonna change it. Why? Because it doesn't matter. Speed isn't needed.
But you forgot the string "leak" by using I2S(H2I), and it requires Table for nothing, because you can do it simply with a struct, instead of using cache.
Then don't hope it will be approved, at least not on www.wc3campaigns.net, you already use vJass, so use cache when there is absolutely no need is very lame.I can, but I won't. I see no reasons.
And you think Table use some vodoo thing ?What? I never used I2S(H2I)...
In all seriousness, speed is gamecache's only issue,
Many resources use gamecache. Even Vexorian says it's the best when speed is not needed.
Can you two please give it a rest... personally, I see no major issue with gamecache being used here. There is alternatives, but what's done is done, and it's not going to break the game. Anyway, the system is only enabled for 2 minutes of game-time and it's not likely you will do much swapping in that time (I can see about 20 being a max in a 12-player game, taking into account denied swaps as well) and 20 unique I2S (H2I (...)) isn't going to kill you
Also, could be done with global arrays and GetPlayerId, assuming dialog button clicked events return a GetTriggerPlayer (I've never worked with dialogs so I don't know if they do or not)
It's like going to school with a bike even if you can take the bus for free.
Sure you will arrive, but it will take you much time for nothing, unless you are fat
Did I say that it was approved? If I did, it'd be approved, but since I haven't it's not approved just yetSo, Flare, I guess this is approved then?
Which is ? You don't make any changelog.I didn't forget, I didn't forget!
That's an improvement...
A major one...
Updated.
(and, consequently, do you plan to add it if it's not already there)Are you able to exlude some units in an easy way?