• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[vJASS] Optimize script again??

Status
Not open for further replies.
Level 10
Joined
May 27, 2009
Messages
495
Help help on my little script again

xD
just working with some animations like dota's shop but i can't understand how to use trackables so i come up with this

JASS:
The code? this thread should be closed

but i guess its kinda messy/not efficient/slow

please help :D library suggestions are accepted or just teach me how to use trackables D:
 
Last edited:
I'm not experienced in vJass yet, so guess you will have to ask those who are, but what I see is that:

- you could combine actions & conditions together instead of splitting them.
- whats the local group g = CreateGroup() in Init function for? :S
- instead of using 2 hashtables, use one and manipulate indexes via: 1/-1 (the second index is the same one, just negative), if it can't be archieved, Table by Bribe could be usefull.
 
Status
Not open for further replies.
Top