> Tutorial by level
Pistol Level 1
The first thing to do is to spend your first Capital Points. Go to the page of your first leek (Leek Page: First tab of the navigation bar on the left).
In this page, click on the green button to distribute your points.
To get started, just distribute your points in Life Points and Strength. The other characteristics will not be useful to you at the moment since you do not yet have access to the relevant chips. (More information in Level 3)
Once this is done, let's go and see the program of your AI. Go to the Editor.
If you haven't changed anything yet, you should have this example code:
The first line is very important. Unlike Chips, weapons must be held in hand to be used. You can have 2 to 4 weapons in a leek inventory depending on its level, but it can only use one at a time. A leek carries several weapons but can only use the one it has in its hands. So you have to use the function setWeapon to change the weapon your leek holds.
Warning, equipping a weapon consumes 1 Turn Points, even if you do it while you already hold this weapon. It is thus wise to use setWeapon only when it is necessary. To do this, all you need is a condition using the getWeapon function that returns the weapon currently in use.
Next you need a target. This is where getNearestEnemy comes in. This function returns the nearest enemy. Variations exist to find allies or to get the farthest one rather than the nearest.
The next line calls the moveToward function which will move towards a leek by as many Movement Points as possible.
Finally, the useWeapon function allows you to use the weapon currently held by your leek on a target. If the conditions for using the weapon are met (range, line of sight, etc.), this function consumes as much Turn Points as needed to use the weapon; otherwise, the function doesn't use any TP (and your leek will not shoot).
That's it for the details of this code. Don't forget that the whole code is executed at each turn!
But you won't get very far with this code! It is only a model and it is far from being very efficient.
In the first line, you equip the Pistol. Take a good look at its sheet (Available on the Market):
The star symbol  indicates the weapon cost in Turn Points (Each use will consume this number of TP).
And you may have noticed when you distributed your Capital Points that you had 10 TP. See where I'm going with this?
This line makes you fire your weapon ONCE:
useWeapon(enemy);
You still have 7 Turn Points left after using it. You can shoot two more times! You need to update the code to shoot 3 times with your weapon so that you will inflict much more damage.
If you are new to coding, just write the instruction 3 times.
If you have some experience, do it in a loop.
It's time to go to the Garden to face other leeks!
Select a leek among the 5 proposed to fight it. You gain Experience and Habs when you fight in the Garden.
On your first day, you can do up to 100 fights. Each day at midnight (Central European Time) you be credited an additionnal 50 fights limited to 100 fights maximum in stock (the fights bought with habs or crystals are not counted in this limit). If you don't consume all your daily fights, you should know that they are carried over to the next day. So, if the day before you had 10 fights left to do, you will have 60 today. If you don't do them, you will have 100 the next day (yesterday's 10 will be lost).
Level 2
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.