![]() Try to understand the code you’re writing, instead of just copy&paste. Where LUA adds more things we can do in game, it also adds complexity.A little experience in PopScript and programming in general is useful, but not required if you’re willing to learn. Quite a part of the LUA code is similar to what you’re used to from PopScript, and basics scripts will not be much harder to write.So here you have it, the first ever LUA scripting tutorial! In this tutorial, you will learn the basics of scripting beta tribes but also learn to do some more complex and fun stuff! With the large amount of time that went into the creation of the four new beta tribes, I thought it was about time to look into how we should script them. Useful when the planning has many rows and could exceed the limit of characters "" allowed in Tribal Wars.NB This guide was written when version 1.5 was still in its beta testing stage If activated, planning in BB-Code will be created without the table structure. ![]() If activated, the columns with information deemed "unnecessary" will be hidden.Ĭolumns that will remain: start, target, unit, action, launch date. Sort the rows when they the planning is exported into a spreadsheet. If activated, the date will start with the year value then the month and the day. The spreadsheet will ask how to recognize the fields, choose "separated by a comma." Open the spreadsheet, go to menù "File->Open", change "File type" in "Text file (*.csv, *.txt)", select the text file of the planning. To import the planning into a spreadsheet (Excel, LibreOffice Calc, etc.) copy the resultĪnd paste it into a new text file with TXT extension, e.g. If activated, the fields will be separated by a comma and spaces will be removed. The method continues to try and increase tolerance: "", "" until "."Īssignment is random, according to time slots activated. The chosen slot will "expand" and become "." ![]() If I activate only the time slot "" the method does not find any village and sets a tolerance of 5 minutes. If I activate the time slots "", "" and "" (others are gray) the method chooses A2īecause the time of launch falls into one of three slots. In the typical scenario, with all the slots active, the method chooses A3 because it takes less time to arrive. I need to assign one attack to one target and I have three villages A1, A2, A3.īased on the date of arrival and the time of travel, the times of launch are A1=9:17, A2=13:42, A3=17:30. It repeats more times the calculation with a tolerance which increases 5 minutes progressively. If, based on the time bands setted, the method can't assign all the villages needed to the targets, There are 24 bands total that are considered as follows: "" means that starts from 8:00:00 until 8:59:59.Ĭlick on the boxes to enable or disable (gray box = off). It is possible to suggest to the assignment method the time slots in which plan the launchs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |