![]() Bad solution because now the new script which is rehosted is considered as a new script. ![]() Different servers, use different languages and if your script depends on some string found in the game, one solution (bad solution) to port that script into the other server, could be to clone and rehost the script. Having a translation-ready script also helps with another thing, script maintainability in the long run. A script which is less prone to bugs and fairly more ready to be expanded.īy having created a universal script, you will automatically minimize possible issues of players running your script and the script non-working just because you worked the script on an archer world and the world the player is running the script is non-archer world or vice-versa. If you write your script to be universal and translation-ready you will already have created a script with strong foundations. Not world-specific, not unit-based specific (for example a script that only works on archer worlds but does not work on non-archer worlds). When working on a new script, try to make that script as universal as possible. is that worth it? Do we need a script to bring us to HQ and then another script to bring us to the Barracks? If instead, you are trying to "automate" 2 clicks. is this script worth it?ĭigitalization of a process (a.k.a script) is valid when you want to "automate" some complex/hard/repetitive task (for example sending resources from village to village, filling unit fields on rally point, etc). If it gains very little, like for example a script that redirects the player to HQ no matter where you are. Whenever you start working on a script think about what the player will gain from this script. So consider these suggestions as an open and fair discussion between developers, on how to improve scripts, instead of hard rules on how to write scripts. I will try to make my case to support those suggestions on each specific point as better as I can but you are not forced nor will you be denied script approval (if your script deserves to be approved) if it does not fit any of the suggestions below. You are not enforced to follow the suggestions mentioned below. So I will start by linking the official script rules and approval procedure:Įvery rule that is mentioned on the link above needs to be followed.Īll that comes below are only recommendationsbased on personal experience as a scripts author, they do not represent Tribal Wars official policy regarding scripts and scripting. Use the colour tool in the forums to find the colour you want.In this article, I will share my own experience writing and maintaining Tribal Wars scripts. Var color= - This is the colours of the villages on the map, I set mine Defensive = Blue, Offensive = Green. Var player="gman1994" to var player="Your Username" They are not really scripts but rather links, they take you to the Market/RallyPoint/etc page, the neat thing of these links though are that they stay on the same village, to do this the link is something like this: void 0 ![]() The first Line are the links you automatically are given, they just redirect you to the Specific Building in the village you are overviewing. NOTE: The Quick Bar is only active if you have premium. NOTE: Premium is necessity for most of these scripts, so I'm going to guide people who have premium how to do it.Ī TW Script is Javascript, Javascript is a coding language used to manipulate webpages, it is mainly used inside Webpage code, but it can be used in the URL bar to manipulate the page, using a Javascript in the URL bar can make a change to the look/purpose of a webpage, but the change is not permanent and it is for the user only.Īlso reffered to as QB, the Quick Bar is like your favourites folder, it has a address saved to it and has a name of the Address, The Quick Bar is mainly used to insert scripts so that when you click, the script initiates and runs, but some like myself use it for storing the address of web pages. Here's a few I use that I'm going to share, and I will help anyone that needs help with scripts. They can do the smallest of things, like insert troops into the rally point to large scale things such as recruiting troops.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |