• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] Question about vJass-ing

Not open for further replies.
hello, I am trying to get in use a tutorial for hero AI, I use NewGen, and what I change in it is the IDs of spells. There is a line,for example

set LearnsetInfo[9]['Hsjs'] = 'A009:AHtb'

It displays an error that the sign ":" is not recognizied, which means the ID of the spell is not recognized. I have custom spells and all their IDs are with A00X:xxxx. Why vJass do not recognize the custom spell ID and what can I do about it?
Level 14
Jun 27, 2008
Just use 'A009' instead of 'A009:AHtb'.

The raw id of a unit (or object in general) always consists of 4 characters (at least in its base 256 representation). The :AHtb means that its an object based on object 'AHtb'.
Not open for further replies.