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

Reincarnation + Damage

Status
Not open for further replies.
Level 13
Joined
Mar 23, 2008
Messages
1,214
Uuuh. hard one. Maybe you could just make a trigger, like this.

Event: A unit dies.
Condition: Dying unit is equal to (the unit which shall explode (gotta be a unit type)).
Action: 1. Create 1 dummy unit blahblah.
2. Give the dummy unit an auto cast spell, which will cause a spell similar to the bat riders suicide thingy, and just make it damage ground.



EDIT: Maybe Revolves is better. And then just make a special effect at the position.
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
EVENT - Unit Dies
CONDITION - Unit has YOURITEM (if thats possible, i think its possible)
ACTION - Create One Xplode Dummy Position of "dying unit"
ACTION - Order Last created unit to use ability "Explode"

Create a Dummy unit, no shadow, no pathing, locust, no model
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
Maybe this will help,
  • Events
    • A unit dies
  • Conditions
    • YOURCONDITIONS
  • Actions
    • Hero - Revive hero instantly
    • If then else Multiple actions
      • If
        • Has buff Ankh
      • Then
        • Kill Unit
        • Unit - Create dummy unit
        • EDIT: Order last created unit to cast Explode
      • Else
        • Kill Unit
 
Level 5
Joined
Nov 3, 2007
Messages
113
still dont work, this is what i got now

lfhelp.jpg


so all i need is a good event now. cause the spell is reaincarntion the map dont see the unit as''dieying''
 
This is out of space. :S
You can't a) order the dying unit to deal damage and b) know the level of its ability, since it is considered dead and untargetable.

You can do this instead:

  • Trigger1
  • Events
    • Time - Every 1.00 second of game-time
  • Conditions
  • Actions
    • Set Temp = (Units in (Playable Map Area) matching ((Unit-type) of (Matching unit) Equal to (Your hero type) and ((Level of Greymane's Trick (Cairne) for (Matching unit) Equal to 1)
    • Unit Group - Pick up every unit in Temp and do (Actions)
      • Loop - Actions
        • Unit - Add (Picked unit) to HeroGroup
    • Custom script: call DestroyGroup (udg_Temp)
  • Trigger2
  • Events
    • Unit - A unit dies
  • Conditions
    • ((Dying unit) is in HeroGroup) Equal to True
  • Actions
    • Hero - Revive (Dying unit)
    • Set Point = (Position of (Dying unit))
    • Unit - Create 1 dummy for (Owner of (Dying unit)) at Point facing default building degrees
    • Unit - Order (Last created unit) to Neutral - Activate Kaboom!
    • Custom script: call RemoveLocation (udg_Point)
Set damage of Kaboom in the Object Editor to 400.
Tip: Use custom reincarnation, just base off your custom spell on a passive one, like "Magic Sentry" with value to "None" and have a trigger:

  • Trigger3
  • Events
    • Unit - A unit learns a skill
  • Conditions
  • Actions
    • Trigger - Turn on (Trigger2 <gen>)
 
Status
Not open for further replies.
Top