I saw alot of people using this where they don't need to so i decided to make a mini-tutorial and explain its proper use.
What Do nothing does?
It simply calls a BJ function that...does nothing.
Take a look yourself:
I think you can figure this out even without knowing JASS
If it does nothing, why the hell blizzard made it?
In ROC it was very usefull. In it you don't have, for example If / Then / Else, Multiple Functions. Lets say you are using ROC editor and you need to make one If / Then / Else without the Else part. Try it out and you'll see you can't click on OK until you fill the red Action field. So here you must put Do nothing.
What's the inproper use?
Since you have If / Then / Else, Multiple Functions in TFT, you dont need Do nothing anymore. Yet alot of people still do something like this:
This is a complete waste...you are making your map call a bj function just to do nothing. And it would've worked if you simply used
In other words: if you have TFT you don't even need it!
I know most of you will probably say that this tutorial is a bit useless, but oh well...things like this should be explained somewhere
What Do nothing does?
It simply calls a BJ function that...does nothing.
Take a look yourself:
Code:
function Donothing takes nothing returns nothing
endfunction
If it does nothing, why the hell blizzard made it?
In ROC it was very usefull. In it you don't have, for example If / Then / Else, Multiple Functions. Lets say you are using ROC editor and you need to make one If / Then / Else without the Else part. Try it out and you'll see you can't click on OK until you fill the red Action field. So here you must put Do nothing.
What's the inproper use?
Since you have If / Then / Else, Multiple Functions in TFT, you dont need Do nothing anymore. Yet alot of people still do something like this:
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
<some conditions>
Then - Actions
<some actions>
Else - Actions
Do nothing
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
<some conditions>
Then - Actions
<some actions>
Else - Actions
I know most of you will probably say that this tutorial is a bit useless, but oh well...things like this should be explained somewhere