• 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.

[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