• 🏆 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!

[JASS] Custom Script Ability Order Help

Status
Not open for further replies.
Level 2
Joined
Jul 2, 2014
Messages
9
[SOLVED]Custom Script Ability Order Help

Hello guyz i need a little help to finish my project. I thought there is a way to create more than one spell on MUI with only one loop trigger. Only last part has problem. cuz my last created unit does not do any spell order. Can u help me=? ::vw_wtf:

JASS:
call IssueTargetOrderBJ(GetLastCreatedUnit(), "udg_Ability_set_ordername[udg_Ability_setLoopvalue]", udg_Ability_Spesific_target[udg_Ability_setLoopvalue] )


Ability_set_ordername[array]= it is order u know( now it is thunderbolt)
Ability_spesific_target[array]= target unit for loop trigger
 
Last edited:
Level 12
Joined
Feb 22, 2010
Messages
1,115
First of all remove quotes around Ability_set_ordername variable

JASS:
call IssueTargetOrderBJ(GetLastCreatedUnit(), udg_Ability_set_ordername[udg_Ability_setLoopvalue], udg_Ability_Spesific_target[udg_Ability_setLoopvalue] )

After that we should see its working or not.
 
First of all remove quotes around Ability_set_ordername variable

JASS:
call IssueTargetOrderBJ(GetLastCreatedUnit(), udg_Ability_set_ordername[udg_Ability_setLoopvalue], udg_Ability_Spesific_target[udg_Ability_setLoopvalue] )

After that we should see its working or not.

Yep. Drop the quotation marks from the variable name. See how the syntax highlighter made it blue? You need it to highlight black, like the variable next to it.
 
Level 2
Joined
Jul 2, 2014
Messages
9
oh sorry i dont know how to import whole trigger
set.JPG
loop.JPG
 
Level 2
Joined
Jul 2, 2014
Messages
9
thx im new on workshop :)
I used to use Hiveworkshop only for downloading

JASS:
call IssueTargetOrderBJ(GetLastCreatedUnit(), udg_Ability_set_ordername[udg_Ability_setLoopvalue], udg_Ability_Spesific_target[udg_Ability_setLoopvalue])

FIXED- This one is working
 
Last edited by a moderator:
Status
Not open for further replies.
Top