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

Best Boss? (how to make him cast spells)

Status
Not open for further replies.
Level 2
Joined
May 21, 2011
Messages
10
im wondering how do u make a boss cast a custom spell?

and i realy dont get the key to turn on the spell thing

i realy need a test map just a unit(boss) cast Custom spells
 
Unit - Issue Order.

Exemple :
  • Titan Impale
    • Events
      • Time - Every 9.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between (Position of Titan) and (Position of Titan_Attacker)) Subordinate or Equal In 1000.00
        • Then - Actions
          • Unit - Order Titan to Crypt Lord - Impale Titan_Attacker
        • Else - Actions
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
It depends what spell you based your custom spell off. If you used Carrion Swarm, you would do something like this:

  • Trigger
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Set point = (Position of [your unit])
      • Unit - Order [your boss] to Undead Dreadlord - Carrion Swarm point
      • Custom script: call RemoveLocation(udg_point)
Notes:
- [your unit] is the unit that the boss must target with his spell.
- [boss unit] is your boss.
- This trigger issues the order every 5 seconds, you can change it.
- If the cooldown of the spell is greater than 5 seconds, it will only cast when the cooldown is finished.

EDIT: @Vladadamm:
Your trigger leaks locations.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
I have made a test map for you to check it out

Explanation:
Abilities in this map: Death Calls (Death Coil) , Tremor (Thunder Clap) , Energy Release (Wind Walk) , Tornado Spirit (Serpent Ward)

Each ability has its own default base ability, let's take Tornado Spirit as example (it uses Serpent Ward as base ability)

Which will be triggered by this action:

  • Unit - Order *Boss* to !Orc Shadow Hunter - Serpent Ward! Points[2]
The words that I put "!", is the action that is important in executing this spell
This is because it uses Serpent Ward as base ability, therefore if you want to let the boss to cast the custom spell, you have to refer to its original root base ability, which is the Serpent Ward

Same goes to this action:

  • Unit - Order *Boss* to !Undead Death Knight - Death Coil! (Picked unit)
Death Calls uses Death Coil as its base ability, so if you want to cast the custom spell, you have to refer to Undead Death Knight - Death Coil action to let the custom spell be triggered.

Spells have 3 basic target-method:
1. Target Unit (Death Calls)
2. Target Point (Tornado Spirit)
3. Instant (Energy Release and Tremor)

This is the actions in GUI:

Target Unit
Unit - Issue Order Targeting A Unit

Target Point
Unit Issue Order Targeting A Point

Instant
Unit - Issue Order With No Target
 

Attachments

  • Simple Boss Cast Spell System.w3x
    15 KB · Views: 202
Status
Not open for further replies.
Top