Help (Displayable Countdown timer) (preferably in JASS)
Can anybody help or teach me how to make a displayable countdown timer for bombs or anything? I can make one, but the countdown gets messed up whenever i put up the second bomb with the timer. Please anyone...
I suggest you read my tutorial to find out how to work with tutorials if you don't know JASS. If you do, everytime you place a bomb you will have a floating text (stored into a local) which changes every second. After it expires you remove it and make the bomb fuse.
I know JASS, it is the loops problem, the memory is not leaking as both things happen at the same time, (what i am talking about is the messed up time show, try making one and you will see what i mean) This is what i did
function Trig_Poison_Bomb_Conditions takes nothing returns boolean if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'oeye' ) ) then return false endif return true endfunction
Don't you take me with texts like "I know JASS" when I can obviously see that what you've done here was just a conversion from GUI to JASS. You even left the globals (and so, you practically didn't change a thing int he script). I really suggest you have a look into my tutorial since what you used were globals, and with globals you obviously can't obtain multi-instanceability. And if you know JASS but you simply didn't use locals, then you really can't make efficient JASS. Learn to use locals!
Look into the thread about with the name Spells - Frequently Asked Question. There you will find something like "What is Jass and how can I learn it" and there you will get as an answer a link. Good luck!
Anytime... So if the tutorial was clear enough, do you think its time to add handlers part to it as well? Cuz if there are some problems, point them out into the tutorial's thread.