• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] How to add Ritual Dagger to a version before 1.31?

Level 5
Joined
Oct 29, 2020
Messages
82
Ritual Dagger was added in patch 1.31.
I wanna add it to version 1.30.4.
How to do this? Your help would be greatly appreciated.
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,565
You can trigger it yourself, it's just Scroll of Regeneration with different targeting and 2 item charges.
  • 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
Edit: The order id is actually 852609 and Death Pact works better, as noted by fanofdiy.

The Ritual Dagger (Death Coil) ability should be based on Death Coil with the following changes:

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.
 
Last edited:
Level 5
Joined
Oct 29, 2020
Messages
82
Trigger it yourself, it's just Scroll of Regeneration with different targeting and 2 item charges.
  • 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
The Ritual Dagger (Death Coil) ability should be based on Death Coil with the following changes:

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.
Thank you for your specific guidance. I've learnt most of them except the following one.
Custom script: call IssueImmediateOrderById(udg_Dummy, 825008)
what does "825008" stand for?
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,565
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:
  • Unit - Order (some unit) to Human - Mountain King - Storm Bolt (some unit)
However, every ability has an order id, which can only be referenced in code (jass/lua) or in our case Custom Script.

In this case 825008 (edit: 852609) 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
 
Last edited:
Level 5
Joined
Oct 29, 2020
Messages
82
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:
  • Unit - Order (some unit) to Human - Mountain King - Storm Bolt (some unit)
However, every ability has an order id, which can only be referenced in code (jass/lua) or in our case Custom Script.

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
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)
 
Last edited:
Level 2
Joined
Jun 11, 2023
Messages
9
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)
Hello. Can you send me this as a file please?
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,565
Abilities:
Ritual Dagger (item) is based on Death Pact.
Ritual Dagger (the one added to Dummy) is based on Scroll of Regeneration.

Variables:
TempLoc is a Point variable.
Dummy is a Unit variable.

Units:
The Dummy unit should be based on the Crypt Lord's Locust with the following changes:
Movement Type = None, Speed Base = 0, Attacks Enabled = None, Model = None, Shadow = None.

The Event is a Generic Unit Event.
The Condition is an Ability Comparison.
You can use Search For Text to find all of the Actions but as you can see most of them are under the Unit category. Then you have Variables and Custom Script which you can easily find with Search For Text. Everything needs to be named exactly the same and the Custom Script needs to be identical to what you see here so I recommend copying and pasting our text.

All of these functions are categorized in alphabetical order. It shouldn't take you more than 15 minutes to get it all working as long as you follow the instructions and pay attention to the categories of things so that you can find them easily. Search For Text helps a lot.
 
Last edited:
Top