How can I add counters to the mission?
Where I should put the text for them?
I'll try to answer these questions in my tutorial.
Extract file Texts/Counters.wri (or Texts/#LNG/Counters.wri where LNG is a short form of your language name) to your mod's directory.
Look into extracted file. This is a part of it (english version):
Crates to collect: %d
Remaining time: %t
Add your own text. Example:
You will win a car in %t minutes.
Identifier is an identifier which you will use in SAIL.Remember:
First and last line have to be
empty. Lines between every counter also have to be
Use correct value type in text of counter.
%d is used for numerical values
%t is used for time valuesStep 5:
Add counters to the mission.
It's the simplest step. Just add this to the code:
You can also display more than one string.
Remember about ' ' and # before identifier.
Values can change.
//beginning of the code
//somewhere in code
every 0$1 do
Code above will add 1 to the value every second. You can also reduce values.
I've added 0$1 because it's time value. For numerical values use 1.
Polish version soon.