• 🏆 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!

2 questions, dark ritual and dark conversion

Status
Not open for further replies.
Level 3
Joined
Oct 4, 2004
Messages
22
1) Dark ritual- How can I make it able to be used on allied units? It can only be used on player-owned units and I'm having trouble getting it to behave differently.

2) Dark conversion- How can I make it so that the "converted" unit is owned by the player who cast it? Currently whenever I try to use it, the converted unit is owned by whatever player it was casted on. Any way to change this?
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Ok... for the first spell, I believe it is set to affect only Undead units. To make it NOT do so, you must make a dummy spell, which kills an unit instantly. So... Base it on something (example... lightning shield), make sure it does 0 damage, lasts 0.01 seconds whatever the spell is and try to work on the spell's animation to look as close as possible to Dark Ritual.

Now, going to triggers you will need to make the following trigger.

Event - An unit starts the effect of an ability
Conditions - Ability being cast equal to Dark Ritual
Actions - Set mana of (Casting Unit) to (Mana of (Casting Unit)+Current Life of (Target Unit of Ability being cast)
- Set life of (Target unit of Ability being cast) to 0

For different levels use ifs. Example: If (Level of (Dark Ritual) for (Casting Unit)) is equal to 1 then do Set Mana of (Casting Unit) to (Mana of (Casting Unit)+Current Life of (Target Unit of Ability being Cast) else do nothing.

Ok, for the second one, the ability is again buggy because Dark Conversion works only on peasants. I think you need to base it on doom and make it kill instantly but i'll try to find another way to make it be as appropriate as possible.
 
Status
Not open for further replies.
Top