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

[Trigger] Need Triggering help!!

Status
Not open for further replies.
Level 12
Joined
Apr 26, 2008
Messages
830
Is there by any chance a way, that when a unit is sleeping (with Sleep abillity) that when you cast an spell/abillity it continues to sleep?!.. because i want the unit to be still asleep after casting a spell on it .. can somebody help me?!
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
The only way I can think, is to reset that unit's Sleep buff again
  • Still Sleep
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • ((Target unit of ability being cast) has buff Sleep) Equal to True
    • Actions
      • Set TargetLoc = (Position of (Target unit of ability being cast))
      • Unit - Create 1 Peasant for (Triggering player) at TargetLoc facing Default building facing degrees
      • Unit - Hide (Last created unit)
      • Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
      • Unit - Add Sleep to (Last created unit)
      • Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Target unit of ability being cast)
      • Custom script: call RemoveLocation(udg_TargetLoc)
 
Level 12
Joined
Apr 26, 2008
Messages
830
The only way I can think, is to reset that unit's Sleep buff again
  • Still Sleep
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • ((Target unit of ability being cast) has buff Sleep) Equal to True
    • Actions
      • Set TargetLoc = (Position of (Target unit of ability being cast))
      • Unit - Create 1 Peasant for (Triggering player) at TargetLoc facing Default building facing degrees
      • Unit - Hide (Last created unit)
      • Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
      • Unit - Add Sleep to (Last created unit)
      • Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Target unit of ability being cast)
      • Custom script: call RemoveLocation(udg_TargetLoc)

Hm yes but the seconds will variate..
 
Status
Not open for further replies.
Top