Thank you for your specific guidance. I've learnt most of them except the following one.Trigger it yourself, it's just Scroll of Regeneration with different targeting and 2 item charges.
The Ritual Dagger (Death Coil) ability should be based on Death Coil with the following changes:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Ritual Dagger (Death Coil)
- Actions
- Set Variable Target = (Target unit of ability being cast)
- Set Variable Point = (Position of (Triggering unit))
- Unit - Create 1 Dummy for (Triggering player) at Point
- Custom script: call RemoveLocation(udg_Point)
- Set Variable Dummy = (Last created unit)
- Unit - Add 0.20 second Expiration Timer to Dummy
- Unit - Add Ritual Dagger (Scroll of Regeneration) to Dummy
- Custom script: call IssueImmediateOrderById(udg_Dummy, 825008)
- Unit - Kill Target
Cast Range: 400
Mana Cost: 0
Cooldown: 20 seconds
Missile Art: None
Missile Speed: 0
Amount Healed/Damaged: 0.00
Targets Allowed: Air, Ground, Player, Non-Hero, Invulnerable, Vulnerable
Ritual Dagger (Scroll of Regeneration) is based on the Scroll of Regeneration ability. Customize this to your liking, I believe it should restore 175 hp over 45 seconds.
what does "825008" stand for?Custom script: call IssueImmediateOrderById(udg_Dummy, 825008)
I've tested the trigger. 825008 isn't the right order ID. 852609 is.A lot of abilities, especially item abilities, are missing order strings and as a result you won't be able to find them in the order actions:
However, every ability has an order id, which can only be referenced in code (jass/lua) or in our case Custom Script.
- Unit - Order (some unit) to Human - Mountain King - Storm Bolt (some unit)
In this case 825008 is the order id for the Scroll of Regeneration ability.
These id's are hidden from the user so you'll need to either google search a list of them or use text messages in-game to figure them out.
This is all explained in great detail here: "Issue Order With no Target" and the scroll of healing
Hello. Can you send me this as a file please?I've tested the trigger. 825008 isn't the right order ID. 852609 is.
And there is a bug when the Ritual Dagger ability is based on Death Coil.
Full hit-point units can't be targeted because of Death Coil.
So I make it based on Death Pact. Then the bug is fixed.
I really appreciate all the useful information you've offered me.
- Ritual Dagger
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Ritual Dagger (item)
- Actions
- Set TempLoc = (Position of (Triggering unit))
- Unit - Create 1 Dummy for (Triggering player) at TempLoc facing Default building facing degrees
- Set Dummy = (Last created unit)
- Unit - Add Ritual Dagger to Dummy
- Custom script: call IssueImmediateOrderById(udg_Dummy, 852609)
- Unit - Add a 0.20 second Generic expiration timer to Dummy
- Custom script: call RemoveLocation(udg_TempLoc)