We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Then, in the Timer script above 'gsub walk', put the following code
Ensuite, dans le Timer script, juste au dessus de 'gsub walk', rajoutez le code suivant
Okay, so now we have a counter which adds the amount of walks the critter did last time the timer script ran through to their age counter, thereby aging the critter.
Ok, maintenant nous avons un compteur qui ajoute le nombre de pas que l'animal a fait la dernière fois que le script est allé jusqu'au compteur d'âge et donc nous avons l'âge de l'animal.
Now that that's done, we can move onto the real scripting - the Timer Script!
Ok maintenant que ça c'est fait, c'est partit pour la vrai programmation, la timer script.
A subroutine is placed in the timer script, though I believe the 'execute this subroutine' command (gsub) can be used in any script.
Une subroutine est placée dans le script temporisateur, même si je crois que la commande 'exécuter cette subroutine' (gsub) peut être utilisé dans n'importe quel script.
As with zareb's simple plant script on the Creatures Wiki, its easiest to work with critters through subroutines - it helps split up the timer script and make it more understandable.
Comme dans le script de plante de zareb sur le Wiki, il est plus facile de faire fonctionner les animaux avec les subroutines -ça aide à diviser le timer script et à le rendre plus compréhensible.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.