• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[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