• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

complicated bug on unit

Status
Not open for further replies.
Level 5
Joined
Jan 19, 2020
Messages
102
complicated bug on unit


i got a unit neutral enemy who is invulnerable.

he can cast abilities i need that for my RPG.

The trouble is now, if there is a unit in range not hero he unses his abilities random.

If its a hero its working fine.

Any idea, can i take out the unit of the ai so ai doesnt have influence?

or use a function to not cast a ability?
 
You can change the targets allowed in the object editor data for the spells that your RPG-boss uses.

Targets allowed; Enemy, Hero, Vulnerable

You could also base all your boss abilities with channel.
And use triggers to fire them.
 
how i do that with channel?

ty object editor should work.

no didnt work, some abilitys they do even with no target _, and i got a lot of them,

like waterelemental they do it at cd if units are near, it has no target,

i changed target of units and spells.
 
Last edited:
The one highlighted with the blue background is where you can edit the targets allowed field in Object Editor.

Stats - Targets Allowed
 

Attachments

  • ImageB.png
    ImageB.png
    129.8 KB · Views: 49
Ok so if you already have a trigger for the water elemental for casting an ability when units are near you can add conditions for it.

  • x
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • -------- Set your conditions above --------
          • -------- --> Set your actions here <--- --------
        • Else - Actions
 
yes but i have like 50 of these abillitys would take long^^

i got mainly summon spells, but to much to make a trigger for each one
 
Last edited:
  • X
    • Events
      • Unit - A unit comes within 500.00 of Archmage 0001 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • -------- So here we check if the ability cooldown is on --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability Cooldown Remaining of Archmage 0001 <gen> for ability Test Spell ..) Greater than or equal to 0.01
        • Then - Actions
          • Game - Display to (All players) the text: ---Trigger Ended---
          • Skip remaining actions
        • Else - Actions
          • -------- If it's 0.00 then the boss uses his skill --------
          • Unit - Order Archmage 0001 <gen> to Orc Far Seer - Feral Spirit.
          • Game - Display to (All players) the text: ---Trigger Executed...
I added a testmap too, so you can see how you can use the channel ability.

Best of luck to you :)
 

Attachments

Status
Not open for further replies.
Back
Top