• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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