Gérez votre site :

52 647 Webmasters - 773 087 Membres INSCRIPTION - Mot de passe oublié ?

Discussion du forum

News

Vous êtes sur la discussion Reproduction

Forum :: Questions IF :: Discussion
Ouvert Reproduction
de Jadounette (cat-pattes - créé le 16 mai 2013 à 18h 14
7 reponses - 348 vues
modifié il y a 11 ans
Bonjour,
Je n'arrive pas à faire la reproduction pour mes chats...Smiley Quelqu'un pourrait m'aider? Ce serait trop beau...
Merci d'avance! JadounetteSmiley
Voici les réponses de cette discussion : (page 1/1)

le 16 mai 2013 à 23h 15 (il y a 11 ans)
En ligne choz (animaux-virtuels
http://www.webidev.com/fr/WebiTopic?IdTopic=3153

C'est super cool, j'ai essayé!Smiley
le 17 mai 2013 à 16h 57 (il y a 11 ans)
En ligne Jadounette (cat-pattes
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!Smiley
le 17 mai 2013 à 18h 06 (il y a 11 ans)
En ligne eRadication (skymm
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.
le 25 mai 2013 à 22h 38 (il y a 11 ans)
En ligne Jadounette (cat-pattes
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?
le 26 mai 2013 à 13h 39 (il y a 11 ans)
En ligne Pikat'choum (pika-concect
Jadounette. Il faut tout d'a
le 26 mai 2013 à 13h 40 (il y a 11 ans)
En ligne Pikat'choum (pika-concect
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à !
le 31 mai 2013 à 16h 38 (il y a 11 ans)
En ligne Jadounette (cat-pattes
Ok merci, mais comment faire pour aller sur: inscription par exemple?
le 31 mai 2013 à 16h 50 (il y a 11 ans)
En ligne Green (ecoland
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.
le 2 juin 2013 à 16h 52 (il y a 11 ans)
En ligne Jadounette (cat-pattes
Merci beaucoup!
Poster un message
Veuillez vous connecter pour poster sur le forum.

Webidev | v2.10.0 | © Webidev 2007 - 2024 | Contact