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

Channel=spell cast

Status
Not open for further replies.
Level 3
Joined
Aug 28, 2005
Messages
48
How would i make it so that for every second an ability (lets say big bad voodoo) is channeled, it casts another spell? i have the dummy spell and hero skill already created, tried messin around with some triggers n such, but didnt have much success.
 
2 triggers needed:

1. event - spell cast (or u can use begins channeling if you wish...)
set SpellEnd = false
set IntegerVar = 0
loop
do the dummy thing here...
wait for condition ( IntegerVar == 5 or SpellEnd == true) checking every 1 second
set IntegerVar = IntegerVar + 1

2. event - unit ends channeling
set SpellEnd = true
 
thanks pask, actually ramza the way my map is set up (like dota) i would have to make some variables if i did it the way you were talking about too, i just did it his way cuz i had a template :)
 
and actually, what i tried doesnt repeat, and i pretty much copied what you put pask, although for the loop thing dont you have to do like: for each intager a do multiple actions, thing?
 
actually, this is just a GUI version of the JASS script which is very simple:
JASS:
loop
   exitwhen udg_SpellEnd == true
   //do things here...
   call TriggerSleepAction(1)
endloop
and yes Ramza you're right about the integer thing... i just needed it to my spell, but it's not neccesary.
however, if you do this thing with turning triggers on and off, you need more variables...

(sorry for posting these jass scrips here, but maybe sometime you will realise how easy the things go with jass...) :)
 
hahahah, i was screwing around and i made everything work :) problem solved guys but thanks, you both kinda helped me so... 50/50 credit :P
 
Status
Not open for further replies.
Back
Top