• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Can someone help me with a custom script?

Status
Not open for further replies.
Level 11
Joined
Jul 12, 2005
Messages
764
They are called the ability's raw codes, and usually begin with an 'A', and are capitalized, as they are integers (hexadecimal numbers).
But to anwser your question, no, there isn't such a function... Units can only be ordered to cast a spell with the ability's command string (like "thunderclap", "thunderbolt", "cripple", etc...)

call IssueImmediateOrder()
call IssueTargetOrder()
call IssuePointOrder()
 
Level 4
Joined
Sep 20, 2005
Messages
72
i think your confusing something. what paskovich said works. As long as the unit, say a dummy caster, has custom spell u want to cast, u can use the base order string of that custom ability be it "thunderclap" or w/e to cast that custom spell.

It doesnt matter that custom ability's order string says "thunderclap". the unit wont cast the ladder wc3 thunderclap as long as it doesnt have that basic wc3 ability. If you add a custom ability with the base ability of thunderclap to the unit and order it, it will fire the custom ability.
(which leads to the reason why u cant have two spells based off of the same ability on a single unit cuz it doesnt know which of the two u r casting)
 
Status
Not open for further replies.
Top