![]() |
#1 |
Evil Overlord
Join Date: Jan 2006
Posts: 1,416
![]() ![]() ![]() |
![]() 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 - |
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#2 | ||
Nonchalant
Respected User
|
![]() Quote:
Order ids. Quote:
They trigger the 'unit spawns a summoned unit' event. |
||
![]() |
![]() |
![]() |
#3 | ||
Evil Overlord
Join Date: Jan 2006
Posts: 1,416
![]() ![]() ![]() |
![]() Quote:
Wand of Illusion ability has no order ID. Quote:
Ill look into this one Last edited by Fulla : 09-14-2006 at 08:41 PM. |
||
![]() |
![]() |
![]() |
#4 | |
Free Software Terrorist
Technical Director
|
![]() Quote:
Trigger: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
#5 |
Evil Overlord
Join Date: Jan 2006
Posts: 1,416
![]() ![]() ![]() |
![]() mm I tried that, came up when I saved
__________________"Expected a function name". |
![]() |
![]() |
![]() |
#6 |
User
Join Date: Jul 2004
Posts: 526
![]() ![]() |
![]() You do have that function added aswell?
__________________ |
![]() |
![]() |
![]() |
#7 |
Evil Overlord
Join Date: Jan 2006
Posts: 1,416
![]() ![]() ![]() |
![]() yes
__________________The variable Then the function. Function line has the bug |
![]() |
![]() |
![]() |
#8 |
Obscurity, the Art
|
![]() 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 -- ![]() call IssueTargetOrderById(d, 852274, u) Last edited by Rising_Dusk : 09-15-2006 at 12:13 AM. |
![]() |
![]() |
![]() |
#9 |
Oh for the sake of fudge
Respected User
|
![]() 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.
__________________ |
![]() |
![]() |
![]() |
#10 | |
Evil Overlord
Join Date: Jan 2006
Posts: 1,416
![]() ![]() ![]() |
![]() Quote:
K been looking over the code. Unsure wat d + u =? ![]() 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. |
|
![]() |
![]() |
![]() |
#11 |
User
|
![]() other way around :)
__________________IssueTargetOrderById(a, b, c) Issue a to target c using orderid b |
![]() |
![]() |
![]() |
#12 |
Evil Overlord
Join Date: Jan 2006
Posts: 1,416
![]() ![]() ![]() |
![]() Trigger: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Gah it comes up with errors? I cant see whats wrong :( Last edited by Fulla : 09-15-2006 at 11:43 AM. |
![]() |
![]() |
![]() |
#13 |
User
Join Date: Jan 2006
Posts: 7
![]() |
![]() Me neither. Check your Object Editor data?
|
![]() |
![]() |
![]() |
#14 |
Obscurity, the Art
|
![]() ![]() 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 -- ![]() local unit b set b = ... local unit a |
![]() |
![]() |
![]() |
#15 |
User
|
![]() Yeah, and don't forget to set them = null in the end :)
__________________ |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|