• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Spell/trigger] its easy i think...

Status
Not open for further replies.
Level 4
Joined
Oct 28, 2007
Messages
112
well i need a trigger to move a projectile(a unit) because i wanted it bigger so can someone make a trigger like this : create (unit) at position from casting unit facing targeted unit of abillity being cast then move (last created unit) towards targeted unit of abillity being cast then wait till (unit) clashes with targeted unit of abillity being cast then remove (unit) from game and all this in GUI .. well i want it like this but i cant make the (wait till unit clashes etc.) so could some one make it i will give credits here is a trailer of my project.

Ps:please no Jass ..
 
well heres the one you wanted(and a black box spell i saw in your trailer(for fun and i already made one it depletes enemys mana but you can change that)(model for black box is in attachment)
  • Black Box
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Black box
    • Actions
      • Set Caster = (Casting unit)
      • Set Target = (Target unit of ability being cast)
      • Set Point1 = (Position of (Casting unit))
      • Set Point2 = (Position of (Target unit of ability being cast))
      • Animation - Play Caster's spell animation
      • Unit - Create 1 for (Owner of Caster) at (Position of Target) facing (Position of Target)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
      • Environment - Create a 3.00 second random deformation at Point2 with radius 512.00, using depths between -100.00 and 32.00, updating every 0.10 seconds
      • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
      • Set Caster = No unit
      • Set Target = No unit
      • Custom script: call RemoveLocation(udg_Point1)
      • Custom script: call RemoveLocation(udg_Point2)
thats that back box one
  • Black Box
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to (your spell here)
    • Actions
      • Set Caster = (Casting unit)
      • Set Target = (Target unit of ability being cast)
      • Set Point1 = (Position of (Casting unit))
      • Set Point2 = (Position of (Target unit of ability being cast))
      • Animation - Play Caster's spell animation
      • Unit - Create 1(your unit here) for (Owner of Caster) at (Position of Target) facing (Position of Target)
      • Set Projectile = (Last created unit)
      • Unit - Move Projectile instantly to Point2
      • Unit - Remove (Projectile) from game
      • Set Projectile = No unit
      • Set Caster = No unit
      • Set Target = No unit
      • Custom script: call RemoveLocation(udg_Point1)
      • Custom script: call RemoveLocation(udg_Point2)
that one is for your spell


OK you need 5variables -Point1(point), Point2(point), Caster(unit), Target(unit), Projectile(unit)
Give credit if you use please and ty
P.S-IF YOU WANT TO MAKE A SPECIAL EFFECT USE SPECIAL EFFECT(W.E) AT THE CHEST OF TARGET
 

Attachments

  • BlackBox.mdx
    4.7 KB · Views: 48
Last edited:
Level 12
Joined
Apr 26, 2008
Messages
830
well heres the one you wanted(and a black box spell i saw in your trailer(for fun and i already made one it depletes enemys mana but you can change that)(model for black box is in attachment)
  • Black Box
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Black box
    • Actions
      • Set Caster = (Casting unit)
      • Set Target = (Target unit of ability being cast)
      • Set Point1 = (Position of (Casting unit))
      • Set Point2 = (Position of (Target unit of ability being cast))
      • Animation - Play Caster's spell animation
      • Unit - Create 1 for (Owner of Caster) at (Position of Target) facing (Position of Target)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
      • Environment - Create a 3.00 second random deformation at Point2 with radius 512.00, using depths between -100.00 and 32.00, updating every 0.10 seconds
      • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
      • Set Caster = No unit
      • Set Target = No unit
      • Custom script: call RemoveLocation(udg_Point1)
      • Custom script: call RemoveLocation(udg_Point2)
thats that back box one
  • Black Box
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to (your spell here)
    • Actions
      • Set Caster = (Casting unit)
      • Set Target = (Target unit of ability being cast)
      • Set Point1 = (Position of (Casting unit))
      • Set Point2 = (Position of (Target unit of ability being cast))
      • Animation - Play Caster's spell animation
      • Unit - Create 1(your unit here) for (Owner of Caster) at (Position of Target) facing (Position of Target)
      • Set Projectile = (Last created unit)
      • Unit - Move Projectile instantly to Point2
      • Unit - Remove (Projectile) from game
      • Set Projectile = No unit
      • Set Caster = No unit
      • Set Target = No unit
      • Custom script: call RemoveLocation(udg_Point1)
      • Custom script: call RemoveLocation(udg_Point2)
that one is for your spell


OK you need 5variables -Point1(point), Point2(point), Caster(unit), Target(unit), Projectile(unit)
Give credit if you use please and ty
P.S-IF YOU WANT TO MAKE A SPECIAL EFFECT USE SPECIAL EFFECT(W.E) AT THE CHEST OF TARGET

if you make the prjectile move instantly to target unit it wouldnt be a projectile anymore i think he wants that the projectile move at high speed (1300) or something like this...
 
Status
Not open for further replies.
Top