• 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.

Lock attacks

Status
Not open for further replies.
Level 6
Joined
Jul 25, 2005
Messages
221
Could you just not make a trigger that says: If hero don't have weapon in inventory (if unit attacks) then order hero to Stop

  • NoAttack
  • Events
    • Unit - A unit is Attacked
  • Conditions
    • Attacking unit is a Hero and does not have Item in Inventory
  • Actions
    • Unit - Order Attacking Unit to Stop
That should do it :cute:

EDIT: Corrected conditions and events
 
Last edited:
Level 8
Joined
May 27, 2007
Messages
170
That would be ridiculously laggy I would imagine. I have no idea how to do this to be honest but I would suggest you might try making a custom ability based on the Ethereal Form/Corporal Form pair of abilities. Obviously you would need to remove all the graphic effects and such and just leave the field that stops the ability to attack. You'd need to hide the ability in a spellbook or something to stop the player casting it themselves, then use a trigger to order the unit to cast it when it acquires or loses a weapon, and so flicking the hero between being able to attack and not. Like I said though I really have no idea if that would be any good or not but might be worth a try. :thumbs_up:
 
Level 5
Joined
Jul 24, 2007
Messages
199
Eh, this will also prevent others from attacking the Hero, anyway. I cannot cast ethereal staying corporeal. But maybe I should say they just treat him as a pacifist? ^^
And this fint with locked spellbooks... maybe it would be better to give Hero a powerup item wih the ability (which will be used instantly, even no inventory space is required), but will it stay long? How can we mark the time of re-corporeating?
 
Level 5
Joined
Jul 24, 2007
Messages
199
It is [Solved]. We just have to cast Silence on the Hero, with "Lock melee attacks" and "Lock ranged attacks" flags turned on.

P. S. It would have 0 seconds duration to last forever (it means until we dispel it with a trigger). And requirement of Hero level 6 (make ability heroic ->set requirement -> return ability to non-heroic) to break spell immunity. And somehow make the spell undispellable, or renew it when it is didpelled.
 
Status
Not open for further replies.
Top