> Tutorial by level
Pistol Level 1
The first thing to do is to spend your first Capital Points. Go to your first leek's page (Leek page: the first tab of the navigation bar on the left).
There, click the green button to distribute your points.
For now, just put your points into Life and Strength. The other characteristics won't be useful to you yet, since you don't have access to the right chips. (More on this at Level 3)
Once that's done, let's have a look at your AI's program. 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. A leek can have 2 to 4 weapons depending on its level, but it can only use one at a time. It carries several weapons but can only use the one it has in its hands. So you have to use the setWeapon function to change the weapon your leek is holding. Warning: changing the current weapon costs 1 TP, even if you do it while already holding that weapon. So it's wise to call setWeapon only when you need to. All it takes is a condition using the getWeapon function, which returns the weapon currently in use.
Next, you need a target. That's where getNearestEnemy comes in: this function returns the nearest enemy. There are variants to find allies, or to get the farthest one rather than the nearest.
Then comes moveToward, which moves your leek toward another leek by as many MP as possible.
Finally, the useWeapon function uses the weapon your leek is currently holding on a target. If the conditions for using the weapon are met (range, line of sight...), this function spends as many TP as the weapon needs; otherwise, it doesn't spend any TP (and your leek won't shoot).
That's this code in detail. Don't forget that the whole code runs on every turn!
But you won't get very far with this code! It's only a template, and it's far from efficient.
On the first line, you equip the Pistol. Take a good look at its card (available at the Market):
The star symbol  shows how many TP it costs to use this weapon.
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)
So you still have 6 TP left after using it. You can shoot two more times!
Change the code to shoot 3 times with your weapon. You'll deal a lot more damage.
If you're new to programming, just write the instruction 3 times.
If you have some experience, do it in a loop.
It's time to go to the Garden and face other leeks!
Pick one of the 5 leeks offered and fight it. You gain Experience and Habs when you fight in the Garden.
On your first day, you can do up to 100 fights. Every day at midnight, you get 50 more fights, up to a maximum of 100 fights in stock (fights bought with habs or crystals don't count toward this limit). If you don't do all your daily fights, they carry over for one day. So if you had 10 fights left yesterday, you'll have 60 today. If you don't do them, you'll have 100 tomorrow (yesterday's 10 will be lost).
Level 2
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.