| 09-14-2006, 07:25 PM | #1 |
Having difficulties wit two things> 1 - Wand of Illusion It has no order string. Therefore I need to use lame methods of - Creating a dummy item and making a dummy unit use it. - Becomes difficult adding levels to it. How can I make a dummy unit CAST wand of illusion ABILITY. 2 - Moving Illusions How can I detect when an illusion is made? to do someting with it. For example. Like in RisingDusks Illusion spell, moving "last created" illusions into a line Any help would be greatly appreciated thx Fulla - |
| 09-14-2006, 07:29 PM | #2 | ||
Quote:
Order ids. Quote:
They trigger the 'unit spawns a summoned unit' event. |
| 09-14-2006, 07:41 PM | #3 | ||
Quote:
Wand of Illusion ability has no order ID. Quote:
Ill look into this one |
| 09-14-2006, 10:09 PM | #5 |
mm I tried that, came up when I saved "Expected a function name". |
| 09-14-2006, 10:16 PM | #6 |
You do have that function added aswell? |
| 09-14-2006, 10:20 PM | #7 |
yes The variable Then the function. Function line has the bug |
| 09-14-2006, 11:13 PM | #8 |
Look at Domino Theory. If you're capable of reading the code, then you'll find the Order ID of the wand of illusion ability. It's all there, as well as a little tutorial on how to use them. Extracted from the code, I felt necessary to note this -- JASS:call IssueTargetOrderById(d, 852274, u) |
| 09-14-2006, 11:18 PM | #9 |
Not directly related, but Fulla if you are ever in doubt of an orderId, you can always just rig up a display to display the orderid when you cast the spell. Then just cast the ability and see what pops out. |
| 09-14-2006, 11:45 PM | #10 | |
Quote:
K been looking over the code. Unsure wat d + u =? JASS:local unit d = GetTriggeringUnit() local unit u = GetLastCreatedUnit() call IssueTargetOrderById(d, 852274, u) Am I on the right lines? Id make a dummy unit obviously. |
| 09-15-2006, 12:36 AM | #11 |
other way around :) IssueTargetOrderById(a, b, c) Issue a to target c using orderid b |
| 09-15-2006, 10:42 AM | #12 |
Trigger: Replacement
![]() Actions
![]() ![]() Custom script: local unit b = GetTriggerUnit()
![]() ![]() Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing (270.0) degrees
![]() ![]() Custom script: local unit a = GetLastCreatedUnit()
![]() ![]() Unit - Add Illusion [Dummy] to (Last created unit)
![]() ![]() Unit - Set level of Illusion [Dummy] for (Last created unit) to (Level of Replacement for (Casting unit))
![]() ![]() Custom script: call IssueTargetOrderById(a, 852274, b)
![]() ![]() Unit - Add a 2.00 second Generic expiration timer to (Last created unit)Gah it comes up with errors? I cant see whats wrong :( |
| 09-15-2006, 11:12 AM | #13 |
Me neither. Check your Object Editor data? |
| 09-15-2006, 11:41 AM | #14 |
JASS:Custom script: local unit b = GetTriggerUnit() Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing (270.0) degrees Custom script: local unit a = GetLastCreatedUnit() You're declaring a local after a call. That's an illegal action -- It would look like -- JASS:local unit b set b = ... local unit a |
| 09-21-2006, 07:35 PM | #15 |
Yeah, and don't forget to set them = null in the end :) |
