Discussion du forum |
|
Vous êtes sur la discussion Reproduction
7 reponses - 369 vues
modifié il y a 11 ans
Bonjour,
Je n'arrive pas à faire la reproduction pour mes chats...
Quelqu'un pourrait m'aider? Ce serait trop beau...
Merci d'avance! Jadounette
Voici les réponses de cette discussion : (page 1/1)
http://www.webidev.com/fr/WebiTopic?IdTopic=3153
C'est super cool, j'ai essayé!
Oui, mais on ne peut avoir que deux chats pour que ça marche... N'y aurait-il pas un autre système? Merci quand même!
The solution I see is not really complicated. You'll need an action and a variable and... codes! Let's begin.
You need to have the variable Reproduction, which would be a need and that is empty after X time, and the action Reproduction (or the name you want for the reproduction) that add 100 to the variable Reproduction. For the codes, it took more time; less if you copy/paste them. In this case, do not forget to replace the word Reproduction by the right number of the variable or of the action.
If the player doesn't have any cats, you put this code on a page :
[Mod Creation1]
[Mod Creation2]
This is it for the creation part, let me explain how the code works.
#It means that if the variable Reproduction isn't over 0, you won't be able to have a baby. Else, you'll be able to have one!#
Then, for the action page. You'll need to do a hidden menu, by unchecking the cases for the viewers. The visitors and the members souldn't be able to see the menu. In the menu, you create a link, that members can see. Once this is done, there's the code:
Something to write or whatever
[Mod ActionExterneReproduction]
P.S. You need to choose a Female!
#I think that there's no need to explicate the code#
After that, the biggest part of the programmation. On the cats pages, you put this :
Something to write or whatever
[IF SexeBidule = 1 && AgeBidule > X]You can <a link_of_the_repoduction_page>reproduce</a>[/IF]
<hr>[IF AgeBidule > X][IF SexeBidule = 0 && VarReproduction > 0][Mod Creation3][/IF][/IF]
#It means that if the cat is a male and if its age is over x time, you can have a baby. If the cat is a femal, if its age is over X, and that the reproduction's variable is over 0, you can have a baby.#
So there's the important things to know (with real exemple) :
Variables:
# | Name | Need | Vital
10| Repro | .Yes. | ..No..
Need : Empty after 12 hours
Actions:
# | Name | Bonus | Variable |
15| Repro | +100. | Repro
Creation Page:
[Mod Creation1]
[Mod Creation2]
Reproduction Page (in a hidden menu):
[Mod ActionExterne15]
P.S. You need to choose a Female!
Cats Page:
[IF SexeBidule = 1 && AgeBidule > 25]You can <a link_of_the_repoduction_page>reproduce</a>[/IF]
<hr>[IF AgeBidule > X][IF SexeBidule = 0 && Var10 > 0][Mod Creation3][/IF][/IF]
If you have any question or any need to report a bug that I could have not seen, I'll be pleased to help you again.
Ok merci! Je vais l'essayer des bientôt, quand j'aurais fini mes examens =)
C'est sympa de bien vouloir m'aider comme ça! Une dernière question: comment faire pour installer des boutons dans son jeu?
Jadounette. Il faut tout d'a
bord créer les boutons avec paint ou autre tu les met en images ensuite tu remplace le nom de ton lien par l'image du bouton exemple
Lien : Accueil ( tu efface acceuil et tu met <img boutonaccueil> Voilà !
Ok merci, mais comment faire pour aller sur: inscription par exemple?
Il faut mettre le lien, comme ça :
<a adresse-lien><img ton-image></a>
La page d'inscription a pour lien http://www.webidev.com/cat-pattes/MInscription.
Merci beaucoup!
Poster un message
Veuillez vous connecter pour poster sur le forum.