• 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] Cant find action....

Status
Not open for further replies.
Level 5
Joined
Jul 17, 2006
Messages
145
Im pretty sure i found an action that gets the amound of time spent channeling an ability and then setting it to a var ( or something like that ) except now i cant find it... :( If anyone knows what im talking about could they please help me as to where it is? o_O
 
Level 11
Joined
Jul 12, 2005
Messages
764
There is no such action like what yuo've written, but it can be calculated by two triggers, and a bit of custom scripts:

#1
Event - Unit starts the effect of an ability
Cond - Ability = <YourAbility>
Actions -
Set ChannelEnd to false
Custom script - loop
Custom script - exitwhen udg_ChannelEnd == true *
Wait 1 second
Set TimeSpent = TimeSpent + 1 **
Custom script - endloop
Here, TimeSpent will give you the ammount of time spent.

#2
Event - Unit stops channeling an ability
Cond - Ability = <YourAbility>
Action -
Set ChannelEnd to true

* ChannelEnd is a boolean variable. You must put an 'udg_' tag in front of a global variable's name in JASS.
** TimeSpent is an integer variable. (Big surprise)
 
Level 5
Joined
Jul 17, 2006
Messages
145
uhh there is no action Unit - Unit stops channeling an ability....theres stops casting, should i use that?

EDIT: Stops casting an ability isent working......lol what do i do.....?
 
Last edited:
Status
Not open for further replies.
Top