- Joined
- May 16, 2020
- Messages
- 660
Hi guys,
I'm using the spell "Rain of Chaos" within a trigger. This ability doesn't have an Order String by default.
Apparently such abilities have a problem with issuing an order via trigger, because regardless of what Order String you add, the unit is going to ignore it.
[Trigger] - Changing "Order String - Use/Turn on" that is "None" by default
However, according to this thread it should be possible to force a unit to use the spell with IssueImmediateOrderById
I found the order ID of the spell by using Custom script: call BJDebugMsg(I2S(GetIssuedOrderId()))
The Order ID is 852237. I then tried to integrate this into the spell, but it doesn't work. The trigger still doesn't cause the last created unit to use the ability...
Can anyone help me please?
I'm using the spell "Rain of Chaos" within a trigger. This ability doesn't have an Order String by default.
Apparently such abilities have a problem with issuing an order via trigger, because regardless of what Order String you add, the unit is going to ignore it.
[Trigger] - Changing "Order String - Use/Turn on" that is "None" by default
However, according to this thread it should be possible to force a unit to use the spell with IssueImmediateOrderById
I found the order ID of the spell by using Custom script: call BJDebugMsg(I2S(GetIssuedOrderId()))
The Order ID is 852237. I then tried to integrate this into the spell, but it doesn't work. The trigger still doesn't cause the last created unit to use the ability...
-
Mortal Strike Active
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Mortal Strike
-
-
Actions
-
Unit - Create 1 Universal Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
-
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Mortal Strike (Summon) to (Last created unit)
-
Custom script: call IssueImmediateOrderById ( GetLastCreatedUnit() , 852237)
-
Unit - Kill (Triggering unit)
-
-
Can anyone help me please?