| 02-15-2008, 09:28 PM | #1 |
I have this trigger that feeds back any single target spell that is cast on a unit and records their current order so that that spell is given to another unit and is issued that same order to get them to cast the same spell. So like if unit 1 polymorphs unit 2.. both the ability and the current orders are recorded to a variable.. then unit 2 is given the ability event spell and is issued the order of unit 1's recorded current order The problem is, there are a few single target spells that seem to have no order associated with them. The one i am looking at in particular is the Wand of Illusion item ability.. I have this ability modified into a regular unit spell. and the trigger records the correct ability but no order id. The order variable on that spell is reporting null. how might i solve this? |
| 02-15-2008, 09:52 PM | #2 |
Simple, add to the OrderID field the string value, and voila |
| 02-15-2008, 10:05 PM | #3 |
You mean in the object properties? where it says "text - Order string - use/turn on" and it shows None? I've looked in the list and dont see illusion in there.. so i tested with banish by setting that value from none to banish.. and it's reporting back to me null still. I tried also setting all 4 of those values to banish and still nothing. Should I try a different one? |
| 02-15-2008, 10:17 PM | #4 | |
Quote:
-- Also , Brash, all abilities have order ids. Please get used not to use order strings and to avoid confusing begin calling things to their names, and to fix your issue, use the order id instead. |
| 02-15-2008, 10:50 PM | #6 | |
Quote:
|
| 02-16-2008, 12:09 AM | #7 |
Edit> I think i got it! Finally. Trigger: ![]() Custom script: set udg_Shell_OrderID = GetUnitCurrentOrder( udg_Shell_CastingU )
![]() Custom script: call IssueTargetOrderById( udg_Shell_DummyU, udg_Shell_OrderID, udg_Shell_CastingU )that seems to target the unit based on the integer of the spell. god that was driving me nuts. thanks guys |
