• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

COmputer Ability

Status
Not open for further replies.
Triggers!

For example a healing ability:
  • Holy Light
    • Events
      • Unit - Life of (Unit owned by (Player 12 (Brown))) less then or equal to 150
    • Conditions
    • Actions
      • Unit - Order (triggering unit) to cast Paladin - Holy Light on (triggering unit)
I don't have WE available, so the trigger isn't exact, but it's what you could do.
 
Ok, but when u say "Unit - Order triggering unit to cast Paladin - holy light on triggering unit" shows that Paladin will cast his ability on a Friendly unit(brwon) above 150 life? But im looking for unit that can cast on yourself and on a enemy.
-In my map a made a Generator and i want to the generator use his ability a kind of "mana shield" randomly, it means He can use it with 100hp or 9999hp(random life/he choose)
 
Just add him as an player, lock his options in the force options.
He will cast all kind of spells then(not just Holy Light) cause i think it triggers some AI functions with his units then. Worked for me so it should also with you.

Ya ill do it later and ill give you the feedback =)
Cya thanks all
 
What, its player 12? Its the same, as long as he is controled by a computer he will use the abilities even if no AI is loaded as WC3's ability AI is hard coded for computers.

Simply go to the player options and make brown a computer player (and tick the box under forces use fixed starting positions).

But i've already done it !
It's Brown Player 12 (Computer) Configured 'no priority' to all, Fixed Start Location,On a different Force...what could i do more?

i tried checking 'use Custom Abiliies' on abilities tab and it didnt work.
 
You could try using a periodic event with a chance to force cast, though I don't think you'll want that considering it is completely irrelevant to what's going on around the unit (f.i., it might cast War Stomp with no enemies around, or not cast it when enemies are all over the place) and it doesn't really follow along with normal AI behavior, and lastly, it'd be a pain to have to input every ability for every unit.
 
Can humans cast the abilities with the units? Remember the AI can only cast what humans in that position can. Also they need certain conditions to cast spells. Eg an AI will not cast warstomp very often for a lone unit and will cast curse only when attacked. Also make sure they are not abilties the AI does not use like death pact. The AI will never cast reversed spells properly (a storm bolt that heals for example) as the moves AI does not take parameters into account. Remember than AI heroes need to have the abiliteis pre learnt as the standard dumb AI does not automatically learn abilities.

Finally be sure the abilities can be cast at all as the AI can not cast a spell which refuses to target anything.
 
Status
Not open for further replies.
Back
Top