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

[JASS] Question.....

Status
Not open for further replies.
Level 12
Joined
Dec 10, 2008
Messages
850
So lately I've wanted to improve on my VJASS alot more then the simple things I can do now... but one thing is stumping me... How to I properly use timer systems? I'm getting past the point of using TriggerSleepAction.

+rep for helping =)
 
Level 8
Joined
Aug 4, 2006
Messages
357
i don't know much about vJASS, but for regular JASS, this tutorial helped me learn more about timers: http://www.hiveworkshop.com/forums/f280/advanced-jass-tips-22710/
go to section 5 on local handle vars. you can attach local variable data to a timer, and have the timer run a function after it expires. within that function, you can get all the local variable data back and use it to do stuff. basically, kattana's system (WC3Jass.com :: View script - Local Handle Variables) allows you to use timers instead of the horrendous TriggerSleepAction (among other things).
 
i don't know much about vJASS, but for regular JASS, this tutorial helped me learn more about timers: http://www.hiveworkshop.com/forums/f280/advanced-jass-tips-22710/
go to section 5 on local handle vars. you can attach local variable data to a timer, and have the timer run a function after it expires. within that function, you can get all the local variable data back and use it to do stuff. basically, kattana's system (WC3Jass.com :: View script - Local Handle Variables) allows you to use timers instead of the horrendous TriggerSleepAction (among other things).

I can't believe people are still using handle vars..

They are buggy, slow, and horribly inefficient, please stop using it, and switch to vJASS Structs.
 
Level 12
Joined
Dec 10, 2008
Messages
850
Thanks Trigger. By the looks of it though, it looks like its more of an effect timer. I'm looking for something that could replace TriggerSleepAction in a way so it isn't setting the effects all at one time, kinda thing.
(I might be wrong though)
 
Level 8
Joined
Aug 4, 2006
Messages
357
I can't believe people are still using handle vars..

They are buggy, slow, and horribly inefficient, please stop using it, and switch to vJASS Structs.

yay now i feel like an idiot. btw, i'm only using it because it was mentioned in the advanced JASS tutorial. they should take out that section if it's so outdated and inefficient.
i should probably do some reading on vJASS... Trigger could you possibly point me to some good, modern tutorials?
 
Status
Not open for further replies.
Top