Moderator
M
Moderator
12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.
14:40, 19th Aug 2011
Bribe:
You code can be improved:
You use arrays like DeathPos for just two indices, should be two
variables instead. Same with the TalentPosHashtables array which
could be three variables. This cuts on array space which is obviously
important for readability, map file size and memory usage in-game.
Yes I know you use a loop for the hashtables that's what makes JASS
so good because you can use functions for this instead of copping out
for an array. If you don't want JASS there are workarounds anyway
but should not use an array.
I have no idea how to use this the documentation does not explain
what talents are nor does it explain how to customize the script. For
example why do you do "Set X = 35" in the main trigger it doesn't
have any exclusiveness. Stuff like this needs way better comments
and variable names.
IcemanBo: Too long as NeedsFix. Rejected.
Maker, Talent System v1.7, 19th Oct 2011
By default you're creating 18 hashtables, which is unacceptable.
One can "only" have 255 hashtables in a map, and if every system used that many problems would occur.
Try to use only one hashtable.
I also spotted some leaks in Talent Hover trigger.
Improve the test map, it doesn't showcase the system enough.
14:40, 19th Aug 2011
Bribe:
You code can be improved:
You use arrays like DeathPos for just two indices, should be two
variables instead. Same with the TalentPosHashtables array which
could be three variables. This cuts on array space which is obviously
important for readability, map file size and memory usage in-game.
Yes I know you use a loop for the hashtables that's what makes JASS
so good because you can use functions for this instead of copping out
for an array. If you don't want JASS there are workarounds anyway
but should not use an array.
I have no idea how to use this the documentation does not explain
what talents are nor does it explain how to customize the script. For
example why do you do "Set X = 35" in the main trigger it doesn't
have any exclusiveness. Stuff like this needs way better comments
and variable names.