• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
Level 5
Joined
Oct 29, 2020
Messages
84
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 70
Joined
Aug 10, 2018
Messages
7,396
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
84
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 70
Joined
Aug 10, 2018
Messages
7,396
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
84
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 70
Joined
Aug 10, 2018
Messages
7,396
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:
Status
Not open for further replies.
Top