- Joined
- Jul 8, 2017
- Messages
- 17
Hi guys,
Is there a special way of writing out raw codes of custom units when using them for campaign AI scripts in JASS for some commands such as "call SetBuildUnitEx(___) and 'call CampaignAttackerEx(___)?
I've determined that the reason why my (first) script wouldn't work is because I'm either calling the raw ID incorrectly, or that the script itself is not able to associate it with the custom unit, yet it recognises melee unit IDs just fine, which I find odd.
For example, this:
works fine and the Acolyte will build the Crypt, but this (after giving the Acolyte the ability to make the custom unit of the Portal):
does not. I'm hard-pressed as to how I'm supposed to write them out.
Is there a special way of writing out raw codes of custom units when using them for campaign AI scripts in JASS for some commands such as "call SetBuildUnitEx(___) and 'call CampaignAttackerEx(___)?
I've determined that the reason why my (first) script wouldn't work is because I'm either calling the raw ID incorrectly, or that the script itself is not able to associate it with the custom unit, yet it recognises melee unit IDs just fine, which I find odd.
For example, this:
Code:
//Building Order
call SetReplacements(1,2,3)
call SetBuildUnitEx(1,1,1,'unpl')
call SetBuildUnit(5,'uaco')
call SetBuildUnit(1,'ugol')
call SetBuildUnitEx(1,2,3,'uzig')
call SetBuildUnitEx(1,2,3,'usep')
works fine and the Acolyte will build the Crypt, but this (after giving the Acolyte the ability to make the custom unit of the Portal):
Code:
//Building Order
call SetReplacements(1,2,3)
call SetBuildUnitEx(1,1,1,'unpl')
call SetBuildUnit(5,'uaco')
call SetBuildUnit(1,'ugol')
call SetBuildUnitEx(1,2,3,'uzig')
call SetBuildUnitEx(1,2,3,'usep')
call SetBuildUnitEx(1,2,3,'h00K')// <---- Problem here
does not. I'm hard-pressed as to how I'm supposed to write them out.